Skip to content

Instantly share code, notes, and snippets.

View jsalinas's full-sized avatar

Jorge Salinas jsalinas

  • Freelance
  • Lima, Perú
View GitHub Profile
@pjkix
pjkix / css-stats-ack.sh
Created October 5, 2011 21:39
shell script to generate some css file statistics
#!/bin/bash
## v1.0.6
## this script will gernerate css stats
### example output
# CSS STATS
# ----------
# Floats: 132
@matiskay
matiskay / wp-install.sh
Created September 9, 2011 22:06
Wordpress Install
#!/bin/bash
if [[ ! -n $1 ]]; then
echo "Please insert a project name"
exit 1
fi
# Mysql Config
MYSQL_USER=""
@senko
senko / onchange.sh
Last active July 14, 2023 07:54
OnChange - Watch current directory and execute a command if anything in it changes
#!/bin/bash
#
# Watch current directory (recursively) for file changes, and execute
# a command when a file or directory is created, modified or deleted.
#
# Written by: Senko Rasic <senko.rasic@dobarkod.hr>
#
# Requires Linux, bash and inotifywait (from inotify-tools package).
#
# To avoid executing the command multiple times when a sequence of
@matiskay
matiskay / html.sh
Created August 4, 2011 05:16
Create a scaffold to develop a html project
#!/bin/bash
PROYECTNAME=$1
function GenerateIndex {
{
echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">'
echo '<html>'
echo ' <head>'
echo ' <title></title>'
echo ' <link type="text/css" rel="stylesheet" href="css/reset.css" />'