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/bash | |
# Send your files to another machine using SCP | |
# REQUIRED | |
# - Nautilus (doh!) | |
# - scp | |
# - notify-send (from package notify-bin, libnotify - for messages) | |
# - xclip (to automaticaly set your clipboard to the URL of the file) |
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/bash | |
# send notify-osd notification through ssh |
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/bash | |
# require syncevolution | |
# on ubuntu run following commands | |
# sudo add-apt-repository deb http://downloads.syncevolution.org/apt stable main | |
# sudo apt-get update | |
# sudo apt-get install syncevolution-evolution | |
# askubuntu question: http://askubuntu.com/questions/265083/how-to-export-save-evolution-contacts-as-seperate-vcf-files |
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
# paste this in url | |
# https://coderwall.com/p/lhsrcq | |
# Plain-paper style | |
data:text/html, <html contenteditable> | |
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/bash | |
#Transmission-Shutdown-Script | |
======== | |
#This is the transmission shutdown script I wrote for a [askubuntu question](http://askubuntu.com/questions/202537/transmission-#shutdown-script-for-multiple-torrents) with the help of transmission RPC interface. | |
#**What it Does?** |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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/bash | |
if [ "$@" != "app://" ]; then | |
app=$(echo $@ | sed -r 's/app:\/\///g') | |
nohup $app >/dev/null 2>&1 & | |
else | |
nohup gnome-terminal >/dev/null 2>&1 & | |
fi | |
exit |
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
[Desktop Entry] | |
Name=AppURL | |
Exec=/usr/bin/appurl %u | |
Type=Application | |
NoDisplay=true | |
Categories=System; | |
MimeType=x-scheme-handler/app; |
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/bash | |
sudo modprobe -r iwl3945 | |
sudo modprobe iwl3945 |
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
FOO=' test test test ' | |
FOO_NO_EXTERNAL_SPACE="$(echo -e "${FOO}" | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')" | |
echo -e "FOO_NO_EXTERNAL_SPACE='${FOO_NO_EXTERNAL_SPACE}'" | |
# > FOO_NO_EXTERNAL_SPACE='test test test' | |
echo -e "length(FOO_NO_EXTERNAL_SPACE)==$(echo -ne "${FOO_NO_EXTERNAL_SPACE}" | wc -m)" | |
# > length(FOO_NO_EXTERNAL_SPACE)==14 |
OlderNewer