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
#!/bin/bash | |
# Alex Klibisz (10/2014) | |
# Shell script which will call the python speedtest-cli (https://github.com/sivel/speedtest-cli) | |
# and write the results to two log files - one with simple results, one with verbose results - | |
# prepended by the date/time of the speed test. | |
# This script should be either included in the same directory as the speedtest-cli files or | |
# the speedest-cli.py should be added to the /usr/bin (can use soft link). |
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
CREATE TABLE IF NOT EXISTS country( | |
id SERIAL not null, | |
cow_id integer not null, | |
name varchar(255) not null, | |
abbreviation varchar(5) not null, | |
primary key(id, cow_id) | |
); | |
INSERT INTO country(cow_id, name, abbreviation) VALUES |
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
#!/bin/bash | |
DIR="/media/alex/Data" | |
# init | |
# delete all of the directories that should be symlinked in the home directory | |
rm -rf /home/alex/Desktop | |
rm -rf /home/alex/Documents | |
rm -rf /home/alex/Pictures | |
rm -rf /home/alex/Videos |
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
{ | |
'United States of America': { | |
cowId: '2', | |
name: 'United States of America', | |
shortName: 'USA' | |
}, | |
Canada: { | |
cowId: '20', | |
name: 'Canada', | |
shortName: 'CAN' |
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
#install nodejs, npm, git | |
sudo apt-get install nodejs nodejs-legacy npm git -y | |
#install npm packages | |
sudo npm install -g cordova | |
sudo npm install -g ionic | |
sudo npm install -g ripple-emulator | |
#download the android sdk (http://developer.android.com/sdk/index.html#Other) | |
mkdir ~/.software && cd ~/.software |
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
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <signal.h> | |
/* compile with gcc -pthread lockwait.c */ | |
pthread_cond_t cv; | |
pthread_mutex_t lock; |
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
//predefined callback | |
a("Hello world", b); | |
//custom callback | |
a("Hello world", function(s) { | |
console.log(s + ", how are you?"); | |
}); | |
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
# Running some application on port 8080, want to make it | |
# available at subdomain.example.com | |
<VirtualHost *:80> | |
ServerAdmin webmaster@localhost | |
ServerName subdomain.example.com | |
ProxyPreserveHost On | |
# setup the proxy | |
<Proxy *> | |
Order allow,deny |
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
.box, .announcement { | |
background: gray; | |
padding: 5px; | |
margin: 10px; | |
} | |
.box__header { | |
background: orange; | |
padding: 5px; | |
margin: 10px; |
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
<main class="view"> | |
<header class="view__header"> | |
<div class="header-area--fb"> | |
<div class="header-area--fb__primary"> | |
<h1>Header Area Primary, Probably a Title</h1> | |
</div> | |
<div class="header-area--fb__secondary"> | |
<p>Header Area Secondary, Dates, Authors, etc.</p> | |
</div> | |
</div> |
OlderNewer