Skip to content

Instantly share code, notes, and snippets.

@14mRh4X0r
14mRh4X0r / evince.vim
Created February 15, 2023 09:24
Evince view implementation for VimTeX
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve Lervåg
" Email: karl.yngve@gmail.com
"
function! vimtex#view#evince#new() abort " {{{1
call vimtex#jobs#run("gdbus wait --session --activate org.gnome.evince.Daemon")
return s:viewer.init()
endfunction
plugins {
id "com.github.johnrengelman.shadow" version "2.0.1"
id "java"
}
ext {
base_version = '1.0'
mc_version = '1.8.8'
lib_version = '1.0'
}
@14mRh4X0r
14mRh4X0r / fix_meta.py
Last active January 27, 2017 16:58
Python script to fix invalid metadata values using bravo (requires my fork of bravo)
#!/usr/bin/env python
import json
import os
import string
import sys
import urllib2
from array import array
from collections import defaultdict
from StringIO import StringIO
from multiprocessing import Pool
@14mRh4X0r
14mRh4X0r / tg-dark.css
Last active July 1, 2022 13:47
CSS for a dark Telegram Web
/* invert colors, but keep their hues */
html {
filter: hue-rotate(180deg) invert(100%);
background-color: #0f1318;
}
/* invert images and icons back to normal */
img, i, span.emoji, .modal-backdrop, .media_modal_bottom_panel_wrap {
filter: hue-rotate(180deg) invert(100%);
}
@14mRh4X0r
14mRh4X0r / keybase.md
Created May 17, 2016 20:01
Keybase proof

Keybase proof

I hereby claim:

  • I am 14mrh4x0r on github.
  • I am 14mrh4x0r (https://keybase.io/14mrh4x0r) on keybase.
  • I have a public key ASChsmQhMHRDHuySqCrYo7wmAof9L4w2Ld2hMNBsdJNtJwo

To claim this, I am signing this object:

@14mRh4X0r
14mRh4X0r / fix_chunks.py
Created July 1, 2014 08:13
Python script to fix Minecraft 14w26a/b snapshots. Needs https://github.com/mcedit/pymclevel to run
#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
# Unbuffer stdout
sys.stdout = os.fdopen(sys.stdout.fileno(), 'w', 0)
print "Loading world...",
from pymclevel import mclevel
@14mRh4X0r
14mRh4X0r / filter-prefixmsg.py
Last active December 16, 2015 05:58
Python module for XChat/HexChat to filter messages to @#[channel] into their own tab/window
import hexchat
__module_name__ = "Filter prefix-channel messages"
__module_version__ = "0.3.1"
__module_description__ = "Places messages to [prefix]#[channel] in their own tab"
def filter_atmsg(word, word_eol, userdata, attrs):
if len(word[2]) >= 2 and word[2][1] == '#' and word[2][0] != '#':
user = word[0]
bangind = user.find("!")
@14mRh4X0r
14mRh4X0r / watch_anyway.js
Last active June 18, 2022 18:02
Script to replace a youtube.com video with the embed version. Useful when youtube.com complains about the lack of Flash, to get it in HTML5 anyway (hence "watch_anyway.js")
/*
* Copyright © 2013 Willem Mulder
* This program is free software. It comes without any warranty, to
* the extent permitted by applicable law. You can redistribute it
* and/or modify it under the terms of the Do What The Fuck You Want
* To Public License, Version 2, as published by Sam Hocevar. See
* http://www.wtfpl.net/ for more details.
*/
(function() {
function sl () { ls "$@" | perl -lpe "\$_ = reverse" | while read; do printf "%${COLUMNS}s" "$REPLY"; done; }
@14mRh4X0r
14mRh4X0r / fields.sh
Created November 21, 2012 11:28
Files for extracting obfuscation info from MCP
#!/bin/bash
# Debug
function debug() {
oldopts="$-"
function on_exit() {
[[ "$oldopts" =~ .*x.* ]] && set +x
}
set -x
trap on_exit EXIT