request('http://www.omdbapi.com/?s=star%20wars', (error, response, body) => {
const results = JSON.parse(body);
console.log(results);
});
heroku login # login once
heroku create [name] # Initializes heroku app and adds remote.
heroku addons:create heroku-postgresql # add a postgres db addon to your heroku app
heroku logs [--tail] # Shows heroku server terminal
heroku pg:psql # connect to heroku addon database server
heroku config # shows heroku environment variables
- heroku config:set clown=fiesta # set a config variable
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 express = require('express'); | |
const morgan = require('morgan'); | |
const cors = require('cors'); | |
const app = express(); | |
app.use(morgan('dev')); | |
app.use(cors()); | |
app.get('/', (req, res) => { |
I hereby claim:
- I am connoro7 on github.
- I am dillpickles (https://keybase.io/dillpickles) on keybase.
- I have a public key ASBU-ywQR77Pny0QblUqQNXwqsHeiBH5WE7mWj2r3dH24Qo
To claim this, I am signing this object:
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
## | |
# Author: Connor Dillon | |
# Created: June 4 2020 | |
# Some useful `exa` aliases meant to replace standard `ls` usage. | |
# The aliases use `l` instead of `exa` to make use of muscle memory from typing `ls` all the time :) | |
# Use `$ exahelp` to print documentation to console | |
# | |
# Download `exa` via: | |
# OSX: $ brew install exa | |
# Linux: $ sudo apt-get install exa |
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 | |
# Edit EXPORT_FOLDER to change the export location | |
EXPORT_FOLDER=~/ssh_export | |
# Append (or remove) any additional key locations you may have to the KEYS array. | |
KEYS=(~/.gnupg ~/.pki/nssdb ~/.gnome2/keyrings ~/.ssh /usr/local/apache2/conf/ssl.crt/server.crt /usr/local/apache2/conf/ssl.key/server.key /etc/ssh /etc/ssl/private /etc/cups/ssl) | |
# | |
echo -e "SSH Keys being sent to: \033[44;97m$EXPORT_FOLDER\033[0m" | |
for FILE in "${KEYS[@]}" | |
do | |
# for use with OSX |
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
set number | |
set ruler | |
filetype indent on | |
set ai | |
set mouse=a | |
set incsearch | |
set hlsearch | |
set paste | |
set confirm | |
set ignorecase |
NewerOlder