Skip to content

Instantly share code, notes, and snippets.

View DeviaVir's full-sized avatar
🏴‍☠️

Chase DeviaVir

🏴‍☠️
View GitHub Profile

LOCAL:

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
set -g default-terminal "screen-256color"
run-shell "/usr/local/bin/powerline-daemon -q"
source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
set -g default-command "zsh"
set-option -g base-index 1
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set -s escape-time 50
@DeviaVir
DeviaVir / key-signing.sh
Created February 26, 2016 11:09
Key Signing + Example
gpg --keyserver keys.gnupg.net --recv-key $KEY_HEX
gpg --sign-key $KEY_ID
gpg --keyserver pgp.mit.edu --send-key $KEY_ID
# example for signing [email protected]
gpg --keyserver keys.gnupg.net --recv-key 0x6e17bb4ed5edc1f1
gpg --sign-key D5EDC1F1
gpg --keyserver pgp.mit-edu --send-key D5EDC1F1
set -g default-terminal "screen-256color"
run-shell "/usr/local/bin/powerline-daemon -q"
source "/usr/local/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf"
set -g default-command "zsh"
set-option -g base-index 1
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T'
set -s escape-time 50
@DeviaVir
DeviaVir / remove-secret-key.py
Last active February 10, 2016 14:54
Programatically remove a secret GPG key using Python
import re
import subprocess
fingerprints = subprocess.check_output(['gpg',
'--list-secret-keys',
'--with-colons',
'--fingerprint'])
fingerprints = fingerprints.replace("\n", ';')
start = key_name + ':::;fpr:::::::::' # replace key_name with your var
end = ':;'
'use strict';
var page = require('webpage').create(),
system = require('system'),
address, output, pixelRatio, width, height;
var args = Array.prototype.slice.call(system.args, 1);
if (args.length < 3 || args.length > 4) {
console.log('Usage: pixelratio.js URL filename pixelRatio');
phantom.exit();
Please choose a server to create your account on.
-------------------------------------------------------------------------
# | Host | Location | Users | Latency
-------------------------------------------------------------------------
usage: ping [-AaDdfnoQqRrv] [-b boundif] [-c count] [-G sweepmaxsize]
[-g sweepminsize] [-h sweepincrsize] [-i wait] [−k trafficclass]
[-l preload] [-M mask | time] [-m ttl] [-p pattern]
[-S src_addr] [-s packetsize] [-t timeout][-W waittime] [-z tos]
host

Chat Transcript

3:47:54 PM - Server said : Please wait. A OnePlus Support Representative will be with you shortly.

3:47:54 PM - Jay said : Hello Chase. My name is Jay how can I help you?

3:49:46 PM - Chase said : Hi Jay

3:50:14 PM - Jay said : Hello.
$ curl -I http://guidion.nl/versnellen
HTTP/1.1 403 Forbidden
Date: Mon, 02 Nov 2015 16:44:42 GMT
Server: Apache/2.2.29 (Unix) mod_ssl/2.2.29 OpenSSL/1.0.1e-fips DAV/2 PHP/5.3.29
Content-Type: text/html; charset=iso-8859-1
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "upload",
"Effect": "Allow",
"Principal": {
"AWS": [
"CUSTOMER-ARN"
]