This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun john-convert () | |
"Takes Hex dump from Wireshark, looks for the ack offset \"3032\" | |
Then finds the byte offset requested, and converts that hex to binary" | |
(interactive) | |
(beginning-of-line) | |
(search-forward "3032") | |
(newline) | |
(while (not (eolp)) | |
(forward-char 2)(princ " " (current-buffer))) | |
(beginning-of-line) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
s () { | |
svn log -r {$(date --date="$*" +%FT%T)}:HEAD -v -g | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare -f | grep -E '^[a-zA-Z]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bfunctdef () { | |
#show the definition of a bash_function | |
# Note the quoting, so the input variable is expanded. | |
declare -f | awk '/^'$1'/,/^}/' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
history | awk '{ print $2 }' | awk '{ a[$0]++ } END { for(key in a) print a[key], key }' | sort -rn | head -n 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// Quiz | |
// | |
// Created by John Regner on 7/26/14. | |
// Copyright (c) 2014 In Your Dreams Software. All rights reserved. | |
// | |
import UIKit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// BNRItem.swift | |
// Created by John Regner on 7/28/14. | |
// | |
import Foundation | |
extension Array { | |
func randomItem() -> T { | |
let random = Int(arc4random()) % self.count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// WhereAmI | |
// | |
// Created by John Regner on 8/13/14. | |
// Copyright (c) 2014 In Your Dreams Software. All rights reserved. | |
// | |
import UIKit | |
import CoreLocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// WhereAmI | |
// | |
// Created by John Regner on 8/13/14. | |
// Copyright (c) 2014 In Your Dreams Software. All rights reserved. | |
// | |
import UIKit | |
import CoreLocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// ViewController.swift | |
// WhereAmI | |
// | |
// Created by John Regner on 8/13/14. | |
// Copyright (c) 2014 In Your Dreams Software. All rights reserved. | |
// | |
import UIKit | |
import CoreLocation |
OlderNewer