- Update ubuntu software repository
- Install
- nginx - Serve our website
- mysql-server and libmysqlclient-dev - For database
- Python 3
- ufw - Firewall for our system
| <?php | |
| add_filter( | |
| 'hivepress/v1/routes', | |
| function( $routes ) { | |
| $routes['listing_submit_details_page']['title'] = 'Custom title here'; | |
| return $routes; | |
| }, | |
| 1000 | |
| ); |
| <?php | |
| /** | |
| * Generate a secure token. | |
| * | |
| * @url http://stackoverflow.com/questions/18910814/best-practice-to-generate-random-token-for-forgot-password | |
| */ | |
| function generateToken($length = 40) | |
| { | |
| return bin2hex(random_bytes($length)); |
This gist was getting a lot of comments/questions, but since there are no notifications when someone replies to a gist, I've moved the setup instructions and a bunch of sample code to a dedicated Github repo.
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent
Let's say alice is a github.com user, with 2 or more private repositories repoN.
For this example we'll work with just two repositories named repo1 and repo2
https://github.com/alice/repo1
https://github.com/alice/repo2
You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.
| #!/bin/bash | |
| # works with a file called VERSION in the current directory, | |
| # the contents of which should be a semantic version number | |
| # such as "1.2.3" | |
| # this script will display the current version, automatically | |
| # suggest a "minor" version update, and ask for input to use | |
| # the suggestion, or a newly entered value. |
| Select all and delete (actually move to buffer) | |
| :%d | |
| Select all and copy to buffer | |
| :%y | |
| Use p to paste the buffer. |
| <?php | |
| /* | |
| Plugin Name: Pug Bomb API Endpoint | |
| Description: Adds an API endpoint at /api/pugs/$n_pugs | |
| Version: 0.1 | |
| Author: Brian Fegter | |
| Author URL: http://coderrr.com | |
| */ | |
| class Pugs_API_Endpoint{ |
