First file:
A
B
C
D
Second file:
C
#!/usr/bin/env python | |
import dbus | |
NM = 'org.freedesktop.NetworkManager' | |
NMCA = NM + '.Connection.Active' | |
NMDW = NM + '.Device.Wireless' | |
NMAP = NM + '.AccessPoint' | |
DBUS_PROPS = 'org.freedesktop.DBus.Properties' |
convert -density 200 -compress jpeg -quality 20 input.pdf output.pdf |
#!/bin/sh | |
convert input1.jpg input2.jpg input3.jpg output.pdf |
First file:
A
B
C
D
Second file:
C
#!/bin/sh | |
# | |
# Start the command "$0.original", i.e. with the same name and ".original" | |
# appended with nice (lower CPU priority) and ionice (lower IO priority) | |
# | |
# Usage: If you want to provide "foo", rename "foo" to "foo.original", then | |
# link this script in "foo"'s place | |
nice ionice -c 3 "$0.original" "$@" |
reg export HKCU\Software\SimonTatham putty.reg |
#!/bin/sh | |
find . -type f | while read each; do | |
if xxd -p "$each" | tr -d '\n' | grep -q 0d0d0a; then | |
echo "$each" | |
sed -i.bak -e 's/\r//' "$each" | |
fi | |
done |
version := "0.2-SNAPSHOT" | |
// If the version ends with "-SNAPSHOT", let the Debian version end with | |
// "~SNAPSHOT~yyyyMMddHHmmss". This way updates of the snapshot version can be | |
// detected by the package manager. Also the tilde "~" sorts before anything | |
// else when comparing version numbers. This way "1.0" will be regarded newer | |
// than "1.0~beta". | |
version in Debian <<= (version) { (v) => | |
if (v.endsWith("-SNAPSHOT")) { | |
val timestampFormat = new java.text.SimpleDateFormat("yyyyMMddHHmmss"); |
import sbt._ | |
// Enable integration tests: | |
// - put sources in src/it/java or src/it/scala | |
// - put resources in src/it/resources | |
// - run with "play it:test" | |
lazy val root = Project("root", file(".")) | |
.configs(IntegrationTest) | |
.settings(Defaults.itSettings : _*) | |
.settings(libraryDependencies += playTest) |
# Non-config file types | |
*.log | |
*.log.* | |
*.tmp | |
*.old | |
*.bak | |
*.jar | |
*.jpi | |
*.jpi.pinned | |
*.json |