I hereby claim:
- I am xarg on github.
- I am xarg (https://keybase.io/xarg) on keybase.
- I have a public key ASBdN39el6YVZcbsgWyDLAW6PyZQycWoIrv38VR-YQ0otQo
To claim this, I am signing this object:
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
<script src="https://gorgias-assets.global.ssl.fastly.net/static/public/js/gorgias-chat.js"></script> | |
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
GorgiasChat.init({ | |
"icon": "https://gorgias-uploads.global.ssl.fastly.net/Sans%20titre-1-3ac0278e-fc92-4ec5-8c22-d842c86dcc4a.png", | |
"headerColor": "#eb144c", | |
"chatIconColor": "#eb144c", | |
"conversationColor": "#0693e3", | |
"smooch": { | |
"appToken": "8z8htxf16diglhv7kb6sowq74", |
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
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN echo 'APT::Install-Recommends "0"; \n\ | |
APT::Get::Assume-Yes "true"; \n\ | |
APT::Get::force-yes "true"; \n\ | |
APT::Install-Suggests "0";' > /etc/apt/apt.conf.d/01buildconfig | |
# Add files. | |
COPY ./bin/rabbitmq.sh /usr/local/bin/ |
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
FROM ubuntu:14.04 | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN echo 'APT::Install-Recommends "0"; \n\ | |
APT::Get::Assume-Yes "true"; \n\ | |
APT::Get::force-yes "true"; \n\ | |
APT::Install-Suggests "0";' > /etc/apt/apt.conf.d/01buildconfig | |
# Add files. | |
COPY ./bin/rabbitmq.sh /usr/local/bin/ |
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
import email | |
def get_decoded_email_body(message_body): | |
""" Decode email body. | |
Detect character set if the header is not set. | |
We try to get text/plain, but if there is not one then fallback to text/html. | |
:param message_body: Raw 7-bit message body input e.g. from imaplib. Double encoded in quoted-printable and latin-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
//change table variables below according to your case and you should get a nice JSON at the end | |
var db = "db"; | |
var table = "your_table"; | |
var db = openDatabase(db, '1.0.0', '', 2 * 1024 * 1024); | |
db.transaction(function (tx) { | |
var l = []; | |
tx.executeSql('select * from ' + table, null, function(tx, res){ | |
for (var i = 0; i < res.rows.length; i++) { | |
l.push(res.rows.item(i)); | |
} |
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 | |
echo -e "\nbenchmark.sh -n<number of requests> -c<number of concurrency> <URL1> <URL2> ..." | |
echo -e "\nEx: benchmark.sh -n100 -c10 http://www.google.com/ http://www.bing.com/ \n" | |
## Gnuplot settings | |
echo "# Let's output to a jpeg file | |
set terminal jpeg size 1280,720 | |
# This sets the aspect ratio of the graph |
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
brew install autoconf automake brew-cask freetype gdbm gettext git-sh gnu-getopt gnupg2 gpg-agent gradle imagemagick jpeg lame libassuan libevent libgcrypt libgpg-error libksba libpng libtool libusb libusb-compat mad memtester node openssl ossp-uuid pass pcre pinentry pkg-config postgresql pth pwgen python readline sox sqlite the_silver_searcher tmux tree | |
brew cask install f-lux google-drive libreoffice pgadmin3 seashore spectacle webstorm android-file-transfer firefox gimp iterm2 macvim pycharm clipmenu font-dejavu google-chrome keyremap4macbook menumeters rdio sketch unrarx | |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Using google geocoding API try to fix addresses in capsule | |
""" | |
import sys | |
import argparse | |
import requests |
NewerOlder