Commit Graph

181 Commits

Author SHA1 Message Date
Matteo Cypriani 679a574cce metaflac-field2field.sh moved in multimedia/ 2013-04-25 22:39:52 -04:00
Matteo Cypriani 8d61d1d685 Add bin/ to link other scripts and global README 2013-04-10 16:32:46 -04:00
Matteo Cypriani f9daf94e04 [debian] grep_dd_sigs: add usage message 2013-04-10 16:32:46 -04:00
Matteo Cypriani d9da17a74c Rename a bunch of scripts
Reorganise and rename some files (add extensions, more relevant names,
etc.).
2013-04-10 16:32:45 -04:00
Matteo Cypriani 199ebd9d68 [file_utils] unln: option --dereference 2013-04-09 20:04:00 -04:00
Matteo Cypriani 4533f40d58 [file_utils] unln: handle options with argparse
Remove the now useless error() function.
Add options --verbose and --sync.
2013-04-09 14:36:35 -04:00
Matteo Cypriani eb37c52e8c [file_utils] unln: handle exceptions, list errors 2013-04-09 00:49:29 -04:00
Matteo Cypriani 7879f04f15 [file_utils] unln: improve warn() and error() 2013-04-09 00:22:29 -04:00
Matteo Cypriani d77897fd5c [file_utils] unln: sync after copy 2013-04-08 23:25:50 -04:00
Matteo Cypriani 7f6d75cd64 [file_utils] Add unln.py 2013-04-08 23:16:33 -04:00
Matteo Cypriani 104cb29ace Rename mvparent --> file_utils to be more general 2013-04-08 22:07:29 -04:00
Thomas Preud'homme 3110ed1288 [email_account] Adapt to new mail config on adagio
Remove useless code from email_account considering the change of
configuration for the mail system on adagio:
* No need to twiddle cyrus and restart it to connect to cyradm, just
  stop using --auth
* No default domain anymore (thus no special casing for it)
* No file listing current valid emails
2013-02-10 19:03:56 +01:00
Matteo Cypriani 580e240c9e [git] Add git-tag-update 2012-11-03 19:31:53 +01:00
Matteo Cypriani 0abbb0bdfb [git] Add git-changelog 2012-11-03 19:25:14 +01:00
Matteo Cypriani 7896c2ce60 [mvparent] Get rid of useless error messages
Test the presence of files in the directory before to call mv, in order
to avoid useless mv error message.
2012-10-01 15:31:56 +02:00
Matteo Cypriani 236e5afe48 [ssl_mgmt] Typos & comments' translation 2012-02-20 17:40:09 +01:00
Thomas Preud'homme 2b6d07e80b Add ssl_mgmt script 2012-02-20 17:23:51 +01:00
Matteo Cypriani 6c5525185c [git] Add git-merge-ff-only 2012-02-08 19:00:47 +01:00
Matteo Cypriani bca8250c5a [backup] Add btrfs_snapshot_date.sh
Makes a dated snapshot with Btrfs.
2011-08-17 00:05:27 +02:00
Matteo Cypriani 4f9bb9d7fd [backup] Add backup.sh
Simple script to transfer a directory with rsync, with a few options.
2011-08-17 00:04:59 +02:00
Matteo Cypriani c227b574f4 [wifi] capture: refactor gather_system_information 2011-08-16 22:33:12 +02:00
Matteo Cypriani b1c237a1f5 [wifi] capture: include iwconfig output (Linux)
On Linux, include the iwconfig output in the archive.
2011-08-16 22:33:09 +02:00
Matteo Cypriani 9f2bb020fa [wifi] capture: OpenBSD support
Filter the tcpdump output on "received by filter" instead of "captured",
since the OpenBSD's tcpdump does not print the number of packets
captured.
2011-08-16 22:33:05 +02:00
Matteo Cypriani ca3a8a58fc Rename backup_sites_mysql -> backup 2011-08-16 11:30:03 +02:00
Matteo Cypriani 0de41f000d [backup] Do not blindly use the -9 compress option
Add a variable to allow the user to select a compression level.
2011-08-12 14:22:08 +02:00
Matteo Cypriani f5f634d86c [backup] Use --lock-tables to lock databases 2011-08-12 14:20:43 +02:00
Matteo Cypriani a9cfd31217 [wifi] capture: fix invoke_tcpdump()
When the number of packets captured was >0, set -e stopped the program
as invoke_tcpdump() returned a non-zero value. This is fixed by using
echo instead of return.

