Skip to content

Instantly share code, notes, and snippets.

View ticky's full-sized avatar
💽

Jessica Stokes ticky

💽
View GitHub Profile
### Patreon email sorting-and-forwarding to Feedbin
if
allof(
address :matches "From" "*patreon.com",
header :regex "Subject" "^(?:[^ ]{0,4}(?: Vote in)?) (.*)(?:(?:'s | posted| just shared:?)(?: [0-9]+ )?(?:new(?: patron-only)? (?:images|poll|video|release):)?) \"(.*)\".*$"
)
{
deleteheader "From";
addheader "From" "${1} <\"${1}\"@patreon.com>";
deleteheader "Subject";
@twilight-sparkle-irl
twilight-sparkle-irl / webcrack.js
Last active February 5, 2024 09:25
webcrack: mess with webpacked (webpackJsonp) applications
// webcrack, a script that allows you to break webpack.js's sandbox and randomization easily
// made by @yourcompanionAI
// licensed under the trust that you will credit me for my work visibly and other than that you can go have fun with this
// window.wc is the webcrack object
// wc.get gives you the module attached to the id you give it.
// literally just what webpack functions use. not much to it
// this is the basic part of all this, everything else is just to allow you to updateproof your code
// both find functions return modules in this format:
1 1/2 lb. tempeh
3 cloves garlic
1 cup vegetable stock
3 cups water
4-4 1/2 TBsp chili powder
1 1/2 tsp leaf oregano
1/2 tsp salt
1/4 tsp pepper
2-3 inches cinnamon stick or 1/2 tsp ground cinnamon
1/4 tsp allspice

Dead-easy spicy strawberry curry

Sambal oelek is a spicy chili pepper sauce; Huy Fong Foods's sambal oelek is pretty easy to find in grocery stores. Don't try to substitute other hot sauces for it.

Ingredients

  • 2-3 heaping teaspoons sambal oelek
  • 3 large strawberries, chopped finely
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active April 25, 2024 02:01
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@burke
burke / remotepaste.md
Last active September 26, 2023 11:04
This sets up keybindings in tmux that allow you to copy/paste to/from your OS X clipboard from tmux running inside an SSH connection to a remote host. Partially borrowed from http://seancoates.com/blogs/remote-pbcopy

Local (OS X) Side

~/Library/LaunchAgents/pbcopy.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
     <key>Label</key>
     <string>localhost.pbcopy</string>
@vjt
vjt / copy-from-time-machine.sh
Last active March 8, 2024 17:05
Copy data from a Time Machine volume mounted on a Linux box.
#!/bin/bash
#
# Copy data from a Time Machine volume mounted on a Linux box.
#
# Usage: copy-from-time-machine.sh <source> <target>
#
# source: the source directory inside a time machine backup
# target: the target directory in which to copy the reconstructed
# directory trees. Created if it does not exists.
#
@MicahElliott
MicahElliott / colortrans.py
Created November 29, 2010 07:57
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code