Quickies
[
categories
] [
index
] [
all (527)
] [
latest
]
Apache
Restart the server gracefully
Start Apache server on Mountain Lion
AppleScript
AppleScript cheat sheet
Log the class of a variable
Bash
Add file extension to all files
Check last command exit status
Echo raw bytes
C
Check endianness
Inline assembly with Intel syntax
Return address of the current function
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
NSView - Show all views
Opening a URL
Quartz anti-aliasing
Quickly check AppKit version
Reveal a file in Finder
Runtime Version Check
Use Python objects from Objective-C with Python.h
Cocoa Foundation
Basic jailbreak detection
Blocks debugging
Cocoa singleton
Concurrency with blocks
Constant strings in Objective-C
Custom logs
Deprecation message warning
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
GCD: getting notified when all tasks from group are finished
Get current thread
Get the call stack symbols
Getting the application version number
Getting the Desktop path
IMP caching optimization technique
Key value coding
Log all methods replaced by categories implementations
Mark a method as unavailable
Measure execution time
Method swizzling
Minimal Command-line Example
Network hostname and addresses
NSCalendar.numberOfDaysBetweenStartDate(_:andEndDate:)
NSDate day of the year
NSProcessInfo
objc's environment variables
Objective-C Runtime environment variables
Queue with concurrent tasks and synchronization at the end
Quitting another application
Random Numbers
Regular expressions matching with NSPredicate
Regular expressions with NSRegularExpression
Regular expressions with RegexKitLite
Removing clang warnings
Run an external script
Runtime version detection
Show the autorelease pools
Singleton creation
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
Alias UIKit and AppKit classes
Enforce iOS 6's UI
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
Authors of a particular project
Contributors to a git repository
Delete remote tag
Edit the message of the most recent commit
Move a Remote Tag
Pretty logs
Remove Tag
Revert any changes made since last commit
Setup a git repository in Dropbox
Use FileMerge with git diff
Gnuplot
Cumulative Flow Chart
Heatmap
Google
Display a KML file in Google Maps
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
asm <-> opcodes
Crop iPhone simulator screenshots with Acorn
Crop iPhone simulator screenshots with Python Image Library
Draw a frame around a UIView
Dump iOS network packets from the device
Ensuring the archive to be published is entitled for production APNS
Field test
Language and locale environment variables
Log the whole views hierarchy
macro to recognize iOS from tvOS
Re-sign a binary
Recognize iPhone and iPad at runtime
Record movie in iOS Simulator
iTunes
Display notifications on the Dock icon
Java
Getting the user name
Read a file inside a .jar
Unjar files
JavaScript
Draw with code in URL
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 Notification Center
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 screen mirroring
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
Remove Obsolete iOS Device Support and Documentation
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 build number on Xcode icon
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 HEIC to JPEG and resize
Convert plist format
Create a RAM disk
Create disk image from folder
Delete and rebuild Spotlight index
Disable photos app to open when a device is connected
Disable quarantine
Disable Spotlight
Drop URLs from all tabs synced with iCloud
Dump System UTIs
Enable AirDrop on wire and old machines
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
Recent Networks
Remove .DS_Store files
Repair permissions
Resize photos
Run periodic maintenance scripts
Run Software Update
Selectors actually used
Set short keyboard delay and fast repeat rate
Show an executable's shared libraries
Sierra - Disable GateKeeper
Spotlight search from command-line
Test OS X Code Signing
TextEdit - start with new file instead of open dialog
The locate database
Traffic shaping
xcode-select
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
Diff between tags
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
netcat
Listen on TCP port
OmniGraffle
Drawing with AppleScript
OpenSSL
Dump modulus from private key
Dump modulus from public key
Dump private key contents
Dump public key from certificate
Read integer from public RSA key
Retrieve a remote certificate
PDF
Concat two PDF files
PDF Reference
Remove the "owner" password
PostgreSQL
Dump database structure
List databases
PostScript
char to string
Custom dictionaries
def and bind def
Enumerate a dictionary
Get a prompt on a PostScript printer
Get product name
Ghostscript multiple PDF files output
Handle user input
print int
Print stack and exit
Print without newline
tokenize user input
User input during print
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 - Python 2
Code profiling - Python 3
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
Enter debugger at a certain point
Enumeration index
Exceptions
Filter the methods of an object according to their name
Flatten a list of lists
for loop else
Generate a list of random numbers
Get a random integer
Get endianness
Get environment variables
Get function source code
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 Request with Python sockets
HTTP server
httplib
Kill current process
Launch an external process and get the result
Load an Cocoa Framework with PyObjC
Lock macOS screen
Mapping charsets
Multiple replace in one pass
Multiprocessing in Python
Offscreen Quartz drawing with Python
OS X English Dictionary Lookup
Parse NSDate descriptions
Pretty print JSON
Pretty, local date and time
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
Show keywords
Show where a module lives
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 a shell command
Use named pipes
Use requirements file
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
sox
Create a spectrogram
Listen to /dev/urandom
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
Swift
Cast
dispatch groups
Introspection
JSON deserialization in guard
Lazy initialize static variable
Objective-C flags
Open the REPL
Properties initialization with code
Public property with private setter
Standalone file
Static instance
subscript
Swift script
Swift Singleton
TextMate
Diff in color
Third-party applications
Download YouTube video, merge sound and image
Enable muting noisy tabs
Install Internet Explorer for Windows on Mac OS X with Wine
Unix
awk
Backups with rsync
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
Check UDP connection
Chrome HTML bookmarks to raw URLs
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
Go back to previous directory
Grep strings matching a minimal length
hash functions
List most frequently used commands
List open connections of a process
Monitor file system activity
ncftp
Permissions
Pretty disk space
Quick Connection to Free Wifi
Redirect stdin and stdout in a file
Run a command in background that is not killed when the shell closes
Save a man page into a text file
Search all man pages
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__
Show build duration
Stop prompting to save files in other editors
Symbolication with dwarfdump