Skip to content

Instantly share code, notes, and snippets.

View DominikTo's full-sized avatar

Dominik DominikTo

View GitHub Profile
@DominikTo
DominikTo / cycle-list.php
Created July 6, 2018 17:48 — forked from chartjes/cycle-list.php
My PHP script for creating a Twitter list where people cycle on and off it based on 30 days of interaction
<?php
require "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
// You can get all these via https://dev.twitter.com/
$consumer_key = "";
$consumer_secret = "";
$access_token = "";
$access_token_secret = "";
$user_id = 0; // Twitter user ID
@DominikTo
DominikTo / keybase.md
Created March 7, 2014 17:43
keybase.md

Keybase proof

I hereby claim:

  • I am DominikTo on github.
  • I am dominik (https://keybase.io/dominik) on keybase.
  • I have a public key whose fingerprint is 7FA3 E0E6 9940 FB34 73D5 9CA0 C0EF E82E FC9E 6783

To claim this, I am signing this object:

@DominikTo
DominikTo / docker-ubuntu-nginx-syslog.md
Created February 13, 2014 14:45
NGINX with syslog patch on Ubuntu 13.10
# VERSION 0.0.1
#
# BUILD: docker build -rm -t dominik/nginx-syslog .
# RUN:   docker run -p $PORT:80 dominik/nginx-syslog
#        (logging via: -v /dev/log:/dev/log)

FROM ubuntu:13.10

RUN export DEBIAN_FRONTEND=noninteractive
@DominikTo
DominikTo / mamp-mavericks-install.md
Last active December 21, 2015 03:38
Apache, MySQL & PHP on OS X 10.9 Mavericks

OS X 10.9 ships with both a recent version of Apache (2.2.x), as well as PHP (5.4.x), so you'll just have to install MySQL. To get everything up and running only a few steps are required.

Apache

First, you have to create a web root in your user account:

mkdir ~/Sites
@DominikTo
DominikTo / pear-mavericks-install.md
Last active December 21, 2015 03:29
PEAR on OS X 10.9 Mavericks

Like previous versions of OS X, 10.9 also ships with PEAR. To install and activate it, a few steps are necessary. After that PEAR and PECL work as expected (if you also want to set up and install Apache, PHP and MySQL, check this Gist.

Installing PEAR:

cd /usr/lib/php
sudo php install-pear-nozlib.phar

If that fails