Skip to content

Instantly share code, notes, and snippets.

@IntergalacticApps
IntergalacticApps / make_windows10_great_again.bat
Last active May 6, 2025 17:39
Make Windows 10 Great Again - stop Windows 10 spying!
@echo off
setlocal EnableDelayedExpansion
ver | find "10." > nul
if errorlevel 1 (
echo Your Windows version is not Windows 10... yet. Brace yourself, Windows 10 is coming^^!
pause
exit
)
@chiehmin
chiehmin / android_decompilation_tool.sh
Created May 18, 2016 06:51
apktool, dex2jar, jd-gui installation script
# Installing apktool
mkdir -p ~/.local/bin
wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_2.1.1.jar -O ~/.local/bin/apktool.jar
wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O ~/.local/bin/apktool
chmod a+x ~/.local/bin/apktool
# Installing dex2jar
wget https://github.com/pxb1988/dex2jar/releases/download/2.1-nightly-26/dex-tools-2.1-20150601.060031-26.zip -O ~/.local/bin/dex2jar.zip
unzip ~/.local/bin/dex2jar.zip -d ~/.local/bin/
mv ~/.local/bin/dex2jar-2.1-SNAPSHOT/* ~/.local/bin/
@dwettstein
dwettstein / Edit_with_Vim_Git_Bash.reg
Last active October 29, 2021 20:43
With this registry command you can create a Windows Explorer context menu entry "Edit with Vim" using included Vim of Git Bash for Windows.
Windows Registry Editor Version 5.00
; -----------------------------------------------------------------------------
; With this registry command you can create a Windows Explorer context menu
; entry "Edit with Vim" to edit a file with Vim included in Git for Windows.
;
; You can execute the context-menu entry quickly with the keyboard-shortcut
; `Shift`+`F10`, `v` (on Windows 7 also: `Alt`+`f`, `v`), after selecting
; the file.
;
@haasn
haasn / image.lua
Last active July 2, 2025 22:26
mvi - set of configuration for turning mpv into an image viewer
-- Allow changing a property with by zoom-adjusted amount
function zoom_invariant_add(prop, amt)
amt = amt / 2 ^ mp.get_property_number("video-zoom")
mp.set_property_number(prop, mp.get_property_number(prop) + amt)
end
-- Resets the pan if the entire image would be visible
function zoom_check_center()
local zoom = mp.get_property_number("video-zoom")
local rot = mp.get_property_number("video-rotate") * math.pi / 180
@HakurouKen
HakurouKen / pixiv.py
Created April 7, 2016 11:52
Get pixiv original picture by id without login.
import requests
import re
from pyquery import PyQuery
from urllib2 import HTTPError
import os
class Picture():
'''
Get picture(s) from image page.
@Note: HTML changed after login.
@jgermade
jgermade / alias.sh
Last active July 11, 2022 01:36
sh
alias ll='ls -alF'
alias l='ls -alF'
alias c='clear'
alias .='echo $PWD'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
@Ruin0x11
Ruin0x11 / mpv-seq.sh
Last active March 22, 2019 19:48
play videos/episodes in sequential order
#!/bin/bash
# mpv-seq - Play files in a directory in order, starting from given file
# caveat: needs the filename as first argument, then arguments to pass to mpv
playlist=/var/tmp/.playlist
thisfile="$0"
qa="$1"
q=$(printf '%s\n' "$qa" | sed 's/[[\.*^$/]/\\&/g')
ext="${q##*.}"
@cstewart90
cstewart90 / OpenWithSublimeText3.bat
Last active March 27, 2024 07:17 — forked from interisti/OpenWithSublimeText3.bat
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 10)
@echo off
SET st3Path=C:\Program Files\Sublime Text 3\sublime_text.exe
rem add it for all file types
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_EXPAND_SZ /v "Icon" /d "%st3Path%,0" /f
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3\command" /t REG_SZ /v "" /d "%st3Path% \"%%1\"" /f
rem add it for folders
@reg add "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text 3" /t REG_SZ /v "" /d "Open with Sublime Text 3" /f
@j1cs
j1cs / improve_fonts.md
Last active January 4, 2025 07:42
Improve fonts archlinux

Improve Fonts

Newest

Make your Arch fonts beautiful easily! This is what I do when I install Arch Linux to improve the fonts.

You may consider the following settings to improve your fonts for system-wide usage without installing a patched font library packages (eg. Infinality):

Install some fonts, for example:
sudo pacman -S ttf-dejavu ttf-liberation noto-fonts

@Perlence
Perlence / reader-solarized.css
Last active August 15, 2021 06:59
Solarized Light and Dark themes for Firefox Reader
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document url-prefix("about:reader") {
body.light {
color: #657b83; /* base00 */
background-color: #fdf6e3; /* base3 */
}
body.dark {
color: #839496; /* base0 */