Skip to content

Instantly share code, notes, and snippets.

View cstrouse's full-sized avatar
💭
Bug Bounty

Casey Strouse cstrouse

💭
Bug Bounty
View GitHub Profile
@staltz
staltz / introrx.md
Last active August 2, 2025 18:25
The introduction to Reactive Programming you've been missing
@gknapp
gknapp / wsse.php
Last active March 12, 2022 19:17
Add WSSE support to PHP's soapclient
<?php
class WsseHeader
{
const NS_WSSE = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
const NS_WSSEPSWD = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText';
public function build($username, $password)
{
$header = sprintf(
@w0ng
w0ng / hybridline.vim
Created July 17, 2014 23:13
vim-airline theme based on powerline and hybrid colours
" vim-airline companion theme of Hybrid
" (https://github.com/w0ng/vim-hybrid)
let g:airline#themes#hybrid#palette = {}
let s:N1 = [ '#282a2e' , '#c5c8c6' , 'black' , 15 ]
let s:N2 = [ '#c5c8c6' , '#373b41' , 15 , 8 ]
let s:N3 = [ '#ffffff' , '#282a2e' , 255 , 'black' ]
let g:airline#themes#hybrid#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
let g:airline#themes#hybrid#palette.normal.airline_a = ['#005f00', '#b5bd68', 22, 10, '']
@kadin2048
kadin2048 / emlToMbox.py
Last active July 7, 2025 04:19
Combine a directory of .eml files into a single Unix "mbox" file.
#!/usr/bin/env python3
""" Converts a directory full of .eml files to a single Unix "mbox" file.
This is similar to http://www.cosmicsoft.net/emlxconvert.html
Accepts as input either an individual .eml file or a directory containing one
or more .eml files.
Usage:
$ ./emlToMbox.py inputdir/ output.mbox
@roalercon
roalercon / Graphics Card Device IDs
Created January 23, 2015 15:42
CSV Database of Graphics Card Name, Vendor ID, Device ID, Integrated/APU flag, Discrete Mobile Part flag.
Device ID list from: http://developer.amd.com/resources/documentation-articles/articles-whitepapers/introduction-apuid/,,,,,
Aditional ID's from http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/ATI_Device_ID_List_Oct_20121.txt,,,,,
https://developer.nvidia.com/sites/default/files/akamai/device_ids_jan13.txt,,,,,
Aditional modern device ID's from: http://www.techpowerup.com/vgabios/,,,,,
Aditional Information from http://www.notebookcheck.net/,,,,,
Aditional information from http://wikipedia.org/,,,,,
Aditional information from http://www.anandtech.com/,,,,,
,,,,,
Name,ASIC/Codename,Vendor ID,Device ID,Integrated/APU,Discrete Mobile Part
AMD FirePro 2270 (ATI FireGL),,0x1002,0x68F2,0,0
@do18
do18 / yt-embed.js
Last active July 13, 2023 11:22
If you are concerned about web site performance, you probably noticed that embedded YouTube iframes are costly. Instead of iframes, you may embed images that link to the respective videos, and make these links replace themselves with iframes when clicked. (IE 9+ because of getElementsByClassName.)
/*jshint maxlen: 79 */
var MYSITE = MYSITE || {};
/**
* Make YouTube links with .yt-embed replace themselves with YouTube iframes
* when clicked. The first child element is assumed to be the img element
* holding the poster frame. The YouTube URL must contain the "v" parameter,
* but no further parameters. The data-yt-options attribute may hold iframe
* URL parameters.
@Earnestly
Earnestly / makepkg_overview.rst
Last active May 18, 2025 05:43
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@526avijitgupta
526avijitgupta / spacemacs-cheatsheet.md
Last active August 29, 2023 12:31
Spacemacs cheatsheet

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@paulirish
paulirish / how-to-view-source-of-chrome-extension.md
Last active July 17, 2025 23:11
How to view-source of a Chrome extension

Option 1: Command-line download extension as zip and extract

extension_id=jifpbeccnghkjeaalbbjmodiffmgedin   # change this ID
curl -L -o "$extension_id.zip" "https://clients2.google.com/service/update2/crx?response=redirect&os=mac&arch=x86-64&nacl_arch=x86-64&prod=chromecrx&prodchannel=stable&prodversion=44.0.2403.130&x=id%3D$extension_id%26uc" 
unzip -d "$extension_id-source" "$extension_id.zip"

Thx to crxviewer for the magic download URL.

@rosstimson
rosstimson / Dockerfile
Created October 13, 2015 20:37
Easily get ffmpeg on Fedora with support for all the things.
# Dockerfile for ffmpeg with pretty much support for everything as per:
# https://trac.ffmpeg.org/wiki/CompilationGuide/Centos
# includes codecs with weird licensing like MP3 and AAC.
#
FROM fedora
MAINTAINER Ross Timson <[email protected]>
# Install build requirements.
RUN dnf install -y autoconf automake cmake freetype-devel gcc gcc-c++ git libtool make mercurial nasm pkgconfig zlib-devel