Skip to content

Instantly share code, notes, and snippets.

#!/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
@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 "$*"
@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 / 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 / blog.js
Created September 5, 2011 15:51
The Dynamic JS for My Blog!
document.write('<center><a href="http://profiles.google.com/alex.endfinger?rel=author">Visit My Google+ Profile</a></center>')
# /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
<html>
<head>
<title>Print Test Page</title>
<script src="//www.google.com/cloudprint/client/cpgadget.js">
</script>
<script defer="defer">
var gadget = new cloudprint.Gadget();
gadget.setPrintButton(
document.getElementById("print_button");
# /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
#!/bin/sh
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# The kernel mounts /proc, /sys and /dev during initialization, prior
# to starting init.
@alex-endfinger
alex-endfinger / makechange.sh
Created August 2, 2011 13:40
Script To Remove ChromeOS Read-Only Hard Drive
#!/bin/bash
sudo su
mount -o remount,rw /
echo You Can Now Write To The System!