This file contains hidden or 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
# $auth from auth.sh | |
# $spreadsheet_id from get_spreadsheets.sh | |
# $worksheet_id from get_worksheets.sh | |
curl \ | |
--header "Authorization: GoogleLogin auth=$auth" \ | |
--header 'Content-Type: application/atom+xml' \ | |
-d @data.xml \ | |
-X POST \ | |
"https://spreadsheets.google.com/feeds/list/$spreadsheet_id/$worksheet_id/private/full" | |
# Example data in data.xml |
This file contains hidden or 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
apt-get install -y ppa-purge | |
add-apt-repository -y ppa:ondrej/php5-oldstable | |
apt-get update | |
ppa-purge ppa:ondrej/php5 | |
apt-get update && apt-get upgrade -y && apt-get autoremove -y && apt-get autoclean -y |
This file contains hidden or 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
import sublime | |
import sublime_plugin | |
class NumberCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
selection = self.view.sel() | |
for region in selection: | |
try: | |
value = int(self.view.substr(region)) | |
self.view.replace(edit, region, str(self.op(value))) |
This file contains hidden or 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
There are times when you need to keep the date and time of your system to be correct. | |
Ntpdate in linux helps you do the same | |
sudo ntpdate -u ntp.ubuntu.org | |
ntpdate are installed on most distributions, if not install using apt-get. |