Used nodes:
Linux raspberrypi 4.9.41-v7+ #1023 SMP Tue Aug 8 16:00:15 BST 2017 armv7l GNU/Linux
Linux localhost.localdomain 4.14.5-200.fc26.x86_64 #1 SMP Mon Dec 11 16:29:08 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Pushing from Linux or Mac OS X | |
On your local computer, navigate to your user's ~/.ssh directory: | |
[local ~]$ cd ~/.ssh | |
If the directory doesn't exist, create it: | |
[local ~]$ mkdir ~/.ssh | |
Set up SSH keys by running the following command: | |
[local ~]$ ssh-keygen -t rsa -b 4096 -C "Remote Server Git repo" | |
Enter a name for the file when prompted, such as 'Remote-git-key'. | |
When prompted to enter a password, click 'Enter' twice to skip. | |
Two new files are created in your user's .ssh directory: |
<main role="main"> | |
<article class="post tag-node-js tag-express-js tag-sequelize tag-api tag-javascript article_purus"> | |
<header class="postheader_purus no-cover"> | |
<div class="vertical_purus"> | |
<div class="inner_purus"> | |
<h1 class="posttitle_purus">Sequelize CRUD 102</h1> | |
<ul> | |
<li><time class="date_purus"> Oct 16 2016</time></li> | |
</ul> | |
</div> |
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 | |
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below. | |
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING. | |
ABSOLUTELY NO WARRANTY. | |
If you are still reading let's carry on with the code. | |
sudo apt-get update && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ |
I make those changes in the original code: | |
https://github.com/pmitchev/testcoin/commit/bde47c6b7c575ab04aee43cc372ff1ebd3306d7a | |
I buy blank Ubuntu 14.04 VPS (2 GB RAM) (32GB on compile time) | |
I install dependencies: | |
wget https://raw.githubusercontent.com/forknote/cryptonote-generator/master/configure.sh | |
bash configure.sh | |
Clone and compile: | |
git clone https://github.com/pmitchev/testcoin/ | |
cd testcoin | |
mkdir -p build/release; cd build/release |
function performLookups() { | |
convertCrypto('BTC', 'USD', 2, 3); | |
convertCrypto('LTC', 'USD', 3, 3); | |
convertCrypto('ETH', 'USD', 4, 3); | |
} | |
function convertCrypto(symbol, currency, row, column) { | |
var url = 'https://min-api.cryptocompare.com/data/price?fsym=' + symbol + '&tsyms=' + currency; | |
var response = UrlFetchApp.fetch(url); | |
var json = response.getContentText(); |
/* USAGE: | |
* Sheet -> Tools -> Script Editor... | |
* Paste this script | |
* Update the map (below) to your preferences | |
* Create a button in your Sheet and Assign Script: `test` | |
* et voila profit | |
*/ | |
function test() { | |
// maps currencies.tokens to sheet ranges | |
getPrices({ |
#!/bin/bash | |
case "${1:-''}" in | |
'start') | |
if test -f /tmp/selenium.pid | |
then | |
echo "Selenium is already running." | |
else | |
export DISPLAY=localhost:99.0 | |
java -Dwebdriver.gecko.driver="/usr/lib/geckodriver/geckodriver" -jar /usr/lib/selenium/selenium-server-standalone.jar -port 4444 > /var/log/selenium/output.log 2> /var/log/selenium/error.log & echo $! > /tmp/selenium.pid |
<? | |
///////////////////// | |
// slack2html | |
// by @levelsio | |
///////////////////// | |
// | |
///////////////////// | |
// WHAT DOES THIS DO? | |
///////////////////// | |
// |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |