Skip to content

Instantly share code, notes, and snippets.

Working from home

Tom Raithel tomraithel

Working from home
View GitHub Profile
tomraithel / Set_up_a_new_mac.txt
Last active Jun 24, 2020
Stuff I use to install if I setup a new mac
View Set_up_a_new_mac.txt
- Change the root password!
- System Settings > Security
- General: Set Password required to "instant"
- FileVault: activate
- System Setting > Keyboard
- Set all key speeds to "fast"
- Mark checkbox to use "fn" keys without option key
- Generate SSH-Key: ssh-keygen -t rsa -C "" -b 2048
- Change desktop background :)
- Install PHPstorm + Java
View Untitled-3
import Cycle from '@cycle/core';
import {div, label, input, h1, button, p, makeDOMDriver} from '@cycle/dom';
const _ = require('lodash');
const {Observable} = require('rx');
function f1(sources) {
const sinks = {
.map(ev =>
nohup /bin/bash -c 'WORDS=("please help me" "i am so alone" "i am lonely" "pssssst" "hello" "hey, listen."); while [ 1 = 1 ]; do say "${WORDS[$[ $[ RANDOM % ${#WORDS[@]} ]]]}" -v Whisper -r 1.5; sleep 3; done' &
tomraithel / keybindings.json
Last active Feb 22, 2016
Personal Visual Studio Code Settings & Keybindings
View keybindings.json
// Place your key bindings in this file to overwrite the defaults
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus"
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
tomraithel / gist:8113314
Created Dec 24, 2013
MySQL-Dump with MAMP
View gist:8113314
/Applications/MAMP/Library/bin/mysqldump --opt -u root -p DATABASENAME > DUMBNAME.sql
tomraithel / gist:5160587
Created Mar 14, 2013
CSS: remove ipad top shadow on input elements
View gist:5160587
// remove ipad top shadow
input[type="text"], input[type="email"], input[type="search"], input[type="password"] {
-webkit-appearance: caret;
-moz-appearance: caret; /* mobile firefox too! */
tomraithel / .htaccess 2
Created Feb 25, 2013
LARAVEL: .htaccess configuration on domain-factory
View .htaccess 2
# Apache configuration file
# Note: ".htaccess" files are an overhead for each request. This logic should
# be placed in your Apache config whenever possible.
# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
tomraithel / .htaccess
Created Feb 25, 2013
.htaccess: Use subfolder as root folder
View .htaccess
RewriteEngine on
RewriteCond $1 !^public/
RewriteRule ^(.*)$ /public/$1 [L]
tomraithel / gist:4738040
Created Feb 8, 2013
CSS: Webkit specific rules / Webkit-Hack
View gist:4738040
// webkit-specific changes
@media screen and (-webkit-min-device-pixel-ratio:0) {
-webkit-appearance: none;
background: #fff img-url('arrow-icons.png') 100% -51px no-repeat;
padding-right: 35px;
tomraithel / gist:4690179
Created Feb 1, 2013
bash: Sync a dir with amazon s3 bucket (s3cmd required)
View gist:4690179
s3cmd sync --acl-public --recursive out/* s3://