Some messages improved, too.
2011-08-08 10:56:50 +02:00
Matteo Cypriani a1f0a747a8 [wifi] capture: fix channel setting on Linux
On Linux, at least with the rt2500pci driver, the interface must be down
to set the mode, but up (and in managed mode) to set the channel.
2011-08-07 22:12:19 +02:00
Matteo Cypriani 5fd3e62717 [wifi] capture: fix mktemp for Linux
Add a 3rd character to the random part of the temporary directory, to
satisfy GNU's mktemp.
2011-08-07 22:00:42 +02:00
Matteo Cypriani 9a5853d48a [wifi] capture: fix channel setting
At least on NetBSD with the ath driver, it is impossible to change the
channel when the interface is in monitor mode (actually it is possible,
but when the interface is turned up again the channel is set back to its
prior value).
Therefore, to set the interface in monitor mode on a given channel, we
must:
- shut down,
- switch to managed mode (media autoselect) with the wanted channel,
- turn up,
- shut down again,
- switch to monitor mode,
- turn up again.

I implemented the same behaviour for Linux, maybe it's useless but it
can't hurt.
2011-08-07 21:30:14 +02:00
Matteo Cypriani 81611af216 [wifi] capture: always delete output directory
Always delete the output directory, even in case of error.
2011-08-07 21:02:05 +02:00
Matteo Cypriani edc7cc4dfd [wifi] capture: refactoring 2011-08-07 21:02:01 +02:00
Matteo Cypriani 6739ade2a6 [wifi] capture: test each channel
Try to capture on each channel, in case there is no traffic on the first
channel.
2011-08-07 21:01:57 +02:00
Matteo Cypriani ddfa6e0b49 [wifi] capture: add date to archive name
Add the current date and time to the archive name.
Set the random part of the name to 2 characters.
2011-08-06 15:49:43 +02:00
Matteo Cypriani 627102d6ce [wifi] capture: NetBSD support 2011-08-06 12:40:37 +02:00
Matteo Cypriani 99ea201832 [wifi] capture: add OS release to archive name
Add the OS release version to the archive name.
Extend the random part of the name to 10 characters.
2011-08-06 12:38:10 +02:00
Matteo Cypriani 9df17ae493 [wifi] capture: set the channel 2011-08-06 12:01:40 +02:00
Matteo Cypriani 4a68134713 [wifi] capture: add OS to the archive name 2011-08-06 00:39:42 +02:00
Matteo Cypriani 65dd809c6b [wifi] capture: gather system information 2011-08-06 00:39:37 +02:00
Matteo Cypriani f23d52b435 [wifi] Add capture.sh
capture.sh is a script to automatically capture a few packets on a Wi-Fi
interface and write them to a Pcap file.
2011-08-06 00:39:37 +02:00
Matteo Cypriani 6216033aa4 Add Expat license 2011-08-06 00:39:31 +02:00
Matteo Cypriani a5eca28a97 [git] cherry-move: use plumbing to list branches
Use git for-each-ref instead of git branch to check the existence of a
branch.
2011-07-01 15:52:05 +02:00
Matteo Cypriani daa4aab636 [git] Add README 2011-07-01 15:40:56 +02:00
Matteo Cypriani 04100733ce Add git-cherry-move
Like cherry-pick, but to move instead of copy.
2011-07-01 15:17:31 +02:00
Thomas Preud'homme c335527e41 Add the license 2011-05-06 00:33:28 +02:00
Thomas Preud'homme bc2f64c919 Add grep_dd_sigs script
grep_dd_sigs gives the list of DD which have signed a key with their DD
key (the key they have in the Debian keyring).
2011-05-06 00:28:11 +02:00
Thomas Preud'homme ea0213d482 Look for cyrus password in /root/passwords
Change the place to look for cyrus password:
  /root/passwords/cyrus_main_admin_password instead of
  /root/cyrus_main_admin_password
2011-02-05 17:49:33 +01:00
Matteo Cypriani ead9997d68 [xzize] Handle short-suffix compressed tar
- Handle short-suffix compressed Tar archives.
- Test separately if a source file exists and is regular.
- Use return value of test_extension() instead of test equality of DEST
  and SOURCE.
2010-01-31 16:24:19 +01:00
Matteo Cypriani 93601c6310 [compression_utils] Bug fixes on xzize
xzize:
- Fix bug with file names with spaces.
- Fix bug when invoking program without arguments.
- Handle error when input file is not a regular file instead of delegate
  to xz.
- Add an info message when compressing an uncompressed file.

lz:
- Info message on stdout instead of stderr when uncompressing.
2010-01-31 15:27:39 +01:00
Matteo Cypriani f7c2f3aec7 [compression_utils] Add script xzize
xzize is a tool to (re)compress to xz.
2010-01-31 13:13:29 +01:00