This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export Y=100; Z=${#Y}; for x in $(seq 1 $Y); do echo $(printf "%0"$Z"d" $x); done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
OUTFILE='outfile.csv' | |
#get header from first line of first file | |
head -n 1 result*_01_*.csv > "$OUTFILE" | |
#collect bodies for concatenation and append | |
tail --silent --lines=+2 result*_*_*.csv >> "$OUTFILE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bluetooth.js b/bluetooth.js | |
index f6d2f30..8af2fd3 100644 | |
--- a/bluetooth.js | |
+++ b/bluetooth.js | |
@@ -93,6 +93,7 @@ const Indicator = new Lang.Class({ | |
}, | |
_updateKillswitch: function() { | |
+ if(typeof GnomeBluetoothApplet == 'undefined' || typeof GnomeBluetoothApplet.killswitch_state == 'undefined') return; | |
let current_state = this._applet.killswitch_state; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/ruby.nanorc b/ruby.nanorc | |
index b30b229..3bdfd81 100644 | |
--- a/ruby.nanorc | |
+++ b/ruby.nanorc | |
@@ -1,6 +1,6 @@ | |
## Here is an example for Ruby. | |
## | |
-syntax "ruby" "\.rb$" | |
+syntax "ruby" "Vagrantfile|\.rb$" | |
header "^#!.*/ruby[-0-9._]*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# @see http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html#extpack for current version | |
EXTPACK='http://download.virtualbox.org/virtualbox/4.2.16/Oracle_VM_VirtualBox_Extension_Pack-4.2.16-86992.vbox-extpack' | |
cd $(mktemp -d) \ | |
&& wget "$EXTPACK" \ | |
&& sudo VBoxManage extpack install *.vbox-extpack --replace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#open remmina and selct import | |
full address:s:localhost:3389 | |
auto connect:i:1 | |
compression:i:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# magento_adminpassword.sh | |
# | |
# reads an password from stdin or terminal and creates hash with salt for magento | |
# USAGE | |
# echo hai | ./adminpassword.sh | |
# or | |
# ./adminpassword.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
const LOTUS_TIME_FORMAT = '%Y%m%dT%H%M%S,'; | |
function lotusTime2UnixTime($srcValue){ | |
//Example 20110413T084135,95+02 | |
/* in PHP5.3 | |
$time = new DateTime(); | |
$time->createFromFormat('Ymd\THis,uO', $srcValue); | |
$dstValue = intval($time->format('U')); */ | |
$t = strptime($srcValue, LOTUS_TIME_FORMAT); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# sudo getweb P1005 | |
nc -q 4 fritz.box 9100 < /lib/firmware/hp/sihpP1005.dl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# splash.sh | |
HOST=$(/sbin/ip route | awk '/default/ { print $3 }') | |
#echo \ | |
curl \ | |
-d target_url=stern.de_2F \ | |
-d password=Hotspot \ |
OlderNewer