Skip to content

Instantly share code, notes, and snippets.

apokalyptik

Block or report user

Report or block apokalyptik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View extract-php-func-calls
#!/usr/bin/env php
<?php
define( 'DEBUG_RECURSION', false );
if ( $_SERVER['argc'] > 1 ) {
if ( substr( $_SERVER['argv'][1], 0, 1 ) !== "/" ) {
define( 'FUNCTION_MATCH', "/" . preg_quote( $_SERVER['argv'][1] ) . "/" );
} else {
define( 'FUNCTION_MATCH', $_SERVER['argv'][1] );
@apokalyptik
apokalyptik / 1 - setup the virtual machines
Last active Jan 26, 2017
Installing jobs system from scratch by itself on Debian 8.
View 1 - setup the virtual machines
2x Debian 8
- 2GB Ram
- 20GB disk
- selected: SSH server, and Standard Utilities
jobs1.test.local
eth0 - bridged, configured 10.0.1.12 (change depending on your network)
eth1 - lan, configured to 192.168.0.1 (change to suite your liking)
jobs2.test.local
@apokalyptik
apokalyptik / debian-jessie-kubernetes-1.3-manual-install-guide.md
Last active May 5, 2019
Set up Kubernetes on 3 Debian Jessie virtual machines -- No magic
View debian-jessie-kubernetes-1.3-manual-install-guide.md

The Goal

Set up Kubernetes on 3 Debian Jessie virtual machines: One master. Two nodes. Additionally do this without any "magic" so that what is required to be running to make everything work is plain and obvious.

We will be using flannel for the inter-machine networking layer. Mainly because it is useful and it seems to be pretty popular.

The Setup

@apokalyptik
apokalyptik / .vimrc
Last active Oct 5, 2017
My .vimrc file
View .vimrc
" Instructions:
" 1. Download this .vimrc file:
" curl https://gist.githubusercontent.com/apokalyptik/fdf050e2dd004b756d2e1a0b6f2d399a/raw/.vimrc > .vimrc
" 2. Install vundle:
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
" 3. Run vim
" 4. Install Plugins:
" :PluginInstall
" 5. Exit vim
View keep.go
package main
import (
"bufio"
"flag"
"fmt"
"io"
"log"
"os"
)
@apokalyptik
apokalyptik / ts.go
Last active Sep 11, 2015
Stupid simple program to add timestampt to a programs output...
View ts.go
package main
import (
"bufio"
"io"
"log"
"os"
)
func main() {
View .tmux.conf
# Mouse support - set to on if you want to use the mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
View remixweather.go
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
View quicktrietestserver.go
package main
import (
"flag"
"fmt"
"log"
"net/http"
"sync"
"time"
View first-web-server.go
package main
import (
"flag"
"fmt"
"log"
"net/http"
)
var listenOn = "127.0.0.1:8888"
You can’t perform that action at this time.