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
module.exports = { | |
apps: [ | |
{ | |
name: 'API', | |
script: 'server.js', | |
env: { | |
APP_SECRET: process.env.APP_SECRET | |
}, | |
env_production: { | |
NODE_ENV: 'production' |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "gbarbieru/xenial" | |
config.vm.network "private_network", ip: "192.168.1.2" | |
config.vm.synced_folder "./data", "/vagrant_data" | |
# Copy keys | |
config.vm.provision "file", source: "./keys/github.pub", destination: "/tmp/github.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
#!/bin/bash | |
UNPRIVILAGED_USER=roger_the_dodger | |
[email protected] | |
APP_DIR=$UNPRIVILAGED_USER_HOME/api | |
PM2=$APP_DIR/node_modules/pm2/bin/pm2 | |
UNPRIVILAGED_USER_HOME=/home/$UNPRIVILAGED_USER | |
NODE_VERSION=https://deb.nodesource.com/setup_10.x | |
# Update before downloading Node install script |
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
server 🦄 ssh -t dev 'bash -s' < scripts/provision.sh | |
Pseudo-terminal will not be allocated because stdin is not a terminal. | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified | |
sudo: no tty present and no askpass program specified |
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
server 🦄 npm run api:provision-dev | |
> [email protected] api:provision-dev /Users/spongebob/Projects/fb-app/server | |
> ssh -tt dev 'bash -s' < scripts/provision.sh | |
[email protected]'s password: | |
#!/bin/bash | |
# Download NodeJS installation script |
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
#!/bin/bash | |
# Download NodeJS installation script | |
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash - | |
# Install required packages | |
sudo apt-get update | |
sudo add-apt-repository ppa:certbot/certbot | |
sudo apt-get update | |
sudo apt-get install -y \ |
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
// ==UserScript== | |
// @name Facebook Group Scraper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author James Jeffery <[email protected]> | |
// @match https://www.facebook.com/search/str/*/keywords_groups | |
// @grant GM_setClipboard | |
// ==/UserScript== |
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
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/variables"; | |
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/mixins"; | |
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/grid"; | |
@import "node_modules/bootstrap-sass/assets/stylesheets/bootstrap/responsive-utilities"; | |
.row { | |
@include make-row(); | |
} | |
#content { |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Chrome", | |
"type": "chrome", | |
"request": "launch", | |
"url": "http://localhost:3000", | |
"webRoot": "${workspaceRoot}" | |
} |