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,
# 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;
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 / 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!
@inkrement
inkrement / JavaCandR.sublime-build
Created August 31, 2012 08:49 — forked from DevinClark/JavaCandR.sublime-build
This is a build script for Sublime Text 2 that will compile and run the open java file by simply pressing cmd + B. I am very new at Java so feel free to point out problems with this script. You can just drop this file in the User Packges folder and restar
{
"cmd": ["javac", "$file_name"],
"cmd": ["java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java"
}
@inkrement
inkrement / file1.matlab
Created May 6, 2012 17:59
logical selector matlab
menge(menge > x) = 0;
@inkrement
inkrement / PORTA LEDS on
Created March 18, 2012 09:26
ATMEL 1280 port a leds on asm
; Christian Hotz-Behofsits 2012
; i/o example in asm (atmega 1280)
; set leds on button event
.NOLIST
.INCLUDE "m1280def.inc"
.LIST