Skip to content

Instantly share code, notes, and snippets.

View marktopper's full-sized avatar
🚀
Making rocket science

Mark Topper marktopper

🚀
Making rocket science
View GitHub Profile
@marktopper
marktopper / List.md
Last active August 29, 2015 14:07 — forked from msurguy/List.md

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

sudo -i
cd
apt-get install build-essential checkinstall && apt-get build-dep imagemagick -y
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar xzvf ImageMagick.tar.gz
cd ImageMagick-6.8.9-10/
./configure --prefix=/opt/imagemagick-6.8 && make
checkinstall
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@marktopper
marktopper / gist:69a735d8670e9b4f38fa
Created February 17, 2015 12:27
Install wkhtmltoimage on ubuntu
Install
$ cd /tmp
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
$ tar xvjf ./wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
$ chmod +x ./wkhtmltoimage-i386
$ mv wkhtmltoimage-i386 ./usr/bin/wkhtmltoimage
$ rm wkhtmltoimage-0.11.0_rc1-static-i386.tar.bz2
Usage
@marktopper
marktopper / gist:fb3ba076f1de8a322285
Created February 19, 2015 14:26
Clear Composer Cache

To clear Composer Cache, run the following command in your console:

rm -rf "`composer config cache-dir`"

New computer setup


Format the drive

  1. Restart with cmd-R or cmd-D
  2. Erase drive / 3x if second-hand
  3. Reinstall MacOS
# Manually secure port 6379
sudo iptables -A INPUT -p tcp --dport 6379 -s xxx.xxx.xxx.xxx -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6379 -j DROP
sudo iptables -L
# Save current firewall config
# sudo iptables-save > /etc/iptables.conf
# Above removed - Mark
sudo bash -c "iptables-save > /etc/iptables.conf"
@marktopper
marktopper / gist:b9c45b1b7c1f7e03030e
Created July 13, 2015 13:36
Install Kong with Java7 + Cassandra
### Installing Java7
# Using Oracle Java 7 is not formally supported by Ubuntu.
# There's plenty solutions for installing it, listed on https://help.ubuntu.com/community/Java .
#
# The simplest one listed is this one:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
# It'll keep your java 7 installation up to date.
@marktopper
marktopper / install.md
Last active March 24, 2023 14:49
Install Kong + Cassandra + Java [Ubuntu 14.04]

Installing Java

We need Java in order to have Cassandra running since Cassandra 2.0 and later require Java 7 or later. And we need Cassandra in order to run Kong.

So lets start installing Java 8 (the newest one)

First we add a repository to our build in order to manage the Java 8 package, since that is not normally supported by Ubuntu.

sudo add-apt-repository ppa:webupd8team/java
@marktopper
marktopper / deploy.sh
Last active August 29, 2015 14:25
Smarter deployment script for Forge
#!/bin/bash
set -x
domain=$(readlink -f .)
domain=${domain##*/}
timestamp=$(date +%s)
if ! [ -s "current" ]; then
mkdir ../$domain-temp