Skip to content

Instantly share code, notes, and snippets.

View germs12's full-sized avatar
:shipit:

James Thullbery germs12

:shipit:
View GitHub Profile
@germs12
germs12 / smb.sh
Created March 31, 2013 23:28
View Active SMB Connections
# http://www.cyberciti.biz/faq/how-do-i-find-the-current-connections-to-a-samba-server/
smbstatus -u
@germs12
germs12 / gist:5285310
Created April 1, 2013 14:43
Mac OS X csshx example
$ csshx site1.com site2.com site3.com
https://help.ubuntu.com/community/CronHowto
# Open crontab to edit
$ crontab -e
@germs12
germs12 / ssh_attempts.sh
Created April 13, 2013 19:09
View malicious SSH login attempts
$ cat /var/log/auth.log | grep -b3 -a4 -i WBC_ERR_AUTH_ERROR
@germs12
germs12 / hard drive
Last active December 16, 2015 09:59
Ubuntu Server 12.10 Reformatting 3TB Drives
# http://askubuntu.com/questions/84501/how-can-i-change-convert-a-ubuntu-mbr-drive-to-a-gpt-and-make-ubuntu-boot-from
Terminology
-----------
BIOS = Basic Input/Output System
(U)EFI = (Unified) Extensible Firmware Interface
MBR = Master Boot Record
GPT = GUID Partition Table
UEFI / EFI / BIOS = Firmware interface
MBR / GPT = How the computer knows (per hard disk) what partitions are on the drive and how to boot from them.
@germs12
germs12 / system monitoring
Last active December 16, 2015 11:18
System Monitoring Tools
# Installing htop
# Followed this: http://www.youtube.com/watch?v=le8o7Lu5RDY
$ sudo apt-get install htop
# Alexey suggested Munin
# http://munin-monitoring.org/
$ sudo apt-get install munin
# http://munin-monitoring.org/wiki/CgiHowto <-- finish
@germs12
germs12 / .inputrc
Created April 25, 2013 15:52
.inputrc
# https://coderwall.com/p/oqtj8w
"\e[A": history-search-backward
"\e[B": history-search-forward
set show-all-if-ambiguous on
set completion-ignore-case on
@germs12
germs12 / Angular JS Business
Last active December 16, 2015 21:21
Angular JS
https://github.com/documentcloud/underscore
http://angularjs.org/
http://www.cheatography.com/proloser/cheat-sheets/angularjs/
http://joelhooks.com/blog/2013/05/22/lessons-learned-kicking-off-an-angularjs-project/
http://iffycan.blogspot.com/2013/05/angular-service-or-factory.html
@germs12
germs12 / newuser
Last active December 17, 2015 09:08
new user linux
y@seacrest:~$ sudo useradd -m rmillikan
y@seacrest:~$ id rmillikan
uid=1001(rmillikan) gid=1001(rmillikan) groups=1001(rmillikan)
y@seacrest:~$ sudo passwd rmillikan
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
# Add User to Group (secondary group)
sudo usermod -a -G <group> <user>
@germs12
germs12 / gist:5635698
Created May 23, 2013 12:26
Big O cheat sheet
http://bigocheatsheet.com/?utm_source=statuscode&utm_medium=email