brew reinstall openssl
export LDFLAGS="-L/usr/local/opt/openssl/lib"
Note: added to zshconfig -- as of writing this GIST still haven't added it to universal shell rc git repo
| #!/bin/sh | |
| # This isn't meant to be run as an ACTUAL shell script -- just a list of instructions | |
| # using shellscript to look nice :) | |
| # replace /home/ubuntu with your home directory | |
| # This will work by default on fresh ubuntu 18 amazon EC2 instance | |
| sudo apt install firefox | |
| wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz | |
| tar -xvf geckodriver-v0.24.0-linux64.tar.gz |
| #!/bin/sh | |
| # Fresh EC2 CentOS instance doesn't include libraries | |
| # required by firefox - this script installs them | |
| # One tar file is left behind - TODO: Glob deletion of tar file (dynamic version file name) | |
| # For now, just navigate to /usr/local and delete the tar file | |
| cd /usr/local | |
| wget https://download.mozilla.org/?product=firefox-latest-ssl&os=linux&lang=en-US |
sudo git clone https://github.com/letsencrypt/letsencrypt /opt/letsencryptsudo systemctl stop nginxcd /opt/letsencryptexport LC_ALL="en_US.UTF-8"export LC_CTYPE="en_US.UTF-8"./letsencrypt-auto certonly --standalone --email <your@email.com> -d <domain.com> -d <subdomain.domain.com>sudo vim /etc/nginx/sites-available/defaultnginxconfig previously setup
| var intA = setInterval(() => { | |
| let direction = 1 | |
| if(Date.now() % 6000 <= 3000) { | |
| direction = 1 | |
| } else direction = -1 | |
| a1.scrollBy(0, direction) | |
| }, 1000/60) |
| const rdb = require('rethinkdb') | |
| const path = require('path') | |
| require('dotenv').config({ 'path': path.join(__dirname, '../../config/.env') }) | |
| const cn = { | |
| 'host': process.env.R_HOST || '127.0.0.1', | |
| 'port': process.env.R_PORT || 28015, | |
| // 'database': process.env.R_DB || 'golddrop', | |
| // 'user': process.env.R_USER || 'user', |
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f
| var x = {val: 120} | |
| function runIt() { | |
| // var x = 50; | |
| const getPromise = () => new Promise((resolve, reject) => { | |
| const y = x.val | |
| setTimeout(() => { | |
| for(let i = 0; i < 10; i++) { x.val++ } | |
| }, 500) | |
| resolve(() => { console.log('inside: ', y, '|| x: ', x.val) }) | |
| }) |
| var generateFloatingCombatText = (text, elementToFloatOver) => { | |
| const MILISECONDS_TO_FLOAT = 11500 | |
| const FRAME_RATE = 5 | |
| const FLOAT_DISTANCE = 30 | |
| const MS_PER_FRAME = 1000/FRAME_RATE | |
| const TOTAL_FRAMES_FOR_ANIMATION = MILISECONDS_TO_FLOAT/MS_PER_FRAME | |
| const startPosition = elementToFloatOver.getBoundingClientRect() |