Skip to content

Instantly share code, notes, and snippets.

wodim

Block or report user

Report or block wodim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wodim
wodim / settings.json
Created Jul 24, 2019
Settings for VSCode
View settings.json
{
"editor.fontSize": 13,
"editor.renderWhitespace": "boundary",
"files.trimTrailingWhitespace": true,
"editor.rulers": [
79
],
"git.enableSmartCommit": true,
"files.eol": "\n",
"[html]": {
@wodim
wodim / wodim
Created Jun 16, 2019
palette for mintty, like the original "mintty" but with a brighter Blue and Black
View wodim
# config.c
Black = #444444
Red = #BF0000
Green = #00BF00
Yellow = #BFBF00
Blue = #5555BF
Magenta = #BF00BF
Cyan = #00BFBF
White = #BFBFBF
@wodim
wodim / underline.user.js
Created Feb 18, 2019
Userscript to underline all clickable stuff on all pages
View underline.user.js
// ==UserScript==
// @name Underline all links
// @match *://*/*
// ==/UserScript==
(function() {
'use strict';
var extra_css = document.createElement("style");
extra_css.innerHTML = 'a, input[type=submit], input[type=button], button, label { text-decoration: underline !important; }';
@wodim
wodim / automime.py
Created Jan 9, 2019
Adds a suitable extension to every file in the current folder
View automime.py
import mimetypes
import os
import sys
import magic
try:
dir = sys.argv[1]
except IndexError:
View proxylist.user.js
// ==UserScript==
// @name ProxyList
// @match https://www.sslproxies.org/
// ==/UserScript==
(function() {
'use strict';
var list = document.getElementsByTagName("td");
for (let item of list) {
View armory.user.js
// ==UserScript==
// @name Armory
// @match http://*.warmane.com/*
// @match https://*.warmane.com/*
// ==/UserScript==
(function() {
'use strict';
document.body.addEventListener('mousedown', function(el) {
@wodim
wodim / mm2_ar_extract.py
Created Nov 5, 2018
Script to extract AR files from Midtown Madness 2
View mm2_ar_extract.py
# wodim, 05/11/2018 -- public domain
# extracts an AR file from Midtown Madness 2 into the target directory
from math import ceil
import os
import sys
from struct import unpack
import zlib
@wodim
wodim / minify.py
Created Mar 31, 2018
Flask minify after_request handler
View minify.py
mods = ((re.compile('[\n\r]'), ''),
(re.compile(' +'), ' '),)
@app.after_request
def mod_response(response):
if mods and response.content_type.startswith('text/html;'):
response_data = response.get_data(as_text=True)
for before, after in mods:
if isinstance(before, str): # it's a string replacement
response_data = response_data.replace(before, after)
else: # it's a re
@wodim
wodim / spam.php
Created Jan 3, 2018
Some spamming script I found in a hacked server
View spam.php
<?php
error_reporting(0);
//error_reporting(E_ALL);
set_time_limit(0);
class InjectorComponent {
@wodim
wodim / gist:f271abb34a92d081251e762b311ebe98
Created Dec 21, 2017
Bully for Android demangled symbol list
View gist:f271abb34a92d081251e762b311ebe98
This file has been truncated, but you can view the full file.
__cxa_finalize
__cxa_atexit
__cxa_finalize
__cxa_atexit
hal::View::setZPosition(float)
__aeabi_unwind_cpp_pr0
hal::View::getZPosition() const
You can’t perform that action at this time.