Skip to content

Instantly share code, notes, and snippets.

@russgray
russgray / MC Cheat Sheet
Created April 5, 2019 15:46 — forked from urnenfeld/MC Cheat Sheet
Midnight Commander Cheat Sheet
Shortcut Description
---------------------------------------------------------------
C-o Drop to the console
Insert Select/deselect file
* Invert selection on files
+ Specify file selection options (including custom pattern)
- The same as above, but for deselecting
F5/F6 Copy/move selected files
@russgray
russgray / AES.java
Last active September 8, 2015 17:04 — forked from dweymouth/AES.java
A Java class to perform password-based AES encryption and decryption
/*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <dweymouth@gmail.com> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. D. Weymouth 4/2014
* ----------------------------------------------------------------------------
*/
import java.io.*;
@russgray
russgray / sms_trace
Last active September 1, 2015 08:40 — forked from henrikw/sms_trace
An example of a session-based log (the sending of an SMS)
Type: Trace
Time stamp: 2014-01-20 09:23:01.910 CET
Trace key: 46702000029
Source: pf-Cluster=tsmr,pf-Host=tsmr1,pf-Node=tsmr1,map-Layer=map@tsmr1
Trace:
-- 0, platform: Context info: StructuredDialogue
Origination address : {SccpUserAddress: RoutingIndicator=ROUTE_ON_GT, SignallingPointCode=null, SubsystemNumber=8, GlobalTitle={GlobalTitle: GtIndicator=INDICATOR_0100, TranslationType=0, {QualifiedDigits: NumberPlan=MSISDN, NumberType=INTERNATIONAL, Digits=461000301}}}
Destination address : {SccpUserAddress: RoutingIndicator=ROUTE_ON_GT, SignallingPointCode=null, SubsystemNumber=8, GlobalTitle={GlobalTitle: GtIndicator=INDICATOR_0100, TranslationType=0, {QualifiedDigits: NumberPlan=MSISDN, NumberType=INTERNATIONAL, Digits=461000101}}}
TC-BEGIN ind
var rawSites = {
'programming': [
'http://blog.codinghorror.com/',
'http://thedailywtf.com/',
'http://www.hanselman.com/blog/',
'http://code.tutsplus.com',
'https://news.ycombinator.com/',
'http://www.reddit.com/r/programming/',
'http://codebetter.com',
'http://android-developers.blogspot.com/',
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite