- install Guzzle HTTP library :
composer require guzzlehttp/guzzle - [sign up to mailgun] (http://www.mailgun.com)
- Go to
Domainstab and click on domains - You will find the necessary data for
.envsetup- MAIL_DRIVER=mailgun
- MAIL_HOST=smtp.mailgun.org
- MAIL_PORT=587
- MAIL_USERNAME=postmaster@sandbox------------------------------6f.mailgun.org
- MAIL_PASSWORD=502fd951f7------------------------
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
#Use this URL to get your client authorized for Instafeed.JS plugin for Instagram.
- First login into your Instargam account
- Then go to https://www.instagram.com/developer/
- At the top click on the Button that says "Manage Clients".
- If you have not Register a new client.
- Fill out everything and where it says redirect url put this url: http://instafeedjs.com
- Then on the security tab make sure you uncheck "Disable implicit OAuth"
- Finally use this link to authoruize Instafeed. Where it says "[Client ID]" replace that including the brackets with your clientID from instagram:
- https://instagram.com/oauth/authorize/?client_id=[Client ID]&redirect_uri=http://instafeedjs.com&response_type=token
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Host *.kd.io | |
| User username | |
| IdentityFile ~/.ssh/koding | |
| ProxyCommand ssh -i ~/.ssh/koding %r@ssh.koding.com nc %h %p | |
| Host gitlab.com-repo1 | |
| Hostname gitlab.com | |
| User git # Opcional | |
| IdentityFile ~/.ssh/key_repo1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| if (!function_exists('html_build_attributes')) { | |
| /** | |
| * Generate a string of HTML attributes | |
| * | |
| * @param array $attr Associative array of attribute names and values. | |
| * @param callable|null $callback Callback function to escape values for HTML attributes. | |
| * Defaults to `htmlspecialchars()`. | |
| * @return string Returns a string of HTML attributes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| # Fill our vars and run on cli | |
| # $ php -f db-connect-test.php | |
| $dbname = 'name'; | |
| $dbuser = 'user'; | |
| $dbpass = 'pass'; | |
| $dbhost = 'host'; | |
| $link = mysqli_connect($dbhost, $dbuser, $dbpass) or die("Unable to Connect to '$dbhost'"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| usage() { echo "usage: --coursename [--coursename \"build-a-react-app-with-redux\"] --type [--type \"courses|lessons\"]" 1>&2; exit 1; } | |
| OPTS=$(getopt -o c:t: --long coursename:,type: -n 'download_egghead_videos.sh' -- "$@") | |
| if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi | |
| eval set -- "$OPTS" |