This file contains 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
# First, Get Ip of the computer running your node server | |
ifconfig |grep inet | |
# returns several inet lines. Find your ip on a line like: | |
# inet 192.161.1.2 netmask .... | |
# Start node server on whatever port | |
# ie: port 8080 |
This file contains 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
chmod 700 ~/.ssh | |
chmod 644 ~/.ssh/authorized_keys | |
chmod 644 ~/.ssh/known_hosts | |
chmod 644 ~/.ssh/config | |
chmod 600 ~/.ssh/id_rsa | |
chmod 644 ~/.ssh/id_rsa.pub | |
chmod 600 ~/.ssh/github_rsa | |
chmod 644 ~/.ssh/github_rsa.pub | |
chmod 600 ~/.ssh/mozilla_rsa | |
chmod 644 ~/.ssh/mozilla_rsa.pub |
This file contains 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
/** | |
* Emoji Rotator | |
*/ | |
const Emoji = (() => { | |
const emojis = ["😮", "😀", "😁", "😐", "😑", "😬"] | |
const time = 200; | |
setInterval(_=>{ | |
document.querySelector('.js-emoji').innerHTML =[ | |
...emojis |
This file contains 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
const { task, parallel } = require( 'gulp' ) | |
const test = require("./tasks/test") | |
exports.build = parallel(test.test) | |
exports.default = exports.build |
This file contains 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
/** | |
* Scroll Direction | |
* Detects scroll direction for Header enter and exit animations | |
*/ | |
var ScrollDirection = (function() { | |
var html = document.querySelector('html'); | |
var appHeader = document.querySelector('.app-header'); | |
var appHeaderHeight = appHeader.clientHeight; | |
var scrollThrottle = 30; |
This file contains 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
# Remove all tracked files and start over | |
git rm -r --cached . | |
git add -A | |
git commit -am 'Removing ignored files' |
This file contains 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
# First, use ip tables to find fail2ban rules | |
iptables -L -n | |
# Locate the block ip among the listed refs returned | |
... | |
Chain f2b-wordpress-hard (1 references) | |
target prot opt source destination | |
REJECT all -- 1.2.3.4.5 0.0.0.0/0 reject-with icmp-port-unreachable | |
RETURN all -- 0.0.0.0/0 0.0.0.0/0 |
This file contains 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
<css-doodle> | |
:doodle { | |
@grid: 15 / 100vmax; | |
cursor: pointer; | |
background: #6427a3; | |
position: absolute; | |
top: 0; | |
left: 0; | |
opacity:0.4; |
This file contains 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
# npm i Node GYP Erros | |
npm explore npm -g -- npm install node-gyp@latest | |
nvm use 10.16.0 | |
# Unhandled rejection Error: EACCES: permission denied | |
sudo chown -R $USER:$GROUP ~/.npm | |
sudo chown -R $USER:$GROUP ~/.config |