sudo apt-get update
sudo apt-get install -y libssl1.0.0 openssl
openssl version -a
and confirm the "built on" date is >= 2014-04-07sudo lsof -n | grep ssl | grep DEL
and restart all listed services.
Repeat #4 until no results are returned.
# setup fd 3 as udp connection to drone | |
exec 3<>/dev/udp/192.168.1.1/5556 | |
# takeoff | |
echo -e "AT*REF=1,512\r" >&3 | |
# landing | |
echo -e "AT*REF=2,0\r" >&3 | |
... | |
# profit? |
packages: | |
yum: | |
git: [] | |
files: | |
/opt/elasticbeanstalk/hooks/appdeploy/pre/51install_meteor.sh: | |
mode: "000755" | |
user: root | |
group: root | |
encoding: plain |
select.form-control + .chosen-container.chosen-container-single .chosen-single { | |
display: block; | |
width: 100%; | |
height: 34px; | |
padding: 6px 12px; | |
font-size: 14px; | |
line-height: 1.428571429; | |
color: #555; | |
vertical-align: middle; | |
background-color: #fff; |
module.exports = function () { | |
// If there is an uncaught exception anywhre in your app, it will result in a proper 500 page. | |
if (Math.random() < 0.3) throw new Error("Oops, my random is low"); | |
// They don't have to happen in the first tick either | |
if (Math.random() < 0.2) return setTimeout(function () { | |
throw new Error("Delayed random bites"); | |
}); | |
// If you throw an object, it will send a JSON document to the client | |
if (Math.random() > 0.6) throw {Hello: request.url}; |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
The import_quattroshapes_pgsql.sh
shell-script will import all Quattroshapes shapefiles
into a PostgreSQL database. The process has some gotchas and is generally painful to do manually. Before running the
script, ensure that you are logged in as a user with permissions to access/write to PostgreSQL. Then:
bash import_quattroshapes_pgsql.sh
Note that the script will create a Postgres table quattroshapes
, and download all Quattroshapes shapefiles into
Leave suggestions in the comments below
#! /bin/bash | |
apt-get update | |
apt-get install -y \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
software-properties-common |