git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
Couple examples:
sudo find . -type f -name "*.php" -exec chmod ugo+rwx "{}" \;
sudo find . -type f -name "*.php" -exec chmod go-w "{}" \;
find . -name '.DS_Store' -type f -delete
$ uname -r 
| /* | |
| * Copyright (c) 2017 Andres Jaimes http://andres.jaimes.net | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is | |
| * furnished to do so, subject to the following conditions: | |
| * | 
| #!/bin/sh | |
| basedir=`date +%Y%m%d` | |
| mysqldir=$basedir/mysql | |
| mkdir -p $mysqldir | |
| # backup database to $mysqldir | |
| smbclient "//server/directory" -U user%password << SMBCLIENTCOMMANDS | |
| recurse | 
| # docker-compose up -d | |
| # docker-compose up -d --no-recreate | |
| # docker-compose stop | |
| # docker-compose rm -f | |
| mysql: | |
| image: mysql:5.7 | |
| container_name: mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD: my-password | 
| # Sample file for nginx | |
| # docker-compose up -d | |
| # docker-compose up -d --no-recreate | |
| # docker-compose stop | |
| # docker-compose rm -f | |
| web: | |
| image: nginx:alpine | |
| container_name: nginx | 
| # Add swap memory to a running amazon instance | |
| # Choose your swap size, in this case 4096M (4G) | |
| sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=4096 | |
| sudo /sbin/mkswap /var/swap.1 | |
| sudo chmod 600 /var/swap.1 | |
| sudo /sbin/swapon /var/swap.1 | |
| # Add the following line to /etc/fstab to enable swap at boot: |