Skip to content

Instantly share code, notes, and snippets.

@9c9a
9c9a / another_patcher.py
Created November 12, 2019 00:20 — forked from aviafelix/another_patcher.py
Patching binary files with Python
#/usr/bin/env python3
"""
Yet another simple binary patcher
"""
patches = [
{
# 1 Windows x64, version 3, build 1234
'file': 'file_1.bin',
'offset': 0x0BA950,
'original': b'\x00',
@9c9a
9c9a / hterm_solarized.js
Created July 14, 2019 09:23 — forked from organisciak/hterm_solarized.js
Solarized for Mosh Chrome
// Solarized for Mosh Chrome
// Mosh does not seem to save profiles, so this sets the default 'mosh' profile.
// To reset, evaluate term_.prefs_.resetAll()
// Run in the JavaScript console of mosh_browser.html, which can be opened
// as explained here:
// https://github.com/rpwoodbu/mosh-chrome/wiki/FAQ#how-can-i-change-the-way-the-terminal-looks-font-color-etc
var htermProfiles = {
// Solarized Dark
@9c9a
9c9a / linkedin_flirter.rb
Last active September 8, 2015 16:57 — forked from macabreb0b/linkedin_flirter.rb
A script for 'flirting' with users on LinkedIn by viewing their profiles
require 'selenium-webdriver'
username = 'your_username'
pword = 'your_pword'
browser = Selenium::WebDriver.for :firefox
browser.get 'https://linkedin.com'
wait = Selenium::WebDriver::Wait.new(:timeout => 10)