Skip to content

Instantly share code, notes, and snippets.

View gist:2f472cc57caf89946b655400b385098e
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/
View foo.sh
#!/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 Apr 5, 2018
spring-boot rest example
View run.sh
#!/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 Feb 27, 2017
No error either way
View false.cf
body common control
{
bundlesequence => {
"main",
};
}
bundle agent main
{
methods:
@neilhwatson
neilhwatson / v.sh
Last active Jan 18, 2017
Prevent any interpretation in output
View v.sh
#!/bin/sh
variables='Do not show'
x='
Do not expand \\ type escapes and
all $variables
'
echo "$x"
View jq-test.sh
printf '{"hive.security.authorization.sqlstd.confwhitelist.append" : "|mapred\\.job\\.name|hive\\.execution\\.engine"}' | jq
parse error: Invalid escape at line 1, column 105
View vguest.yml
- 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 Nov 30, 2016
cf-agent quotting works with singe, double quotes, and backticks
View quotetest.cf
neil@luna:~/.cfagent/inputs$ cat quotetest.cf
body common control
{
bundlesequence => { "main", };
}
bundle agent main {
vars:
'var1' string => 'with single quotes';
@neilhwatson
neilhwatson / web-servers.md
Created Oct 31, 2016 — forked from willurd/web-servers.md
Big list of http static server one-liners
View web-servers.md

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