Skip to content

Instantly share code, notes, and snippets.

View tomstorms's full-sized avatar

Tom Storms tomstorms

View GitHub Profile
#-----------------------------------------------------
# Deploy master branch to production
# Upload your BitBucket repo via FTP to a remote server
`
image: atlassian/default-image:3
pipelines:
branches:
master:
#-----------------------------------------------------
# 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();
# 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;
# 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
#-----------------------------------------------------
# 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
#-----------------------------------------------------
# Destructure your props:
before:
<DismissArea
visible={visible}
setVisible={setVisible}
onPress={onPress}
/>
#-----------------------------------------------------
# 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:
#-----------------------------------------------------
# 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);
#-----------------------------------------------------
# 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)
#-----------------------------------------------------
# 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: