Skip to content

Instantly share code, notes, and snippets.

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@ekandreas
ekandreas / deploy.php
Last active April 26, 2021 22:04
Deploy example PHP Deployer
<?php
/*** step 1 ***/
date_default_timezone_set('Europe/Stockholm');
/*** step 2 ***/
include_once 'vendor/deployer/deployer/recipe/common.php';
/*** step 3 ***/
server( 'production', 'andreasek.se', 22 )
->env('deploy_path','/mnt/persist/www/aekab.se')
@katowulf
katowulf / gist:4741111
Last active April 11, 2024 12:07
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users