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
#PowerShell script to ping 8.8.8.8 for ten seconds | |
function ping8() { | |
ping 8.8.8.8 | |
Start-Sleep -s 10 | |
Exit | |
} | |
ping8 |
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
<?php | |
`git pull origin master`; | |
?> |
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
cat MAC.csv | sed -e 's/[0-9a-fA-F]\{2\}/&:/g;s/.$//' >> REAL-MAC.csv |
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
" Custom VIM Settings | |
" Set utf8 as standard encoding and en_US as the standard language | |
set encoding=utf8 | |
" Turn Syntax Highliting on | |
syntax on | |
" Set the Default Color Scheme/Theme |
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
<!DOCTYPE html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Fibonacci Sequence using PHP</title> | |
</head> | |
<body> | |
<div align=center> | |
<h1>Fibonacci Sequence using PHP</h1> |
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
Basic Syntax for sqlite3 | |
# Navigate to the directory where the sqlite database files are located | |
$ cd /workingDIR | |
# Initiate a connection with the database | |
$ sqlite3 databasename.sqlite3 | |
# Show tables | |
> .tables |
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
#!/usr/bin/env ruby | |
# AJ Acevedo | ajacevedo.com | |
# This script will backup and compress a MySQL database using mysqldump and gzip | |
# Simply specify the database name, username, and password at the command-line when excucuting the script. | |
# Usage Syntax: | |
# $ db_backup.rb database_name username password | |
database = ARGV.shift | |
username = ARGV.shift |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title> <!-- Insert Title Here --> </title> | |
</head> | |
<body> | |
<header> | |
<nav> | |
<!-- Insert Navigation Bar Here --> |
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
# This works | |
$ gem install colorize | |
$ ruby -rubygems -e 'require "colorize"; puts "This is a blinking blue on red string".blue.on_red.blink' | |
# this is broken | |
gem install chromatic | |
$ ruby -rubygems -e 'require "chromatic"; puts "This is a blinking blue on red string".blue.on_red.blink' |
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
#!/usr/bin/env bash | |
# This script adds an empty Macintosh HD directory to the CS6 installation which K4 depends on for non-admin users. | |
# This script must be run with sudo from Terminal or deployed as an Administrator with Remote Desktop | |
# ie: | |
# $ sudo ./k4-hotfix.sh | |
# If you are unable to execute this file make sure it has executable permissions. | |
# $ chmod 777 k4-hotfix.sh | |
mkdir -p /Applications/Adobe\ InDesign\ CS6/Adobe\ InDesign\ CS6.app/Contents/MacOS/Macintosh\ HD |
OlderNewer