Skip to content

Instantly share code, notes, and snippets.

@zchee
zchee / disable.sh
Created December 5, 2019 19:03
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
@rumly111
rumly111 / tsd.py
Created July 20, 2019 14:30
transmission sequential download
#!/usr/bin/python3
# Monitor transmission and enable sequential downloads
# by manipulating file download priorities
#
# Author: Joseph Botosh <rumly111@gmail.com>
# License: GPL
from time import sleep
from argparse import ArgumentParser
@LoranKloeze
LoranKloeze / scroll_instagram.js
Created May 31, 2017 20:13
Automatic scroll of Instagram page, stop scrolling by hand...
/*
Tired of scrolling to one of the last photos on the page on Instagram? Let your
browser do the scrolling for you!
31-05-2017
(c) 2017 - Loran Kloeze - loran@ralon.nl
Usage
- Go to https://www.instagram.com/instagram_handle/ (change instagram_handle in i.e. taylorswift)
- Open up the console (F12) (Firefox users: type 'allow pasting' if you haven't done so yet)
- Select the contents of this complete file and copy/paste it to the console and hit enter
@btel
btel / amazon.py
Created June 19, 2015 16:32
price tracker
import urllib
import urllib2
import string
import sys
from bs4 import BeautifulSoup
import sys
import argparse
import datetime
import re
@kurokikaze
kurokikaze / gist:350fe1713591641b3b42
Created October 3, 2014 11:40
install chrome from powershell
(new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', 'c:/temp/chrome.exe');. c:/temp/chrome.exe /silent /install;rm c:/temp -rec
@yusukei
yusukei / pyae.cpp
Last active January 29, 2021 15:11
Python embedded for AfterEffects.
#include "SoSharedLibDefs.h"
#include "SoCClient.h"
#define EXPORT extern "C" __declspec(dllexport)
#define strdup _strdup
// ------------------------------------------------------------------
// 宣言
// ------------------------------------------------------------------
@miebach
miebach / rotate-a-wb-page-javascript.rst
Last active November 14, 2023 18:28
Rotate a web page 90 degree counter clockwise:

Rotate a web page 90 degree counter clockwise

Chrome

javascript: document.body.setAttribute( "style", "-webkit-transform: rotate(-90deg);");

paste into JS console: Ctrl-Shift-C -> "Console" from top menu

@ihsoy-s
ihsoy-s / Disable_lazy_load.js
Created November 24, 2012 16:52
[greasemonkey] Disable Lazy Load Plugin
// ==UserScript==
// @name Disable_lazy_load
// @namespace https://gist.github.com/ihsoy-s/
// @version 0.2
// @description Remove lazy load
// @include http://*/*
// @include https://*/*
// @match http://*/*
// @match https://*/*
// @run-at document-end
@pudquick
pudquick / pipista.py
Created November 20, 2012 07:23
pipista - pip module (for installing other modules) for Pythonista
import os, os.path, sys, urllib2, requests
class PyPiError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def _chunk_report(bytes_so_far, chunk_size, total_size):
if (total_size != None):