Skip to content

Instantly share code, notes, and snippets.

View endquote's full-sized avatar
💭
👋

Josh Santangelo endquote

💭
👋
View GitHub Profile
@endquote
endquote / instagram.js
Last active December 11, 2015 07:43
Keyboard navigation for Instagram timeline
/*
A userscript to add keyboard shortcuts to the Instagram timeline:
- J or space to go to next image
- K to go to previous image
- L to toggle like on the current image
- N to load new posts
*/
$(document.body).keypress(function(event) {
// ignore keypresses in comment fields
@vadimdemedes
vadimdemedes / app.js
Last active July 10, 2020 15:37
Starter code for creating a custom React renderer
import React from 'react';
import reconciler from './reconciler';
const App = () => {
return <h1>Hello World</h1>;
};
const render = (tree, target) => {
const container = reconciler.createContainer(target);
container.updateContainer(tree, container);
@will3942
will3942 / app.rb
Last active July 20, 2022 00:53
Reverse-Engineering Instagram
require 'openssl'
require 'base64'
require 'json'
require 'httpclient'
http = HTTPClient.new(:agent_name => useragent)
key = "" #The Private key
login_info = {:guid => "00000000-0000-0000-0000-000000000000",
:password => "PASSWORD",
:username => "USERNAME",
@brendandawes
brendandawes / tools.md
Last active November 5, 2023 22:32
[Work in Progress] Tools — a constantly expanding list of some of the tools and services I use to make things, both hardware and software. Things can only appear on this list if it's something I've personally used to make things.
@jamiew
jamiew / google_twunter_lol
Created July 28, 2011 20:34
All the dirty words from Google's "what do you love" project: http://www.wdyl.com/
easterEgg.BadWorder.list={
"4r5e":1,
"5h1t":1,
"5hit":1,
a55:1,
anal:1,
anus:1,
ar5e:1,
arrse:1,
arse:1,
1) Make a download dir to store the node source and download it.
mkdir downloads
cd downloads
git clone https://github.com/joyent/node.git
Find the latest version
2) List all of the tags in the repository, and check out the most recent.
git tag
git checkout v0.9.9
@aweber1
aweber1 / next-webpack-disable-optimization-plugin.js
Last active February 6, 2024 07:54
NextJS Webpack disable optimization plugin
module.exports = (nextConfig) => {
return Object.assign({}, nextConfig, {
webpack(webpackConfig, nextContext) {
// NOTE: use whatever environment variable you'd like here to determine
// what environment should have minimization disabled.
if (process.env.NODE_ENV === 'development') {
webpackConfig.optimization.minimize = false;
webpackConfig.optimization.minimizer = [];
}
@JonnyWong16
JonnyWong16 / sync_playlists_to_users.py
Last active February 16, 2024 17:31
Sync Plex playlists to shared users.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Description: Sync Plex playlists to shared users.
# Author: /u/SwiftPanda16
# Requires: plexapi
from plexapi.exceptions import NotFound
from plexapi.server import PlexServer
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active March 27, 2024 06:33
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@sindresorhus
sindresorhus / esm-package.md
Last active April 19, 2024 10:56
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.