Skip to content

Instantly share code, notes, and snippets.

@alex-endfinger
alex-endfinger / grabcmds.sh
Created September 10, 2011 22:17
Command Line Fu
#!/bin/sh
curl "http://www.commandlinefu.com/commands/matching/$(echo $1 | base64)/plaintext"
@alex-endfinger
alex-endfinger / f.dat
Created September 10, 2011 22:29
Search For String
#This is an index of all linux commands available in Chrome OS. It Also Has github.com/helloandre/cr48 Installed
grep
ll
ls
grep
ll
ls
if
then
else
@alex-endfinger
alex-endfinger / iscmd
Created September 10, 2011 22:42
Find All Possible Commands in Chrome OS
#!/bin/bash
#Made By Kenneth Endfinger
#This Script Will Check If Chrome OS Supports The Specified Command: Usage: iscmd <command>
curl --silent https://raw.github.com/gist/1208889/f.dat | grep "$*"
#!/bin/bash
for i in $(seq 1 2 3 4 5 6 7 8 9 10 100) ; do sleep 1; echo $i | dialog --gauge "Please wait" 10 70 0; done
#!/bin/bash
echo "Scanning TCP ports..."
for p in {1..1023}
do
(echo >/dev/tcp/localhost/$p) >/dev/null 2>&1 && echo "$p is open!"
done
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
@alex-endfinger
alex-endfinger / bashrc
Created October 1, 2011 23:44
.bashrc
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
4/6GmwY0A7nKcI11or0Y_1arl-tV6df
59 * * * * ls
ps auxww |grep " dd " |grep -v grep |awk '{print $2}' |while read pid; do kill -USR1 $pid; done