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
require("luarocks.loader") | |
io = require("io") | |
os = require("os") | |
rex = require("rex_pcre") | |
function read_all(file) | |
local f = io.open(file, "rb") | |
if not f then | |
return nil |
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 ROLE kalibro LOGIN ENCRYPTED PASSWORD 'kalibro' VALID UNTIL 'infinity'; | |
CREATE DATABASE kalibro WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1; | |
CREATE DATABASE kalibro_test WITH ENCODING='UTF8' OWNER=kalibro CONNECTION LIMIT=-1; |
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 | |
APT_GET_INSTALL=apt-get install -y --no-install-recommends | |
DATABASE_DEFAULT_USER='kalibro' | |
DATABASE_DEFAULT_PASSWORD='kalibro' | |
if [ -n "${DATABASE_URL}" ]; then | |
echo "Using DATABASE_URL '${DATABASE_URL}'. Not installing postgres" | |
if [ -z "$DATABASE_TYPE" ]; then |
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
lcs() { | |
path=$1 | |
shift | |
cd "$path" && ls "$@" | |
} |
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
blaziken | |
skarmory | |
zubat | |
eeveeni | |
absol | |
luxray | |
lapras | |
zapdos | |
aggron | |
ninjask |
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 | |
export LC_ALL=C.UTF-8 | |
APT_GET_INSTALL='apt-get install -y --no-install-recommends --no-install-suggests' | |
if [ -n "${PS1}" ]; then | |
IS_INTERACTIVE=1 | |
else | |
IS_INTERACTIVE=0 | |
fi |
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 | |
[ "$PLAYONLINUX" = "" ] && exit 0 | |
source "$PLAYONLINUX/lib/sources" | |
export WINEPREFIX="/home/danielkza/.PlayOnLinux/wineprefix/lol32" | |
export WINEDEBUG="-all" | |
export LOGFILE="/home/danielkza/.PlayOnLinux/logs/lol.log" | |
LOL_PATH="/games/League of Legends/" |
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> | |
int main(int argc, char **argv) | |
{ | |
char buf[16]; | |
while(fgets(buf, sizeof(buf), stdin) != NULL) { | |
char *space_pos = strchr(buf, ' '); |
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
io = require("io") | |
os = require("os") | |
function read_all(file) | |
local f = io.open(file, "rb") | |
if not f then | |
return nil | |
end | |
local content = f:read("*a") |
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 | |
[ "$PLAYONLINUX" = "" ] && exit 0 | |
source "$PLAYONLINUX/lib/sources" | |
export WINEPREFIX="/home/danielkza/.PlayOnLinux//wineprefix/lol2" | |
export WINEDEBUG="-all" | |
LOL_DIR="$HOME/Games/League of Legends" | |
BEFORE_WINE='env LD_PRELOAD=libpthread.so.0:libGL.so.1 __GL_THREADED_OPTIMIZATIONS=1' |
OlderNewer