Skip to content

Instantly share code, notes, and snippets.

@danielwanja
danielwanja / nyt.js
Created April 4, 2011 23:02
Bookmarklet to bypass NYT paywall
// From: http://toys.euri.ca/nyt.js
//Here's the old stuff:
$('overlay').hide();
$('gatewayCreative').hide();
$(document.body).setStyle( { overflow:'scroll' } );
try {
@chitchcock
chitchcock / 20111011_SteveYeggeGooglePlatformRant.md
Created October 12, 2011 15:53
Stevey's Google Platforms Rant

Stevey's Google Platforms Rant

I was at Amazon for about six and a half years, and now I've been at Google for that long. One thing that struck me immediately about the two companies -- an impression that has been reinforced almost daily -- is that Amazon does everything wrong, and Google does everything right. Sure, it's a sweeping generalization, but a surprisingly accurate one. It's pretty crazy. There are probably a hundred or even two hundred different ways you can compare the two companies, and Google is superior in all but three of them, if I recall correctly. I actually did a spreadsheet at one point but Legal wouldn't let me show it to anyone, even though recruiting loved it.

I mean, just to give you a very brief taste: Amazon's recruiting process is fundamentally flawed by having teams hire for themselves, so their hiring bar is incredibly inconsistent across teams, despite various efforts they've made to level it out. And their operations are a mess; they don't real

@joshwand
joshwand / tumblr-likes-downloader.rb
Last active May 6, 2019 11:23
download your liked photos from tumblr
require 'tumblr_client'
require 'mechanize'
require 'date'
require 'yaml'
require 'uri'
Tumblr.configure do |config|
config.consumer_key = "consumer_key"
config.consumer_secret = "consumer_secret"
config.oauth_token = "oath_token"
@bemasher
bemasher / rewrite.js
Created January 13, 2014 11:50
Relatively painless magnet uri generation for torrentz.eu. There's some extra scaffolding for extension related stuff but this is the main guts.
// Relatively painless magnet uri generation for torrentz.eu. Digging reveals
// that the torrent hash and id (torrentz.eu specific) are stored as hidden
// inputs for the comment system. All that's required is some Ajax and string
// parsing for the announce list and some html injection to add the link to
// the page.
// Get the torrent name, hash and id (for announce list lookup)
var name = $(".download>h2>span").first().text();
var hash = $(':input[name="hash"]').first().val()
var torrent = $(':input[name="torrent"]').first().val()
@alirobe
alirobe / reclaimWindows10.ps1
Last active May 22, 2024 20:58
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###
@ipbastola
ipbastola / clean-up-boot-partition-ubuntu.md
Last active May 22, 2024 19:07
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@meub
meub / gist:5e6efce206ceb86f7075411c452530a0
Last active April 27, 2018 09:38
Instructions on how to setup DD-WRT to recognize Amazon Dash button presses
### Dash Button Hack ###
DD WRT > Services > Services > Additional DNSMasq options:
dhcp-script=/tmp/custom.sh
DD WRT > Status > Wireless:
Press your Dash button.
Note your MAC address as it appears on the Status page.
DD WRT > Administration > Commands > Custom Script:
@marcus-crane
marcus-crane / mingw-w64-4.0.4-osx10.11.2.sh
Last active July 5, 2023 02:46 — forked from cosmo0920/mingw-w64-4.0.4-osx10.11.2.sh
Script to install a Mingw-w64 Cross-Compiler Suite on Mac OS X 10.11.2 [ FIXED BREW LINK ]
#!/bin/sh
# dependencies
echo "Installing dependencies via Homebrew (http://brew.sh)"
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)")"
brew update
brew tap homebrew/versions
@leeramsay
leeramsay / PSADT-Cheatsheet.ps1
Last active April 17, 2024 04:47
PSADT snippits/cheatsheet
## Commonly used PSADT env variables
$envCommonDesktop # C:\Users\Public\Desktop
$envCommonStartMenuPrograms # C:\ProgramData\Microsoft\Windows\Start Menu\Programs
$envProgramFiles # C:\Program Files
$envProgramFilesX86 # C:\Program Files (x86)
$envProgramData # c:\ProgramData
$envUserDesktop # c:\Users\{user currently logged in}\Desktop
$envUserStartMenuPrograms # c:\Users\{user currently logged in}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
$envSystemDrive # c:
$envWinDir # c:\windows
@pimeys
pimeys / diabetes.json
Created February 13, 2017 22:55
a diabetes dashboard for grafana+xdrip plus
{
"__inputs": [
{
"name": "DS_DIABETES",
"label": "Diabetes",
"description": "",
"type": "datasource",
"pluginId": "influxdb",
"pluginName": "InfluxDB"
}