Skip to content

Instantly share code, notes, and snippets.

View vincentcox's full-sized avatar

Vincent Cox vincentcox

View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@nixjdm
nixjdm / speedtest.sh
Last active October 24, 2024 12:16
This bash script repeatedly tests the page load times of a website and gives some basic stats for the results.
#!/usr/bin/env bash
########################################################################
# Author: Joseph Nix [email protected] 6-18-2015
# Copyright (c) 2015 Terminal Labs
# Distributed under the MIT License.
# (See http://opensource.org/licenses/MIT)
#
# This tests the average page load time for a given url. It can be set
# to run any number of tests, and then will average the results.
#
<?php
$c = new Client('https://poste.io/admin/api/v1/', '[email protected]', 'admin');
$c->delete('domains/t.com');
$c->post('domains', ['name' => 't.com']);
$c->post('boxes', ['email' => '[email protected]', 'passwordPlaintext' => 't', 'name' => 't']);
$c->patch('boxes/[email protected]', ['name' => 'a', 'disabled' => true, 'passwordPlaintext' => 'a']);
@mgeeky
mgeeky / pickle-payload.py
Last active July 9, 2024 07:55
Python's Pickle Remote Code Execution payload template.
#!/usr/bin/python
#
# Pickle deserialization RCE payload.
# To be invoked with command to execute at it's first parameter.
# Otherwise, the default one will be used.
#
import cPickle
import sys
import base64