- Register a client at https://www.instagram.com/developer/ (redirect_uri can be something simple such as http://localhost)
- Go to the 'Security' tab for your client (under manage) and untick 'Disable implicit OAuth'
- Take the following URL, subsitute the
[client_id]with your own and the[redirect_uri]with one you specified during the registration process: https://api.instagram.com/oauth/authorize/?client_id=[client_id]&redirect_uri=[redirect_uri]&response_type=token - Navigate to the URL in the browser (while logged in as the same user), after accepting any prompts you should be redirected to your specified redirect_uri with the access token appended
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
| # Based on: http://blog.celogeek.com/201209/209/how-to-create-a-self-signed-wildcard-certificate/ | |
| # Replace .domain.com with desired domain (and x.domain instances) | |
| openssl genrsa 2048 > x.domain.key | |
| openssl req -new -x509 -nodes -sha1 -days 3650 -key x.domain.key > x.domain.cert | |
| # Interactive prompt: enter *.domain.com for the Common Name | |
| openssl x509 -noout -fingerprint -text < x.domain.cert > x.domain.info | |
| cat x.domain.cert x.domain.key > x.domain.pem |
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
| /* | |
| Based on ITCSS structure (http://tinyurl.com/hgujuha) | |
| # Layers | |
| - Settings: font, colors definitions, etc. | |
| - Tools: globally used mixins and functions. | |
| - Generic: reset/normalize styles, box-sizing definition, etc. | |
| - Elements: styling for bare HTML elements. | |
| - Objects: class-based selectors which define undecorated design patterns | |
| - Components: specific UI components |
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
| server { | |
| listen 80; | |
| server_name ip.domain.tld; | |
| add_header Content-Type text/plain; | |
| return 200 $remote_addr; | |
| } |
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
| # USAGE TEMPLATE (within server block): | |
| # ------------------------------------------------------------------------------ | |
| # include ssl_params; | |
| # ssl_certificate /root/.acme.sh/domain.com/fullchain.cer; | |
| # ssl_certificate_key /root/.acme.sh/domain.com/domain.com.key; | |
| # ssl_trusted_certificate /root/.acme.sh/domain.com/fullchain.cer; | |
| # ------------------------------------------------------------------------------ | |
| # SOURCE: https://gist.github.com/plentz/6737338 | |
| ssl on; |
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
| [program:local_npm] | |
| command=/Users/USER/.nvm/versions/node/v6.3.1/bin/local-npm | |
| directory=/Users/USER/Tools/local-npm | |
| environment=PATH="/Users/USER/.nvm/versions/node/v6.3.1/bin:%(ENV_PATH)s" | |
| user=USER | |
| autostart=true | |
| autorestart=true | |
| stderr_logfile=syslog | |
| stdout_logfile=syslog | |
| process_name=%(program_name)s_%(process_num)02d |
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
| sudo apt install php7.0-cli php7.0-fpm php7.0-curl php7.0-mbstring php7.0-mysql php7.0-xml php7.0-zip php7.0-gd -y |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Sid": "PublicReadGetObject", | |
| "Effect": "Allow", | |
| "Principal": "*", | |
| "Action": "s3:GetObject", | |
| "Resource": "arn:aws:s3:::bucket.com/*" | |
| } |
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
| # Local phpunit | |
| phpunit() { | |
| if [ -f "./vendor/bin/phpunit" ]; then | |
| php ./vendor/bin/phpunit "$@"; | |
| else | |
| echo "Unable to locate phpunit in ./vendor/bin"; | |
| fi | |
| } |