Skip to content

Instantly share code, notes, and snippets.

https://www.linkedin.com/jobs/
https://www.vawizard.org/wiz-pdf/STAR_Method_Interviews.pdf
space-jobs
https://www.planet.com/company/careers/
https://kepler.space/jobs/
https://jobs.lever.co/hadrian
https://www.tomorrow.io/careers/
https://ablspacesystems.com/company/
https://www.leolabs.space/jobs/
https://www.ghgsat.com/join-our-team/
@neilhwatson
neilhwatson / web-servers.md
Created October 31, 2016 20:14 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@neilhwatson
neilhwatson / foo.sh
Created August 29, 2019 01:29
Bash regex
#!/bin/bash -x
port='123:567'
port_regex="([0-9]+):([0-9]+)"
echo what to change ports $port
if [[ $port =~ $port_regex ]]
then
from=${BASH_REMATCH[1]}
@neilhwatson
neilhwatson / run.sh
Created April 5, 2018 00:12
spring-boot rest example
#!/bin/bash
docker run -it --rm --name my-maven-project \
-p 80:8091 \
-v "$(pwd)":/usr/src/mymaven \
-w /usr/src/mymaven maven:3-jdk-10 \
mvn spring-boot:run -Drun.arguments="spring.profiles.active=test"
@neilhwatson
neilhwatson / false.cf
Created February 27, 2017 18:46
No error either way
body common control
{
bundlesequence => {
"main",
};
}
bundle agent main
{
methods:
@neilhwatson
neilhwatson / v.sh
Last active January 18, 2017 17:22
Prevent any interpretation in output
#!/bin/sh
variables='Do not show'
x='
Do not expand \\ type escapes and
all $variables
'
echo "$x"
@neilhwatson
neilhwatson / jq-test.sh
Created January 18, 2017 16:19
invalid escape
printf '{"hive.security.authorization.sqlstd.confwhitelist.append" : "|mapred\\.job\\.name|hive\\.execution\\.engine"}' | jq
parse error: Invalid escape at line 1, column 105
- name: Create VM from template
vmware_guest:
validate_certs: False
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_user }}"
password: "{{ vcenter_pass }}"
#esxi_hostname: "{{ esxhost }}"
#datacenter: BOX
@neilhwatson
neilhwatson / quotetest.cf
Created November 30, 2016 17:04
cf-agent quotting works with singe, double quotes, and backticks
neil@luna:~/.cfagent/inputs$ cat quotetest.cf
body common control
{
bundlesequence => { "main", };
}
bundle agent main {
vars:
'var1' string => 'with single quotes';