Skip to content

Instantly share code, notes, and snippets.

View inkrement's full-sized avatar

Christian Hotz-Behofsits inkrement

View GitHub Profile
@inkrement
inkrement / my.cnf
Last active April 25, 2016 12:44
Scaleway VP1 optimised mysql configuration - used Percona Configuration Wizard (http://tools.percona.com/)
[mysql]
local-infile=1 ## enable local infile support
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0
@inkrement
inkrement / .htaccess
Created April 8, 2016 10:34
octobercms_serverpilot
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
##
## You may need to uncomment the following line for some hosting environments,
\documentclass[a4paper]{article}
\usepackage[english]{babel}
\usepackage{listings}
%% for swift
\lstdefinelanguage{Swift}{
keywords={associatedtype, class, deinit, enum, extension, func, import, init, inout, internal, let, operator, private, protocol, public, static, struct, subscript, typealias, var, break, case, continue, default, defer, do, else, fallthrough, for, guard, if, in, repeat, return, switch, where, while, as, catch, dynamicType, false, is, nil, rethrows, super, self, Self, throw, throws, true, try, associativity, convenience, dynamic, didSet, final, get, infix, indirect, lazy, left, mutating, none, nonmutating, optional, override, postfix, precedence, prefix, Protocol, required, right, set, Type, unowned, weak, willSet},
ndkeywords={class, export, boolean, throw, implements, import, this},
sensitive=false,
# This file was automatically installed on 2016-03-11T16:20:06.126943
upstream modoboa {
server unix:/var/run/uwsgi/app/modoboa_instance/socket fail_timeout=0;
}
server {
listen 80;
server_name mail.justrocketscience.com;
location / {
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.getbro.api</groupId>
<artifactId>backend</artifactId>
<packaging>war</packaging>
<version>3</version>
<name>backend</name>
<url>http://maven.apache.org</url>
<properties>
from protorpc import remote
from google.appengine.ext import ndb
import endpoints
from endpoints_proto_datastore.ndb import EndpointsModel
from endpoints_proto_datastore.ndb import EndpointsAliasProperty
from google.appengine.ext import db
from google.appengine.api import users
import datetime
#google chrome
#assign [class="^Google-chrome$"] 1
#for_window [class="^Google-chrome$"] border none
#set $w1 1: web
##set $w2 2: editor
# some gnome helpers
exec /usr/lib/gnome-settings-daemon/gnome-settings-daemon
exec /usr/lib/gnome-settings-daemon/gnome-fallback-mount-helper
@inkrement
inkrement / i3config
Created April 26, 2013 10:16
i3wm config
exec gnome-settings-daemon
exec --no-startup-id nitrogen --restore
exec --no-startup-id nm-applet
# keyring daemon
exec /usr/bin/gnome-keyring-daemon --start --components=gpg
exec /usr/bin/gnome-keyring-daemon --start --components=secrets
exec /usr/bin/gnome-keyring-daemon --start --components=ssh
exec /usr/bin/gnome-keyring-daemon --start --components=pkcs11
@inkrement
inkrement / gist:3887797
Created October 14, 2012 07:48 — forked from felipepodesta/gist:3819131
Try out Laravel 4 pre-release!
Run the following in the terminal.
git clone git://github.com/illuminate/app.git && cd app && composer update
This will download Illuminate (the name of the component set that makes up Laravel 4) into a directory called 'app' and run composer to get all the dependancies.
Of course, it's still heavily in development so it's clearly not finished but you can poke around and see how it works. Enjoy!