Cheatsheets
aop.cheatsheet
· β˜• 1 min read
#-# #-# Pointcut #-# A pointcut is a program element that picks out join points and exposes data from the execution context of those join points. Pointcuts are used primarily by advice. They can be composed with boolean operators to build up other pointcuts. any type and number of args ─┐ method ─┐ β”‚ class ─┐ β”‚ β”‚ β”‚ β”‚ β”‚ @Pointcut(“execution(public * com.demo..(..))”) β”‚ β”‚ β”‚ β”‚ β”‚ └─ any return type

asciiart.cheatsheet
· β˜• 1 min read
#-# #-# Source code comments #-# Parameter dezambiguation β”Œβ”€ execute with superuser rights β”‚ β”Œβ”€ change file mode β”‚ β”‚ β”Œβ”€ path to file sudo chmod a+rx file β”‚ │└─ execution right β”‚ └─ read right └─ all users #-# #-# Command line display #-# Statuses [?] - unknown [βœ”] - success [βœ–] - failure Directory tree root β”œβ”€β”€ CVS β”‚ β”œβ”€β”€ Entries β”‚ β”œβ”€β”€ Repository β”‚ └── Root β”œβ”€β”€ Makefile

assembler.cheatsheet
· β˜• 10 min read
#-# #-# Operations #-# #-# Transfer Name Comment Code Operation O D I T S Z A P C MOV Move (copy) MOV dest,source dest:=source . . . . . . . . . XCHG Exchange XCHG op1,op2 op1:=op2, op2:=op1 . . . . . . . . . STC Set carry STC CF:=1 . . . . . . . . 1 CLC Clear carry CLC CF:=0 . . .

bash.cheatsheet
· β˜• 7 min read
#-# #-# Variables #-# #-# String manipulation Command Description ${varname:-word} If varname exists and isn’t null, return its value; otherwise return word ${varname:=word} If varname exists and isn’t null, return its value; otherwise set it word and then return its value ${varname:?message} If varname exists and isn’t null, return its value; otherwise print varname, followed by message and abort the current command or script ${varname:+word} If varname exists and isn’t null, return word; otherwise return null

big-o-complexity.cheatsheet
· β˜• 2 min read
#-# #-# Big-O complexities for common algorithms #-# #-# Data Structure Operations Data Structure Time Complexity Space Complexity Average Worst Worst ------- ----- ----- Access Search Insertion Deletion Access Search Insertion Deletion ------ ------ --------- -------- ------ ------ --------- -------- Array O(1) O(n) O(n) O(n) O(1) O(n) O(n) O(n) O(n) Stack O(n) O(n) O(1) O(1) O(n) O(n) O(1) O(1) O(n) Singly-Linked List O(n) O(n) O(1) O(1) O(n) O(n) O(1) O(1) O(n)

cmd.cheatsheet
· β˜• 1 min read
#-# #-# Filesystem #-# mklink /j source destination

css.cheatsheet
· β˜• 3 min read
#-# #-# Box Model #-# β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ β”‚ β”‚ padding ──┼───┼───┼── Clears an area around the content. β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ The padding is transparent. β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ content ────┼───┼───┼───┼── The content of the box, β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ where text and images appear.

eclipse.cheatsheet
· β˜• 2 min read
#-# #-# Keyboard shortcuts #-# #-# Debugging Windows OS X Shortcut F5 F5 Step Into F6 F6 Step Over F7 F7 Step Return F8 F8 Resume F11 F11 Debug Last Launched Ctrl+F11 Cmd+F11 Run Last Launched Ctrl+R Cmd+R Run to Line Ctrl+Shift+B Cmd+Shift+B Toggle Breakpoint on Line #-# Navigation Windows OS X Shortcut F3 F3 Format Source Ctrl+Shift+G Cmd+Shift+G Find Reference Ctrl+Shift+R Cmd+Shift+R Open Resource Ctrl+Shift+T Cmd+Shift+T Open Type Ctrl+H Cmd+H Open Search Dialog

freemarker.cheatsheet
· β˜• 6 min read
#-# #-# Directives #-# #-# Strings Directive Description boolean Converts string to boolean (true, false). cap_first CapitaΒ­lizes first word of string. capitalize CapitaΒ­lizes every word in string properly. chop_lΒ­ineΒ­break Removes line-break from end of string. contains (substΒ­ring) Checks if string contains substring. date, time, datetime Converts string to date/tΒ­imeΒ­/daΒ­tetime based on *_format. ends_with (substΒ­ring) Checks if string ends with substring. ensureΒ­_enΒ­ds_with (substΒ­ring) Returns string with substring appended if not already there.

git.cheatsheet
· β˜• 3 min read
#-# #-# Configuration #-# Define the author name to be used for all commits by the current user. git config –global user.name Define the author email to be used for all commits by the current user. git config –global user.email Create shortcut for a Git command. E.g. alias.glog “log –graph –oneline” will set “git glog” equivalent to “git log –graph –oneline” git config –global alias. Set text editor used by commands for all users on the machine.

gradle.cheatsheet
· β˜• 10 min read
#-# #-# Command line #-# gradle [option…] [task…] #-# Options Option Description -?, -h, –help Shows a help message. -a, –no-rebuild Do not rebuild project dependencies. –all Shows additional detail in the task listing. -b, –build-file Specifies the build file. -c, –settings-file Specifies the settings file. –console Specifies which type of console output to generate (plain/auto/rich). –continue Continues task execution after a task failure. –configure-on-demand Only relevant projects are configured in this build run.

groovy.cheatsheet
· β˜• 4 min read
#-# #-# Variables #-# def x = 1 println x x = new java.util.Date() println x x = -3.1499392 println x x = false println x x = “Groovy!” println x #-# #-# Collections #-# Creating an empty list def technologies = [] Adding elements to the list technologies.add(“Grails”) technologies « “Groovy” // Left shift adds, and returns the list technologies.addAll([“Gradle”,“Griffon”]) Removing elements from the list technologies.remove(“Griffon”) technologies = technologies - ‘Grails’

hadoop.cheatsheet
· β˜• 4 min read
#-# #-# Command line #-# #-# Namenode Command Description hadoop namenode -format Format HDFS filesystem from Namenode. hadoop namenode -upgrade Upgrade the NameNode. start-dfs.sh Start HDFS Daemons. stop-dfs.sh Stop HDFS Daemons. start-mapred.sh Start MapReduce Daemons. stop-mapred.sh Stop MapReduce Daemons. hadoop namenode -recover -force Recover namenode metadata after a cluster failure (may lose data). #-# Health Command Description hadoop fsck / Filesystem check on HDFS. hadoop fsck / -files Display files during check.