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
#----------------------------------------------------- | |
# Deploy master branch to production | |
# Upload your BitBucket repo via FTP to a remote server | |
` | |
image: atlassian/default-image:3 | |
pipelines: | |
branches: | |
master: |
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
#----------------------------------------------------- | |
# Get Client IP | |
# | |
# You can find a list of other IP services here: https://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript | |
# | |
# - Create a Custom Javascript Variable in GTM | |
# | |
function () { | |
if (window.XMLHttpRequest) xmlhttp = new XMLHttpRequest(); |
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
# Note: Use at your own risk. Always make a full backup before you start. | |
#----------------------------------------------------- | |
# Upstream to proxy site | |
location / { | |
# First attempt to serve request as file, then | |
# as directory, then fall back to displaying a 404. | |
# try_files $uri $uri/ =404; | |
proxy_set_header X-Real-IP $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
# Note: Use at your own risk. Always make a full backup before you start. | |
#----------------------------------------------------- | |
# Reset Network Adapter | |
netsh int ip reset c:\resetlog.txt | |
netsh winsock reset | |
#----------------------------------------------------- | |
# Fix PS/2 KEYBOARD support |
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
#----------------------------------------------------- | |
# To learn, see: https://cryptozombies.io | |
#----------------------------------------------------- | |
# Terminology | |
wei = the smallest sub-unit of Ether — there are 10^18 wei in one ether | |
"Proof of Work" = first to solve a computationally-intensive mathematical problem |
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
#----------------------------------------------------- | |
# Destructure your props: | |
before: | |
<DismissArea | |
visible={visible} | |
setVisible={setVisible} | |
onPress={onPress} | |
/> |
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
#----------------------------------------------------- | |
# Terminology: | |
EC2 = Server instances | |
EC2 Security Groups = Controls SSH access | |
WAF = Website Application Firewall - controls wp-admin access | |
#----------------------------------------------------- | |
# If restricted by IP check these places: |
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
#----------------------------------------------------- | |
# Include jQuery via Chrome Console: | |
# | |
# Open your console and add the following: | |
# | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jq); |
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
#----------------------------------------------------- | |
# For basics, see: https://laracasts.com/series/laravel-from-scratch-2018 | |
#----------------------------------------------------- | |
# Laravel + Lando.dev | |
- lando init | |
- lando laravel new myfirstsite | |
- cd myfirstsite (or move files to the root) | |
- composer require laravel/ui (https://laravel.com/docs/7.x/frontend) |
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
#----------------------------------------------------- | |
# Create a new repo: | |
# | |
# For basics, see: https://towardsdatascience.com/common-github-commands-every-data-scientist-needs-to-know-e7d5d9c4f080 | |
# | |
git init | |
#----------------------------------------------------- | |
# Setup a repo with remote branch: |
NewerOlder