Skip to content

Instantly share code, notes, and snippets.

@patheticpat
patheticpat / mc_hotkeys.md
Created April 26, 2025 09:09 — forked from ipanin/mc_hotkeys.md
Midnight Commander Keyboard Shortcuts for macOS

Midnight Commander Keyboard Shortcuts for macOS

In macOS Meta key is Esc. In some other systems Meta key is Alt.

Ctrl

  • Ctrl-T - Select item (like Insert key in another OS).
  • Ctrl-Space - Calculate directory size.
  • Ctrl-O - Switch panels on/off.
  • Ctrl-U - Swap panels.
@patheticpat
patheticpat / web-servers.md
Created March 20, 2023 09:51 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@patheticpat
patheticpat / N2QAYB001178.conf
Created November 7, 2020 16:46 — forked from kfigiela/N2QAYB001178.conf
Panasonic TV (2018 models) remote control (N2QAYB001178) LIRC config
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Thu Feb 14 12:13:24 2019
#
# contributed by Kamil Figiela
#
# brand: Panasonic
@patheticpat
patheticpat / llama_button.user.js
Created May 30, 2014 21:07
This script adds a Llama Button to the top of every profile page. You won't have to open the "Give" menu to see whether you already gave this user a Llama Badge or not. And of course you can give a Llama Badge right away.
// ==UserScript==
// @name Llama Button
// @namespace http://userscripts.org/users/173445
// @description Add a Llama Button to deviantArt profile pages
// @include http://*.deviantart.com/
// @include http://*.deviantart.com/?*
// @version 1.0
// ==/UserScript==
function contentEval(source) {
@patheticpat
patheticpat / proguard.cfg
Created November 28, 2012 10:41 — forked from fredgrott/proguard.cfg
updatedproguardcfg
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-ignorewarnings
-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable,*Annotation*,Signature
@patheticpat
patheticpat / get_head.xml
Created April 21, 2011 12:30
yql table for retrieveing some headers
<?xml version="1.0" encoding="UTF-8" ?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<sampleQuery>select * from {table} where url="http://developer.yahoo.com/"</sampleQuery>
<description>Retrieve content-type and content-length for URLs</description>
<author>Michael Kaiser</author>
</meta>
<bindings>
<select itemPath="result" produces="XML">
<inputs>