Skip to content

Instantly share code, notes, and snippets.

View aseba's full-sized avatar
🤣

Sebastian Alvarez aseba

🤣
  • Córdoba, Argentina
View GitHub Profile
@aseba
aseba / timezones.sh
Last active June 15, 2020 12:57
Bash Script to print several timezones at once
#!/bin/bash
#ls /usr/share/zoneinfo/
declare -a Timezones=("America/New_York" "Europe/London" "Europe/Madrid")
echo Home: `date +"%m-%d-%Y %T %z"`
for tz in ${Timezones[@]}; do
echo $tz: `env TZ=$tz date +"%m-%d-%Y %T %z"`
done
{
"playlist": "a9bea146-2345-42c0-ab46-8667ecace549",
"version": 1,
"qa": "False",
"chapters": [
{
"id": "a9bea146-2345-42c0-ab46-8667ecace549",
"name": "Circle of Life",
"type": "song",
"asset_url": "https://link.to.asset/"
@aseba
aseba / gist.py
Last active December 15, 2015 03:59
Small python script that creates a new anonymous gist with content coming from stdin
#!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import sys
import urllib
from optparse import OptionParser
parser = OptionParser()
/usr/bin/sqlite3 /home/lalita/db/url.db 'select * from url WHERE date = date();' | awk -F "|" '{print $8, "["$2"]" , "by", $5 "\n"}' | mail mail@server.com -s "Links Digest for $(date +"%d-%m-%Y")"