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 | |
# | |
# @author Sebastian Wagner <[email protected]> | |
# | |
# ---------------------------------------------------------------------------- | |
# "THE BEER-WARE LICENSE" (Revision 42): | |
# <[email protected]> wrote this file. As long as you retain this notice you | |
# can do whatever you want with this stuff. If we meet some day, and you think | |
# this stuff is worth it, you can buy me a beer, club-mate or pizza in return | |
# ---------------------------------------------------------------------------- |
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 \ |
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
<?php | |
require_once 'app/Mage.php'; | |
Mage::app('default'); | |
$productIds = array(100, 101, 102); | |
$option = array( | |
'title' => 'Test Option', | |
'type' => 'file', | |
'is_require' => 1, |
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
#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 | |
# @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
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
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
#!/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" |
NewerOlder