Because I always forget the right order of passing in arguments!
Example up command with background process flag set:
docker-compose -f docker-compose.yml -f docker-compose-override-file.yml up -d myservice name
package main | |
import ( | |
"fmt" | |
"time" | |
flag "github.com/ogier/pflag" | |
"os" | |
) | |
var ( |
public class IsPrime { | |
public static void main(String args[]) { | |
System.out.println("6 (should be false):" + isPrime(6)); | |
System.out.println("11 (should be true):" + isPrime(11)); | |
// given a collection of numbers 11, 15, 2, 5, 6, 11 | |
// output the prime numbers, in sorted order, with no duplicates | |
} | |
#!/bin/bash | |
#set -o nounset | |
#set -x | |
help () | |
{ | |
echo "Usage: | |
Submit Github PR's for a list of repos (predefined in script) with the same base and head branches. | |
Can be useful in a microservices environment where code is deployed from branches which correspond with |
Because I always forget the right order of passing in arguments!
Example up command with background process flag set:
docker-compose -f docker-compose.yml -f docker-compose-override-file.yml up -d myservice name
/* based on https://stackoverflow.com/a/17268740/288935 */ | |
CREATE PROCEDURE insert_test_data() | |
BEGIN | |
DECLARE i INT default 1; | |
DECLARE mydate DATE DEFAULT NOW(); | |
SET mydate = DATE_ADD('2017-05-01 00:01:00', INTERVAL FLOOR(RAND() * 700) DAY); | |
WHILE i < 1000000 DO | |
INSERT INTO `telemetry_test` (`humidity`, `temperature`, `sql_insert`, `sql_update`) |
Thanks to @kevlarr for this info... Saving it myself for reference.
The easiest way to get started is via pyenv and virtualenv.
brew install pyenv
eval "$(pyenv init -)"
to your bash, etc. profile if you want to enable autocomplete (hint: you do),pyenv install 3.6.8
11 If you are running Mojave and are having issues building (looking at you,
zlib
), you likely need to install C header files
# this chains them to make the regex easier to follow | |
sed -n -e 's/^${FIRSTPATTERN}//p' test.txt | sed -n -e 's/${SECONDPATTERN}//p' |
See this article first.
Use node --inspect
Most of the time it should give you a chrome URL. If not, go to about:inspect
in chrome and you should see a target to inspect
(I always forget this!)
https://stackoverflow.com/questions/29283040/how-to-add-custom-certificate-authority-ca-to-nodejs
export NODE_EXTRA_CA_CERTS=[your CA certificate file path]