This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Contents Clamp | |
// @updateURL https://gist.github.com/foriequal0/12794f45f5ef60249e8ba36f978dfaa4/raw/content-clamp.user.js | |
// @version 10 | |
// @match http://*/* | |
// @match https://*/* | |
// @run-at document-idle | |
// ==/UserScript== | |
(function ContentsClamp(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
from datetime import datetime, timezone | |
import logging | |
import urllib.request | |
logger = logging.getLogger() | |
logger.setLevel(logging.INFO) | |
s3 = boto3.resource('s3') | |
BUCKET_NAME = "weather-go-kr-radar-predict-crawler-images" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
useConfigOnly = true | |
[alias] | |
graph = log --oneline --decorate --graph | |
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi" | |
[remote] | |
pushdefault = origin | |
[push] | |
default = simple | |
[fetch] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cmp::min; | |
use std::collections::VecDeque; | |
const BEAKERS: usize = 3; | |
const INITIAL_STATE: State = State { | |
beakers: [ | |
Beaker::new(10, 0), | |
Beaker::new(5, 5), | |
Beaker::new(6, 6), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GSSK | |
// @namespace gist.github.com/foreiqual0 | |
// @description 곽금주 서울대 심리학과 교수 => 곽서심교 | |
// @include * | |
// @exclude file://* | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Redirect Twitter mobile | |
// @version 1 | |
// @grant none | |
// @match *://twitter.com/* | |
// @run-at document-start | |
// ==/UserScript== | |
let match = /^(\w+):\/\/twitter.com\/(.*)$/.exec(window.location.href); | |
if (match) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Disable Cmd-q for FireFox", | |
"rules": [ | |
{ | |
"description": "Disable Cmd-q for FireFox", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ "org\\.mozilla\\.firefoxdeveloperedition" ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# The touchpad loses its two finger scrolling ability after awaken from hibernate. | |
PROGNAME=$(basename "$0") | |
state=$1 | |
action=$2 | |
MODNAME=${PROGNAME#reload-} | |
function log { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Brunch Shift+Space unblocker | |
// @version 1 | |
// @match https://brunch.co.kr/* | |
// @match http://brunch.co.kr/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== | |
let html = document.getElementsByTagName('html')[0]; |