Skip to content

Instantly share code, notes, and snippets.

View karmelak's full-sized avatar

karmelak karmelak

View GitHub Profile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# This is how I used it:
# $ cat ~/.bash_history | bash-history-to-zsh-history >> ~/.zsh_history
import sys
def main():

Awesome PHP

A list of amazingly awesome PHP libraries, resources and shiny things.

Composer

Composer Related

#!/bin/bash
# Should work with GitLab/GitHub/Bitbucket
username="your-username"
host="your-host.com" # eg: github.com
clone_dir="`pwd`/repos"
repos=(
"repo-abc"
"repo-def"
#!/usr/bin/env ruby
# Using this script as your post-receive hook will update mirrors using git
# push --mirror. To make this work you have to ensure that access is taken
# care of (for example by setting up .ssh/config with an SSH key for the
# user that runs the hook).
#
# To use this script populate /home/git/git-mirrors.yml with YAML like so:
# ---
# user/repo1.git: