Quickies
[
categories
] [
index
] [
all (418)
] [
latest
]
Apache
Generate a list of random numbers
Restart the server gracefully
Start Apache server on Mountain Lion
AppleScript
AppleScript cheat sheet
Log the class of a variable
Bash
Check last command exit status
C
Check endianness
Inline assembly with Intel syntax
Size of an array on the stack
Cocoa AppKit
10.7 - Testing Automatic Termination
Animating layer opacity
Application name
Default Icons
Disable CoreAnimation implicit animations
Getting the list of running applications
Getting the network Machine Icon
Hide and display cursor
Launch another application
NSValueTransformer
Opening a URL
Quartz anti-aliasing
Quickly check AppKit version
Runtime Version Check
Use Python objects from Objective-C with Python.h
Cocoa Foundation
Blocks debugging
Cocoa singleton
Concurrency with blocks
Constant strings in Objective-C
Custom logs
Dispatch a block after a 3 seconds delay
Display binary images loading
Ensure 64-bits readyness
Explore CoreData base with F-Script
Filter an NSArray with NSPredicate
Formatted date
Get current thread
Get the call stack symbols
Getting the application version number
Getting the Desktop path
IMP caching optimization technique
Key value coding
Measure execution time
Method swizzling
Minimal Command-line Example
Network hostname and addresses
NSDate day of the year
NSProcessInfo
Objective-C Runtime environment variables
Quitting another application
Regular expressions matching with NSPredicate
Regular expressions with NSRegularExpression
Regular expressions with RegexKitLite
Run an external script
Show the autorelease pools
Suspend a thread
The __block Storage Type
Thread safe dispatch once
Tracing Objective-C messages
Universally unique identifier
Use a private framework
Version check from Gestalt
Cocoa UIKit
Get the UIImage from a UIView
Hide status bar
Prevent device from going to sleep
Simulate memory warnings
UIView recursive description
CVS
Checkout a tagged revision
Displaying the tags for a file
Getting the logs for a given period
Recursively delete CVS directories
DTrace
Trace Objective-C messages
fink
Compile a package using available binaries
gdb
Breaking on a stripped binary with no main function
Debugging Objective-C
Get a stack trace of all threads
Inspect Objective-C methods parameters
Git
.gitignore template for Xcode 4
Add new files and delete old files
Edit the message of the most recent commit
Pretty logs
Revert any changes made since last commit
Setup a git repository in Dropbox
Use FileMerge with git diff
Gnuplot
Cumulative Flow Chart
Heatmap
Google
Don't load Google ads
GPG
Encrypt / decrypt a file
iCal
Change the default event length
Show iCal Debug Menu
ImageMagick
Add a blurry shadow under an image
Convert a png file into jpg, replace alpha background with white
iOS
Crop iPhone simulator screenshots with Acorn
Crop iPhone simulator screenshots with Python Image Library
Draw a frame around a UIView
Ensuring the archive to be published is entitled for production APNS
Field test
Recognize iPhone and iPad at runtime
iTunes
Display notifications on the Dock icon
Java
Getting the user name
Read a file inside a .jar
Unjar files
LaTeX
Accolades conditionnelles
Accolades horizontales
Algorithmes
Alignements
Arbre 1
Arbre 2
Arbre 3
Arbre binaire coloré pondéré
Automate fini déterministe
Écrire les siècles
Écriture cursive
Équations (système)
Équations alignées
Code barre
Code barre EAN
Date et heure
Exemple
Figures côte-à-côte
Fractions
Graphe biparti
Graphe non pondéré orienté
Graphe pondéré non orienté
Graphe pondéré orienté
Graphe pondéré orienté (2)
Interlignes
LaTeX symbol classifier
Listes énumérées (1)
Listes énumérées (2)
Listings package language definition for Objective-C 2.0
Matrices
Notes dans la marge
Opérateur modulo
Path for \includegraphics
PSTricks
Section non numérotée
Symbol Euro €
Tableau adaptatif
Tableau avec formatage des colonnes
Tableaux côte-à-côte
Texte barré
Texte en couleur
Texte sur plusieurs colonnes
Texte surligné
Typographie française
URLs
Mac App Store
Show applications handling a specific UTI
Show applications handling some file extension
Mac OS X
10.7 - Disable accentuated characters on press
10.7 - Disable Mail animations
10.7 - Prevent an application from reopening windows at launch
10.7 - Turn off window opening animation in Lion
Adjust columns length
Always show expanded save dialogs
atos - adresses to symbols
Boot in verbose mode
Change login background image
Change screenshot save location
Change screenshots file format
Disable checksums when mounting disk images
Disable Dashboard
Disable data detectors
Disable iTunes Genius sidebar
Disable menu bar transparency
Disable scrollbars animations
Disable Spaces Animation
Disable window shadow on screenshots
Display all emails as plain text
Display various info in the login window
Display wireless networks
Dock - remove the glass look
Enable Disk Utility debug menu
Enable Mac App Store debug menu
Enable text selection in Quick Look previews
Finder QuickLook plugin for .text clipping files
Gain root access with physical access
Gradient behind stack icons
iCloud photo stream
Increase Dock icon magnification
Install a package in a disk image from command-line
LaunchServices and lsregister
Mac OS X Version
Mail - Don't include name when copying an email address
Make a file invisible
Make Dock hidden icons transparent
Open a new Terminal window in the current directory
Prevent launching applications from bouncing in the Dock
Prevent PowerBook from waking-up at opening
Put a Dashboard widget on the desktop
Reload a Dashboard widget
Remove accounts from the login window
Restore "Don’t Save" shortcut
Save to disk (not to iCloud) by default
Set title of Finder windows to full path
Show AddressBook debug menu
Show only currently active applications in Dock
Show startup logs
Stop writing .DS_Store files on network volumes
Use a screensaver as desktop background
Verify applications signature
Where to put Spotlight cache files
Mac OS X - CLI
All the files you downloaded
AppleMobileBackup command line utility
atos - addresses to symbols
Battery Statistics
Change the path of a linked library
Check which process prevents Mac from going to sleep
Choose gcc version
Convert .doc into .markdown
Convert plist format
Delete and rebuild Spotlight index
Disable quarantine
Disable Spotlight
Extract certificates from OS X applications
Javascript interpreter
Login faster in Terminal.app
Monitor OS X Filesystem Usage and Access
Perform prebinding optimisation
Prevent Spotlight from indexing a folder
Remove .DS_Store files
Repair permissions
Resize photos
Run periodic maintenance scripts
Selectors actually used
Set short keyboard delay and fast repeat rate
Show an executable's shared libraries
Spotlight search from command-line
Test OS X Code Signing
The locate database
Traffic shaping
Mac OS X - Finder
10.7 - reveal ~/Library
Activate AirDrop on any Mac
Add Quit menu
Choose the directory to be displayed in Finder background
Disable all animations
Display invisible files
Edit the name of a selected file
Empty Trash securely by default
Hide Desktop contents in background
Print a directory's contents
Read desktop background image
Show warning before changing a file extension
matplotlib
Simple chart, MATLAB-style
Mercurial
.hgrc host fingerprints
.hgrc HTTP authentication
.hgrc username
Change latest commit message
Compact Mercurial logs
Pull from a repository with a self-signed certificate
Rename a tag
Use FileMerge for diffs
mod_python
Display a variable contents
MySQL
Add a fulltext index
Add a unicity constraint on a column
Add an index
Analyze a table
Choose the database
Connect to the server
Describe the database structure
Display the list of tables
Export a database
Export the structure of a database
Import a database
Insert data
Minimal secure
Modify data
Optimize table
Reset incrementation counter
Search / replace in a field
Start the server
Stop the server
Use the former password system
Use UTF-8 fields
ncftp
Login on a FTP server
OmniGraffle
Drawing with AppleScript
OpenSSL
Retrieve a remote certificate
PDF
Concat two PDF files
PDF Reference
Remove the "owner" password
PostgreSQL
Dump database structure
List databases
Python
A simple class to get quickly started
Build a dictionary with keys and values
Build a dictionary with list comprehension
Calendar arithmetics
Call a function from its name
Class methods
Code coverage
Code profiling
Convert datetime to unix timestamp
Convert utf-8 string into latin-1
Count lines efficiently
Create datetime from unix timestamp
Creation or modification dates of a file
Detach a new thread
Display date and time
Display site-packages path
Enumeration index
Exceptions
Filter the methods of an object according to their name
Flatten a list of lists
Get a random integer
Get endianness
Get environment variables
Get self IP address
Get the name of a function
Get the URL out of a Mac OS X .webloc file
Handle URL loading timeout
HTTP server
httplib
Kill current process
Launch an external process and get the result
Load an Cocoa Framework with PyObjC
Mapping charsets
Multiple replace in one pass
Offscreen Quartz drawing with Python
OS X English Dictionary Lookup
Parse NSDate descriptions
Pretty print JSON
Python Image Library
Random element from sequence
Read a huge file line by line
Read an arbitrary line in a file
Read formatted datetime
Reading binary data
Send an email
SFTP with the Paramiko module
Simulate enumerate type
Singleton
Sockets Datagrams
Splitting a sequence into chunks
Start a web server from current directory
Static methods
str.startswith() can accept a tuple of possible matches
Strings concatenation
Strip HTML tags
The Zen of Python
Unit tests
Use named pipes
uuid
Walk through a directory recursively
Write binary data
Write to stderr
XML-RPC web service
R
Install a package from source
Safari
10.7 - Disable Reading List's icon in bookmarks bar
10.7 - Restore "contains" to default search type
Change history depth
Download several URLs
Enable Safari web inspector
Import Internet Explorer favorites
Keyboard shortcuts
Link to a man page
Open a man page in the Terminal
Open all links in a new tab
Open an URL in a new tab
Prevent Safari from displaying PDF files
Show debug menu
Text shadow
Subversion
Add a file containing an arobase in its name
Ignore Xcode personnal project files
Remove .svn directories recursively
Setup a local repository
svn logs for the last 3 days
Tags
TextMate
Diff in color
Third-party applications
Install Internet Explorer for Windows on Mac OS X with Wine
Unix
awk
bz2
Change a byte in a file with direct access
Change ethernet MAC address
Change the date and time of a file
Change the encoding of a file
Check file integrity with SHA1 checksum
Connect through SSH without password
Convert a man page into a pdf file
Convert unix timestamp into human readable date
Convert uppercase into lowercase
Count lines of code of a project
Counting Objective-C lines of code
Create a file with 128 random kB
Create a syntax-highlighted HTML file
Curl with cookie
Curl with HTTP authentication
Curl with POST data
Curl without verifying the certificate
cut
Dump and reload bytes
Dump the raw bytes of a file
Easily find and count duplicated lines
Execute a process in background
Extract 32 bits executable from universal binary with lipo
Find in file contents
Find in file names
Grep strings matching a minimal length
hash functions
List most frequently used commands
Monitor file system activity
Permissions
Pretty disk space
Redirect stdin and stdout in a file
Save a man page into a text file
Show available disk space
Split and concat a file
Stop a process
Use SSH in a shell script
Zip all text files in a directory
Xcode
Auto versioning with current date and svn revision
Break on any exception
Generate GraphViz dot file of compilation dependancies
Jump around camelCase identifiers
Keep more than 10 projects in File menu
Pragma mark
Rebuild indexes
Set a build failure sound
Set __MyCompanyName__
Stop prompting to save files in other editors
Symbolication with dwarfdump