Skip to content

Instantly share code, notes, and snippets.

-- debug logging
function log(...)
local arg={...}
local msg=""
for m in all(arg) do
msg=msg.._lstr(m)
end
_log(msg)
#!/bin/sh
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Your Correct Name"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
@ddribin
ddribin / # handbrake - 2018-05-19_00-44-18.txt
Created May 22, 2018 16:17
handbrake on macOS 10.13.5 - Homebrew build logs
Homebrew build logs for handbrake on macOS 10.13.5
Build date: 2018-05-19 00:44:18
10:53:29.211: CPU Name: Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
10:53:29.211: CPU Speed: 2904MHz
10:53:29.211: Physical Cores: 4, Logical Cores: 8
10:53:29.211: Physical Memory: 16280MB Total, 14478MB Free
10:53:29.211: Windows Version: 10.0 Build 14393 (revision: 1198; 64-bit)
10:53:29.211: Running as administrator: false
10:53:29.211: Aero is Enabled (Aero is always on for windows 8 and above)
10:53:29.211: Portable mode: false
10:53:29.219: OBS 18.0.1 (64bit, windows)
10:53:29.219: ---------------------------------
@ddribin
ddribin / terminal.sh
Created February 16, 2017 04:16
failed to setup loop device: Permission denied ?
# Mount the VMWare shared folder
$ vmhgfs-fuse ".host:/$(vmware-hgfsclient)" ~/Shared
# Mount the disk image
$ sudo mount -t ext3 -o loop ~/Shared/linux-ext3.img /mnt
mount: /home/dave/Shared/linux-ext3.img: failed to setup loop device: Permission denied
# Why??
@ddribin
ddribin / .zshrc
Created March 30, 2016 23:08
The 'cd' function in my .zshrc
cd ()
{
if (( ${#argv} == 0 )); then
builtin cd
return
fi
local dir=$1
if [[ -f $dir ]]; then
file=$dir:t
echo "Ignoring: $file"
@ddribin
ddribin / .inputrc
Created October 29, 2015 15:25
Minimal ~/.inputrc to make bash usable
set completion-ignore-case on
"\ep": history-search-backward
"\en": history-search-forward
@ddribin
ddribin / gist:10207949
Last active August 29, 2015 13:58
Contact Mr Christopher Parker

Subject: Contact Mr Christopher Parker

You'Re A Winner,Greetings to you, this is a special notification from the Apple iphone company,congratulating you of been one of our top jackpot prize winner of £950.000.00 of the IPHONE-anniversary final win draw,Kindly contact Mr Christopher Parker for more details and claims instructions on Email: [email protected]

@ddribin
ddribin / gist:9402109
Created March 6, 2014 23:42
Spam Code
#include <iostream>
#include <algorithm>
using namespace std;
int mostpancakes(int array[]){
int temp=0;
for(int i=0;i<10;i++) {
if(array[i] > temp){
temp=i; }
}return temp;}int main() {
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<true/>
<key>Label</key>
<string>org.dribin.dave.periodic-hourly</string>
<key>ProgramArguments</key>
<array>