Skip to content

Instantly share code, notes, and snippets.

View ksophocleous's full-sized avatar
🏠
Working from home

Konstantinos Sofokleous ksophocleous

🏠
Working from home
View GitHub Profile
@ksophocleous
ksophocleous / install_jekyll.sh
Created September 8, 2014 07:21
install jekyll
sudo apt-get update
sudo apt-get install -y ruby1.9.1 ruby1.9.1-dev nodejs gcc build-essential g++ make
sudo gem install jekyll
@ksophocleous
ksophocleous / update_kernel.sh
Last active August 29, 2015 14:02
update kernel on EC2 precise to 3.2.59 (32bit)
#!/bin/bash
# NOTE: This was tested on ami-06d12671
set -e
sudo apt-get update --fix-missing
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
@ksophocleous
ksophocleous / fake_webcam.sh
Last active August 29, 2015 14:02
firefox on ubuntu server
#!/bin/bash
set -e
# Assumes that you run update_kernel.sh (another gist of mine)
# export URL=url to open (e.g. http://54.195.58.117/webrtc.html?port=8801)
# export VIDEODEV=video device to send test video stream to (e.g. /dev/video0)
if [ -z "$URL" ]; then
@ksophocleous
ksophocleous / kickstart
Created June 3, 2014 07:57
kickstart_instance
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y build-essential fish
@ksophocleous
ksophocleous / sh_example_1.sh
Created February 18, 2014 09:50
so much (ba)sh awesomeness in this script
#!/bin/sh
if [ $# -lt 1 ]; then
echo "No destination defined. Usage: $0 destination" >&2
exit 1
elif [ $# -gt 1 ]; then
echo "Too many arguments. Usage: $0 destination" >&2
exit 1
elif [ ! -d "$1" ]; then
echo "Invalid path: $1" >&2
@ksophocleous
ksophocleous / install
Last active December 26, 2015 07:49
avconv + gstreamer 1.0
#!/bin/bash
sudo apt-get install -y libav-tools
sudo add-apt-repository -y ppa:gstreamer-developers/ppa
sudo apt-get -y update
sudo apt-get -y install gstreamer1.0*