Skip to content

Instantly share code, notes, and snippets.

@optionalg
optionalg / create_sub.py
Created April 13, 2023 02:20 — forked from jinschoi/create_sub.py
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence
@optionalg
optionalg / create_sub.py
Created April 13, 2023 02:20 — forked from jinschoi/create_sub.py
Python script to generate Flipper RAW .sub files from OOK bitstreams
#!/usr/bin/env python3
from typing import Iterable, Union, Any
# freq: frequency in Hz
# zerolen: length of space bit in μs
# onelen: length of mark bit in μs
# repeats: number of times to repeat sequence
# pause: time to wait in μs between sequences
# bits: string of ones and zeros to represent sequence
Rank Type Prefix/Suffix
1. Prefix my+
2. Suffix +online
3. Prefix the+
4. Suffix +web
5. Suffix +media
6. Prefix web+
7. Suffix +world
8. Suffix +net
9. Prefix go+
@optionalg
optionalg / xkeyscorerules100.txt
Created August 3, 2021 09:20 — forked from sehrgut/xkeyscorerules100.txt
XKEYSCORE Tor rules
/*
Leaked by Das Erste
URL: http://daserste.ndr.de/panorama/archiv/2014/Quellcode-entschluesselt-Beweis-fuer-NSA-Spionage-in-Deutschland,nsa224.html
Source: http://daserste.ndr.de/panorama/xkeyscorerules100.txt
*/
// START_DEFINITION
/**
* Fingerprint Tor authoritative directories enacting the directory protocol.
*/
@optionalg
optionalg / temporary-email-address-domains
Created August 3, 2021 09:20 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@optionalg
optionalg / glorw.txt
Created August 3, 2021 09:19 — forked from stuartpb/glorw.txt
General list of reserved words
### General List of Reserved Words
### Stuart P. Bentley <stuart@testtrack4.com>, June 4, 2013
## This is a general list of words you may want to consider reserving,
## in a system where users can pick any name, in a context where the
## system may use names as well. One prominent example of a system
## where this is the case would be a site that serves pages for users,
## at their username, from the site root, like
## http://twitter.com/stuartpb . In this system, you would want to
## reserve some routes for pages that would commonly be expected to

Description

When using Homebrew (http://brew.sh) and searching formulas or pull requests you may get the dreaded error message: Github API Rate limit exceeded

Let's fix that! (yeah!)


Short version

Create a new Personal Token in your Github Account Settings (Sidebar: Applications) and then copy the Token. In the Terminal, use export HOMEBREW_GITHUB_API_TOKEN=YOURAPITOKENWITHFUNKYNUMBERSHERE (change that to your API Token) or add that to your .bash_profile and then do source .bash_profile.

@optionalg
optionalg / ssmjump.sh
Created June 2, 2021 05:06 — forked from patrickjahns/ssmjump.sh
ssm jump
#!/usr/bin/env bash
# Help text
help()
{
echo ""
echo " -o | --override Override port forwarding values."
echo " Syntax:[local port] [remote host address] [remote port]"
echo ""
}
@optionalg
optionalg / aws_cli_script.sh
Created June 2, 2021 05:06 — forked from minkimipt/aws_cli_script.sh
Simple script to create SG and instance on AWS
#!/usr/bin/env bash -e
if ! command -v aws &> /dev/null
then
echo "aws cli could not be found. Please install it and run again."
exit
fi
if ! command -v jq &> /dev/null
then
echo "jq could not be found. Please install it and run again."
exit
@optionalg
optionalg / del_all_ec2.sh
Created June 2, 2021 05:05 — forked from umihico/del_all_ec2.sh
aws cliを使ってec2の複数を起動してセットアップしたり、落としたり。
#!/bin/bash -eu
all_ids=`aws ec2 describe-instances --query "Reservations[].Instances[].InstanceId" --output text | tr '\t' ' '`
echo terminating... $all_ids
aws ec2 terminate-instances --instance-ids $all_ids --query "TerminatingInstances[].CurrentState[].Name" --output text