I hereby claim:
- I am tgittos on github.
- I am tgittos (https://keybase.io/tgittos) on keybase.
- I have a public key ASDWAWcwsB4hXfttqTgleDDUv40vO_yAoSqhtdizTbBDrwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
// Dumb date handling across browsers | |
// Chrome: | |
new Date('2017-4-3') | |
// Mon Apr 03 2017 00:00:00 GMT-0500 (CDT) | |
// Firefox | |
new Date('2017-4-3') | |
// Date 2017-04-03T00:00:00.000Z | |
// Dumb type handling |
function! s:build() | |
let &makeprg='build' | |
silent make | |
botright copen | |
wincmd p | |
endfunction | |
command! Build call s:build() | |
set switchbuf=useopen,split | |
nnoremap <silent> <F8> :Build<CR> |
#! /usr/bin/env ruby | |
require 'socket' | |
include Socket::Constants | |
PORT = 8888 | |
HOST = '0.0.0.0' | |
socket = Socket.new(AF_INET, SOCK_STREAM, 0) | |
address = Socket.pack_sockaddr_in(PORT, HOST) |
#! /usr/bin/env ruby | |
require 'watir-webdriver' | |
require 'openssl' | |
require 'open-uri' | |
require 'nokogiri' | |
# bad pinterest, having a bad cert | |
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE |
#! /usr/bin/env python | |
import sys | |
import feedparser | |
import urllib | |
import os | |
import pickle | |
import time | |
import datetime |
def is_leap_year? | |
(year % 4 == 0) and ((year % 100 > 0) or (year % 100 == 0) and (year % 400 == 0)) | |
end |
#! /bin/sh | |
# Use Ghostscript to concatenate PDF files | |
output=$1 | |
shift | |
input=$@ | |
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=$output $input |
#! /usr/bin/env ruby | |
`gem list | cut -d" " -f1 | sudo xargs gem uninstall -aIx` |
#! /bin/bash | |
# Check we are root first | |
if [[ ! "root" = "$(whoami)" ]] ; then | |
echo -e "Please re-run as root." && exit 1 | |
fi ; clear | |
# RVM dependencies | |
echo -e "Installing build essential and required dependencies" | |
sudo apt-get install -y build-essential libreadline5-dev libssl-dev bison libz-dev zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline-dev g++ |