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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains website.org \ | |
--no-parent \ | |
www.website.org/tutorials/html/ |
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
git config http.postBuffer 524288000 #Set to 500MB |
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
/** | |
* Name: Star Wars Imperial March | |
* Author: Joseph Milla | |
* Author URI: http://www.josephmilla.com | |
* Version: 1.0.0 | |
* Tag: Arduino, Star Wars | |
*/ | |
//SPEAKER (PWM pin) | |
int speakerPin = 11; |
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
# Git Aliases | |
alias gco='git checkout' | |
alias gfo='git fetch origin' | |
alias grhod='git reset --hard origin/develop' | |
alias grhom='git reset --hard origin/master' | |
alias grv='git remote -v' | |
alias gtx='open /Applications/GitX.app' | |
alias gla='git log --oneline --graph --decorate --abbrev-commit' | |
alias grh='git reset --hard' | |
alias gcam='git commit -a -m' |
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
Usage: apt-get [options] command | |
apt-get [options] install|remove pkg1 [pkg2 ...] | |
apt-get [options] source pkg1 [pkg2 ...] | |
apt-get is a simple command line interface for downloading and | |
installing packages. The most frequently used commands are update | |
and install. | |
Commands: | |
update - Retrieve new lists of packages |
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
#build us a binary for https://github.com/bitly/oauth2_proxy/pull/277 | |
FROM golang | |
WORKDIR /go/src/github.com/bitly | |
RUN git clone https://github.com/kindlyops/oauth2_proxy.git | |
WORKDIR /go/src/github.com/bitly/oauth2_proxy | |
RUN git checkout github-teams-tweaks | |
RUN go get | |
# include patch from https://github.com/bitly/oauth2_proxy/pull/295 | |
RUN curl https://github.com/donaldguy/oauth2_proxy/commit/8965e6b58a3afd8ad9f0f326f91b25253c88d523.patch | git apply --apply - | |
RUN go 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
// Grep the PID | |
ps aux | grep jekyll | |
// List process by port | |
lsof -wni tcp:4000 | |
// Kill the process | |
kill PID |
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
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
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
For my purposes I didn't use build dist because there was some confusion retrieving assets and such so I just stuck to development and kept things in the client folder | |
From there: | |
Use the FTP client of your choice to upload your angular-fullstack folder to /opt | |
In the terminal of your choice run: ssh root@your-digital-ocean-ip-address | |
cd into /opt/name-of-your-fullstack-project-folder | |
Then run node server/app.js | |
This will start up your server in development on port 9000. | |
To keep the server running: | |
Run these commands in order |
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 numpy as np | |
>>> A = np.mat('[1 2;3 4]') | |
>>> A | |
matrix([[1, 2], | |
[3, 4]]) | |
>>> A.I | |
matrix([[-2. , 1. ], | |
[ 1.5, -0.5]]) | |
>>> b = np.mat('[5 6]') | |
>>> b |
NewerOlder