Skip to content

Instantly share code, notes, and snippets.

@etenzy
etenzy / .vimrc
Created February 15, 2014 18:04 — forked from JeffreyWay/.vimrc
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@etenzy
etenzy / 910-rat.conf
Last active June 27, 2017 04:09
Ubuntu-Config for Mad Catz M.O.U.S.9 /usr/share/X11/xorg.conf.d/
Section "InputClass"
Identifier "Mad Catz"
MatchProduct "M.O.U.S.9"
MatchDevicePath "/dev/input/event*"
Option "Buttons" "14"
Option "ButtonMapping" "1 2 3 4 5 6 7 8 9 10 11 12 13 14"
Option "AutoReleaseButtons" "13 14"
Option "ZAxisMapping" "4 5 6 7"
EndSection
@etenzy
etenzy / geocode.php
Created March 10, 2015 09:19
german geocode
This file has been truncated, but you can view the full file.
<?php
return [
[
'name' => 'Leienkaul',
'postcodes' => ['56759'],
'areacodes' => [''],
],
[
'name' => 'Aach (Hegau)',
@etenzy
etenzy / particles.js demo.markdown
Last active September 4, 2015 09:11
particles.js demo
@etenzy
etenzy / samba.sh
Last active August 14, 2016 07:13
homestead reverse sharing via samba
echo "Setup & Configure samba"
su - vagrant -c "mkdir -p /home/vagrant/Code"
apt-get -qq update
apt-get -qq install -y samba-common samba
cp /etc/samba/smb.conf /etc/samba/smb.conf.bak
cat <<EOM > /etc/samba/smb.conf
# Global Settings
[global]
workgroup = WORKGROUP
@etenzy
etenzy / nocopy.css
Created December 27, 2015 15:27
no webpage copy
html {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@etenzy
etenzy / mailcatcher.sh
Last active January 22, 2016 15:05
mailcatcher for homestead
echo "Setup & Configure mailcatcher"
apt-get -qq update
apt-get -qq install -y libsqlite3-dev ruby1.9.1-dev
gem install mailcatcher --quiet --no-rdoc --no-ri
cat <<EOM > /etc/init/mailcatcher.conf
description "Mailcatcher"
start on runlevel [2345]
stop on runlevel [!2345]
@etenzy
etenzy / phpmyadmin.sh
Last active January 22, 2016 15:04
phpMyAdmin for homestead
echo "Setup & Configure phpMyAdmin"
su - vagrant -c "curl -s -#L https://files.phpmyadmin.net/phpMyAdmin/4.5.3.1/phpMyAdmin-4.5.3.1-all-languages.tar.gz -o phpmyadmin.tar.gz"
su - vagrant -c "mkdir phpmyadmin"
su - vagrant -c "tar xf phpmyadmin.tar.gz -C phpmyadmin --strip-components 1"
rm phpmyadmin.tar.gz
cat <<EOM > /etc/nginx/sites-enabled/phpmyadmin
server {
listen 80;
@etenzy
etenzy / phppgadmin.sh
Last active January 22, 2016 15:04
phpPgAdmin for homestead
echo "Setup & Configure phpPgAdmin"
su - vagrant -c "curl -s -#L http://downloads.sourceforge.net/phppgadmin/phpPgAdmin-5.1.tar.gz -o phppgadmin.tar.gz"
su - vagrant -c "mkdir phppgadmin"
su - vagrant -c "tar xf phppgadmin.tar.gz -C phppgadmin --strip-components 1"
rm phppgadmin.tar.gz
cat <<EOM > /etc/nginx/sites-enabled/phppgadmin
server {
listen 80;
@etenzy
etenzy / opcachegui.sh
Last active January 22, 2016 15:46
opcachegui for homestead
echo "Setup & Configure opcachegui"
su - vagrant -c "composer create-project peehaa/opcachegui /home/vagrant/opcachegui --prefer-dist --quiet"
cat <<EOM > /etc/nginx/sites-enabled/opcachegui
server {
listen 80;
server_name opcache.*;
root /home/vagrant/opcachegui/public;
index index.html index.htm index.php;