Skip to content

Instantly share code, notes, and snippets.

@aaronice
aaronice / smart-dark-mode.css
Created January 11, 2018 01:18
CSS for Custom Smart Dark Mode
/*
Parts of this code is inspired from the following:
[1] https://userstyles.org/styles/105000/smart-dark
*/
html {
background-color: #222 !important;
}
body {
@smnx
smnx / .gitignore
Last active September 23, 2016 09:26 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subliminal.
*~
.vscode
tags
@matiasw
matiasw / autosub.lua
Last active November 23, 2016 16:07 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subliminal.
-- requires subliminal, version 1.0 or newer
-- default keybinding: b
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding auto_load_subs
local utils = require 'mp.utils'
function load_sub_fn()
lang_ids = {"en", "es"}
subl = "/usr/bin/subliminal"
--local path = mp.get_property("working-directory").."/"..mp.get_property("path")
local pathfile = mp.get_property("path")
@gim-
gim- / subdl.lua
Last active February 25, 2017 10:44 — forked from selsta/autosub.lua
Automatically download subtitles in mpv using subdl.
-- requires subdl: https://github.com/akexakex/subdl
-- default keybinding: b
-- add the following to your input.conf to change the default keybinding:
-- keyname script_binding subdl_load_subs
local utils = require 'mp.utils'
local subdl = "/usr/bin/subdl" -- use 'which subdl' to find the real path
function subdl_load()
mp.msg.info("Searching subtitles...")
mp.osd_message("Searching subtitles...")
@Lazza
Lazza / README.md
Last active June 19, 2024 05:52
VPNGate Python script

This script is NOT MAINTAINED

This snippet of code was posted in 2014 and slightly revised in 2016 and 2017. It was more of a quick'n'dirty script than a polished tool. It is made only for Linux and in Python 2, which has since become outdated.

I currently do not use it, and I suggest you avoid it as well. Please do not expect support for using this script.

🔥 If you need an alternative, @glaucocustodio has kindly suggested EasyVPN in this comment.

The rest of the README is left for historical purposed.

@saetia
saetia / gist:1623487
Last active July 16, 2024 05:56
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat