Skip to content

Instantly share code, notes, and snippets.

@tmiland
tmiland / bookmarks.html
Created November 23, 2017 12:37
Alternative News : Over 400 Links Google Doesn’t Want You To Visit
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DL><p>
<DT><H3 ADD_DATE="1511066567" LAST_MODIFIED="1511438735">Alternative News</H3>
@tmiland
tmiland / Play YouTube on Facebook.user.js
Last active December 27, 2017 07:40
Play YouTube on Facebook
// ==UserScript==
// @name Play YouTube on Facebook
// @description Play YouTube Videos on Facebook without leaving the site.
// @namespace https://gist.github.com/tmiland/e2a86addea3ef5900b4f5445e17e80ce
// @version 1.0
// @date 27-12-2017
// @author tmiland
// @match https://www.facebook.com/*
// @require http://code.jquery.com/jquery-3.2.1.min.js
// @grant none
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DL><p>
<DT><H3 ADD_DATE="1511066567" LAST_MODIFIED="1511438735">Alternative News</H3>
@tmiland
tmiland / poynter_blocklist
Last active November 29, 2018 19:43
The International Fact-Checking Network Blocklist
# list for use with hosts files to block The International Fact-Checking Network
# Source: ifcncodeofprinciples.poynter.org/signatories
127.0.0.1 www.afp.com/en
127.0.0.1 africacheck.org
127.0.0.1 www.lupa.news
127.0.0.1 apublica.org/truco
127.0.0.1 www.animalpolitico.com/elsabueso
127.0.0.1 aosfatos.org
127.0.0.1 www.ap.org
127.0.0.1 www.boomlive.in
@tmiland
tmiland / lfd-v2.php
Created March 20, 2019 17:19 — forked from niraj-shah/lfd-v2.php
LFD Reporting Script using Abuse IP DB v2 API
#!/usr/local/bin/php
<?php
// AbuseIPDB API v2 Key
$api_key = 'xxx';
// AbuseIPDB API v2 Endpoint
$api_endpoint = 'https://api.abuseipdb.com/api/v2/';
// AbuseIPDB User ID
@tmiland
tmiland / get_amazon_ips.sh
Created October 27, 2019 11:23
AWS IP address blocklist - To be used with Nginx Bad Bot and User-Agent Blocker
#!/usr/bin/env bash
## Author: Tommy Miland (@tmiland) - Copyright (c) 2019
if [[ "$EUID" -ne 0 ]]; then
echo -e "Sorry, you need to run this as root"
exit 1
fi
@tmiland
tmiland / freekudos.js
Last active January 23, 2020 14:42 — forked from et/freekudos.js
Kudos everyone in your strava feed
document.querySelectorAll('button.js-add-kudo').forEach(node => node.click())
@tmiland
tmiland / cloudflare-delete-all-records.sh
Created February 27, 2021 04:47 — forked from slayer/cloudflare-delete-all-records.sh
Delete all DNS records for specified zone
#!/bin/bash
EMAIL=me@gmail.com
KEY=11111111111111111111111111
ZONE_ID=2222222222222222222222222
curl -X GET https://api.cloudflare.com/client/v4/zones/${ZONE_ID}/dns_records?per_page=500 \
-H "X-Auth-Email: ${EMAIL}" \
-H "X-Auth-Key: ${KEY}" \
-H "Content-Type: application/json" | jq .result[].id | tr -d '"' | (
<?xml version="1.0" encoding="UTF-8"?>
<component type="addon">
<id>com.obsproject.Studio.Plugin.backgroundremoval</id>
<extends>com.obsproject.Studio</extends>
<name>obs-backgroundremoval Plugin</name>
<summary> An OBS plugin for removing background in portrait images (video), making it easy to replace the background when screen recording.</summary>
<url type="homepage">https://github.com/royshil/obs-backgroundremoval</url>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
</component>
@tmiland
tmiland / atomsetup.sh
Created November 13, 2022 19:18 — forked from anriseth/atomsetup.sh
Install Atom from source
# Ask admin to install the following packages:
# build-essential git libsecret-1-dev fakeroot rpm libx11-dev libxkbfile-dev libgnome-keyring-dev
# When that is done, you can install everything else locally
# Install Node.js
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
source $HOME/.bashrc
nvm install v6.10.3
nvm use v6.10.3