Skip to content

Instantly share code, notes, and snippets.

😎
👨‍💻

Ian Foster lanrat

View GitHub Profile
@lanrat
lanrat / remove-advertisers.js
Last active Apr 16, 2019 — forked from bluetidepro/remove-advertisers.js
Auto click "remove" on all facebook advertisers
View remove-advertisers.js
// I did this in Chrome...
//
// Go to https://www.facebook.com/ads/preferences/
// Click the "Advertisers" section to open it up.
// Click "See more" once
// Before doing anything else, just keep clicking space bar to trigger the "see more" button
// Do this for a bit until all the advertisers are loaded
// then run this below in the dev tools console...
// (It will take a few minutes, depending how many you have, and your browser may lock up, but once it's done you will see it auto clicked the "remove" X in the top right for all of them)
View settings.json
/*
Preference file for user scope
Please refer to the documentation online (https://github.com/theia-ide/theia/blob/master/packages/preferences/README.md) to learn how preferences work in Theia
*/
{
"git.decorations.colors": true
"editor.minimap.enabled": true
@lanrat
lanrat / alsa.sh
Created Jul 28, 2018
ALSA for Bluetooth on Linux reset Script
View alsa.sh
#! /usr/bin/env bash
# info: https://wiki.archlinux.org/index.php/Bluetooth_headset#Troubleshooting
set -eu
DEVICE_NAME="TODO"
reset_bt()
{
# turn card off
CARD=$(pactl list cards short | cut -f2 | grep blue | head -1)
@lanrat
lanrat / chrome.md
Created Jul 28, 2018
chrome ignore ssl warnings
View chrome.md

thisisunsafe

View Docekrfile
FROM ubuntu:14.04 as build
RUN apt update && \
apt install -y autoconf automake libtool shtool cmake clang git make tcl pkg-config python2.7 curl
RUN git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git /depot_tools
ENV PATH=$PATH:/depot_tools
RUN mkdir /ct
WORKDIR /ct
@lanrat
lanrat / tesla.json
Created Sep 15, 2017
Tesla CertGraph
View tesla.json
{
"certgraph": {
"command": "./certgraph -ct -ct-subdomains -depth 3 -details -json tesla.com",
"options": {
"ct": true,
"ct_subdomains": true,
"depth": 3,
"parallel": 10,
"port": "443",
"starttls": false,
@lanrat
lanrat / certificate-transparency.json
Created Jun 1, 2017
certificate-transparency json graph
View certificate-transparency.json
{
"links": [
{
"source": "txvia.com",
"target": "8816A9C0CA6C22E0D2BAA9BFFF419FE3E4EC1F80EF4BB90DD4F09E12AD3A80B9",
"type": "uses"
},
{
"source": "8816A9C0CA6C22E0D2BAA9BFFF419FE3E4EC1F80EF4BB90DD4F09E12AD3A80B9",
"target": "1hourpersecond.com",
@lanrat
lanrat / alsa.sh
Created Apr 4, 2017
Force ALSA to play nice with BT headset
View alsa.sh
#! /usr/bin/env bash
# info: https://wiki.archlinux.org/index.php/Bluetooth_headset#Troubleshooting
set -eu
DEVICE_NAME="PLT_BBTPRO"
reset_bt()
{
# turn card off
CARD=$(pactl list cards short | cut -f2 | grep blue | head -1)
@lanrat
lanrat / DVR_exploit.py
Created Dec 22, 2016
TRIPLEX DVRLink DVR468RW Exploit
View DVR_exploit.py
#!/usr/bin/env python
import socket
import binascii
import sys
import time
def passList():
n = 1
li = [1]
while (int(li[-1]) <= 44444444):
@lanrat
lanrat / sfdc-do.json
Created Dec 1, 2016
test json for sfdc-do
View sfdc-do.json
{
"links": [
{
"source": "salesforce.com",
"target": "6E77EAF8790D4E0959E5CB0B8788A12DD160294787BC5BE74BC79F30FBF345F8",
"type": "uses"
},
{
"source": "6E77EAF8790D4E0959E5CB0B8788A12DD160294787BC5BE74BC79F30FBF345F8",
"target": "chatter.com",
You can’t perform that action at this time.