I hereby claim:
- I am 84adam on github.
- I am 84adam (https://keybase.io/84adam) on keybase.
- I have a public key whose fingerprint is 6ECC 36C6 5F6D E8CC F641 1C74 4D73 AC2D BC94 AAF4
To claim this, I am signing this object:
NOTES FROM INTRODUCTION TO IONIC APP DEVELOPMENT | |
April 13, 2016 | |
# babel JS - modern javascript compiler (and tutorials) | |
https://twitter.com/babeljs | |
https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/README.md | |
# Ionic AppCamp |
Linux Command Line Setup of OpenVPN and Private Internet Access | |
# source: https://support.privateinternetaccess.com/Knowledgebase/Article/View/30 | |
* Use the following instructions to install OpenVPN via the command line in Linux. | |
* This set-up has been known to work with several unsupported versions of Linux, as well as the supported Ubuntu. | |
* This worked on my machine running openSUSE LEAP 42.1. | |
* You will be prompted to enter your PIA username and password after step 6; have those ready. | |
1. sudo apt-get install openvpn _OR_ sudo yum ... _OR_ sudo zypper ... |
[see ghost blog post: http://kernelmastery.com/install-setup-vagrant/] | |
Vagrant, by HashiCorp (https://www.vagrantup.com), is a command-line interface to VirtualBox and numerous other virtual machine managers. There are plugins for talking to AWS, Azure, OpenStack, and many other services. | |
Vagrant is great for getting a predictable virtual machine set up with a few simple commands in a consistent and quick manner. | |
If you have VirtualBox installed, setup is easy. Just follow the steps below to try out an Ubuntu 16.04 or CentOS 7 virtual machine. | |
--- |
I hereby claim:
To claim this, I am signing this object:
from your home folder, type "vim .bashrc" | |
type "i" to edit; add the following section to your bashrc file under "# User specific aliases and functions": | |
you can use `SHIFT+INSERT` to paste text into the terminal | |
--- | |
# (optional) | |
# Limit directory path shown in prompt to only display current and one parent directory | |
# Example: user@hostname ../firstparent/currentdir/ $ |
CODE: | |
x=<FIRSTNUM>; y=<SECONDNUM>; printf $(echo "scale=4; $x/$y * 100" | bc | cut -d . -f 1)%% | |
EXAMPLE: | |
x=55; y=85; printf $(echo "scale=4; $x/$y * 100" | bc | cut -d . -f 1)%% | |
OUTPUT: |
#!/bin/sh | |
EXPECTED_SIGNATURE=$(wget -q -O - https://composer.github.io/installer.sig) | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
ACTUAL_SIGNATURE=$(php -r "echo hash_file('SHA384', 'composer-setup.php');") | |
if [ "$EXPECTED_SIGNATURE" != "$ACTUAL_SIGNATURE" ] | |
then | |
>&2 echo 'ERROR: Invalid installer signature' | |
rm composer-setup.php |
# create a new non-root user | |
adduser <new-username> | |
# follow prompts | |
# give sudo permissions to the new user | |
usermod -aG sudo <new-username> | |
# check groups for new user | |
groups <new-username> |
import datetime as dt | |
import requests | |
import io | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
from matplotlib.pyplot import figure | |
from matplotlib import ticker | |
from matplotlib.ticker import (MultipleLocator, FormatStrFormatter, AutoMinorLocator) | |
%matplotlib inline |
set wrap | |
set number | |
set colorcolumn=80 | |
syntax on | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
let g:go_highlight_trailing_whitespace_error=0 |