⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
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
#include <slack/std.h> | |
#ifndef HAVE_SNPRINTF | |
#include <slack/snprintf.h> | |
#endif | |
int main(int ac, char **av) | |
{ | |
char buf[16]; | |
char *str = buf; | |
char *extra = NULL; |
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 | |
# Aayush Tuladhar | |
# v1.0 (2011) | |
# DistCC Monitor | |
# Performs Distcc On the Host Servers. Gets the compilation time and delivers email using sendmail. | |
HOSTFILE=/usr/local/itasca/buildtools/etc/lsdistcc_hosts | |
sendmailbin=/usr/sbin/sendmail | |
WORKING_DIR=`pwd` |
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 java.io.FileNotFoundException; | |
import java.io.FileWriter; | |
import java.io.PrintWriter; | |
import java.io.Writer; | |
public class PlayingWithStrings { | |
/** | |
* @param args | |
*/ |
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
#Scheduled Auto File Move/Copy Script | |
#------------------------------------ | |
# #Filename : config | |
# #Config File for File Dropper | |
# AUTHOR=Aayush Tuladhar | |
# DESTINATION_DIR=/appserver/userDocs | |
# 5 -- 5 Sec | |
# 300 - 5 Minutes | |
# 900 -- 15 Minutes |
##List Package
yum list available (yum list)
yum list installed
##Search Packages
yum search
Mac Shortcut | Windows Shortcut | Description |
---|---|---|
⌘ + ⇧ + R | Ctrl + Shift + R | Open / Search for Resources |
⌘ + ⇧ + T | Ctrl + Shift + T | Open / Search for types (Useful in finding classes) |
⌘ + O | Ctrl + O | Shows Quick Outline of the Java Class |
⌘ + T | CTRL-T | Show type hierarchy |
ALT – ↑ or ↓ | ALT – ↑ or ↓ | Move line/block |
⌃ + Space | Ctrl + Space | Content assist and Code completion |
⌘ + ⇧ + F | Ctrl + Shift + F | Format source code |
⌘ + L | Ctrl + L | Go to Line Number |
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 | |
# Description: Linux System Information Report in HTML format | |
# Version 2.0 | |
# Useage: sysreport > /var/www/html/report.html | |
# License: BSD | |
# Author: Greg Ippolito | |
cat << HEAD | |
<HTML> | |
<HEAD><TITLE>System Report</TITLE></HEAD> |
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 | |
OLDCONF=$(dpkg -l|grep "^rc"|awk '{print $2}') | |
CURKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g') | |
LINUXPKG="linux-(image|headers|ubuntu-modules|restricted-modules)" | |
METALINUXPKG="linux-(image|headers|restricted-modules)-(generic|i386|server|common|rt|xen)" | |
OLDKERNELS=$(dpkg -l|awk '{print $2}'|grep -E $LINUXPKG |grep -vE $METALINUXPKG|grep -v $CURKERNEL) | |
YELLOW="\033[1;33m" | |
RED="\033[0;31m" | |
ENDCOLOR="\033[0m" |
OlderNewer