This file contains hidden or 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/python | |
| # Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org) | |
| # The author disclaims copyright to this source code. | |
| import sys | |
| import struct | |
| import socket | |
| import time | |
| import select |
This file contains hidden or 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
| #define INITGUID | |
| #include <guiddef.h> | |
| #include <windows.web.http.h> | |
| extern "C" { | |
| const IID IID_IUnknown = __uuidof(IUnknown); | |
| const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClient = __uuidof(ABI::Windows::Web::Http::IHttpClient); | |
| const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpClientFactory = __uuidof(ABI::Windows::Web::Http::IHttpClientFactory); | |
| const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpRequestMessageFactory = __uuidof(ABI::Windows::Web::Http::IHttpRequestMessageFactory); | |
| const IID IID___x_ABI_CWindows_CWeb_CHttp_CIHttpMethodFactory = __uuidof(ABI::Windows::Web::Http::IHttpMethodFactory); |
This file contains hidden or 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
| // USB Vendor ID: 0x05AC | |
| // USB Product ID: 0x0251 | |
| /* The upper label indicates the key's function. | |
| * The lower label indicates the USB/HID Keyboard report value. | |
| * The keyboard report (endpoint 0x81) has the following data structure: | |
| * ``` | |
| * struct kdb_report { | |
| * uint8_t modifier; | |
| * uint8_t reserved; |
This file contains hidden or 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 bash | |
| # Install Git and Golang toolchain | |
| function gdir_env_install_pkgs | |
| { | |
| if [ -x "$(command -v xcode-select)" ]; then | |
| xcode-select --install | |
| fi |
This file contains hidden or 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 sys, os, configparser, codecs, re | |
| sys.argv=["Main"] | |
| import tkinter as tk | |
| from tkinter.filedialog import asksaveasfilename | |
| root = tk.Tk() | |
| root.withdraw() | |
| proj = RPR_EnumProjects(-1, "", 512)[0] |
This file contains hidden or 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 bash | |
| # Author: Rix | |
| # Version: 0.0.1 | |
| set -eu -o errexit -o pipefail -o nounset | |
| function print_usage { | |
| echo 'Usage: gif2mp4 [-c] <[-r] INPUT> ...' | |
| echo ' -c, --concat <OUTPUT> concat all inputs into single MP4' |
This file contains hidden or 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
| Verifying my Blockstack ID is secured with the address 1JQ7aPR8WgdNci3nECrWidKgoeBLg5xR2t https://explorer.blockstack.org/address/1JQ7aPR8WgdNci3nECrWidKgoeBLg5xR2t |
This file contains hidden or 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
| ZSH=$HOME/.oh-my-zsh | |
| ZSH_THEME="xir" | |
| plugins=(git extract zsh-syntax-highlighting zsh-autosuggestions) | |
| source $ZSH/oh-my-zsh.sh | |
| [[ -e ~/.profile ]] && emulate sh -c 'source ~/.profile' | |
| alias ls='ls --color' | |
| alias lsa='ls -lah' |
This file contains hidden or 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
| [System.IO.File]::WriteAllText('out.ass', [System.IO.File]::ReadAllText('in.ass', [System.Text.Encoding]::GetEncoding('gb2312')), [System.Text.Encoding]::GetEncoding('utf-8')) | |
| List of Encoding values: | |
| [System.Text.Encoding]::GetEncodings() |
This file contains hidden or 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
| Get-ChildItem .\* -Include *.ass | Rename-Item -NewName { $_.Name -replace '^.*?(\d+).*(\.\w+)$','$1$2' } |
NewerOlder