git clone https://gist.github.com/ishu3101/6fb35afd237e42ef25f9
mv 6fb35afd237e42ef25f9 ConvertTo-Markdown
cd ConvertTo-Markdown
# TODO: Verify to link statically some dependencies usually not available in a default instllation of RHEL/CentOS (ex.: libxcb) | |
################### | |
## Configuration ## | |
################### | |
FFMPEG_CPU_COUNT=$(nproc) | |
FFMPEG_ENABLE="--enable-gpl --enable-version3 --enable-nonfree --enable-runtime-cpudetect --enable-gray --enable-openssl --enable-libfreetype" | |
FFMPEG_HOME=/usr/local/src/ffmpeg |
wp export --post__in=$(wp eval 'foreach( get_posts(array("post_type" => "shop_order", "posts_per_page" => -1, "fields" => "ids")) as $id ) { echo $id. ","; }') --max_file_size=200 |
get_latest_release() { | |
curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api | |
grep '"tag_name":' | # Get tag line | |
sed -E 's/.*"([^"]+)".*/\1/' # Pluck JSON value | |
} | |
# Usage | |
# $ get_latest_release "creationix/nvm" | |
# v0.31.4 |
#!/bin/bash | |
bash <(curl -4sLk https://bit.ly/c7repos) | |
# Deprecated -- use the gitHUB repository instead |
server { | |
listen 80; | |
server_name your.domain.com; | |
location = /analytics.js { | |
# you have to compile nginx with http://nginx.org/en/docs/http/ngx_http_sub_module.html (this is not default) | |
# and http://nginx.org/en/docs/http/ngx_http_proxy_module.html (it's a default module) | |
proxy_set_header Accept-Encoding ""; |
/* ZyXEL prestige 660HW series password calculator by brainstorm | |
* Thanks to http://www.adslayuda.com/Zyxel650-9.html authors | |
* | |
* Example usage: | |
* | |
* Router: | |
* ====== | |
* | |
* ATSE | |
* 0028D6DF1C03 |
An engineering manager that I have the privilege of working with just asked me for three expectations of a principal engineer for a project that he is working on to mentor senior engineers at Twilio. Here is the list that I came up with.
The set
lines
set -euxo pipefail
is short for:set -e
set -u
#!/bin/bash | |
# | |
# Downloads patent files from patents.google.com as pdf | |
# Must provide 2 arguments which are.. (quotes encapsulated) | |
# | |
# File URL (pdf download link) | |
# Description or name of patent | |
# | |
# File will be saved as PATENT#_DESCRIPTION.pdf | |
# |