Skip to content

Instantly share code, notes, and snippets.

// .then() chaining
fetch("https://jsonplaceholder.typicode.com/users/1") //1
.then((response) => response.json()) //2
.then((user) => {
console.log(user.address); //3
});
// .then() callback
ffmpeg -f image2 -framerate 8 -pattern_type glob -i '*.JPG' \
-filter:v "scale='min(3648,iw)':'min(2736,ih)':force_original_aspect_ratio=decrease,pad=3648:2736:(ow-iw)/2:(oh-ih)/2" \
-c:v libx265 -crf 28 -preset medium video-3648-h265-medium.mp4
@atxryan
atxryan / docker_install.sh
Created October 17, 2019 21:55
Docker build server setup
# add Docker group
groupadd docker
usermod -aG docker aks
# install some stuff
apt-get update
apt-get install -y apt-transport-https ca-certificates curl git wget nano lsb-release software-properties-common jq redis-tools gnupg-agent
chown -R aks:aks /home/aks
@atxryan
atxryan / prereqs.md
Last active October 21, 2019 17:23
NWA Tech Summit prerequites

We'll create an Ubuntu build server in Azure and use SSH to run docker commands. You should be able to SSH from your local machine. If you're unsure if SSH will work on your machine, open a terminal and try running the following command:

ssh aks@52.165.47.226

It should fail, but this confirms that you can SSH into an Azure-hosted VM.

aks@52.165.47.226: Permission denied (publickey).
sudo apt-get update
# Install Docker dependencies
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
# Add Docker PGP key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
# Add Docker Repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
@atxryan
atxryan / Rename and increment.ps1
Created May 6, 2017 19:09
Rename files in directory with incrementing number
Get-ChildItem |
% -Begin { $i = 1 } -Process {
Rename-Item -LiteralPath $_.FullName -NewName ("bonefrog_{0:D3}.jpg" -f $i++)
}
@atxryan
atxryan / markdown.css
Last active August 29, 2015 14:21 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
@atxryan
atxryan / .deployment
Created May 15, 2015 16:43
Custom Node.js deployment on Azure
[config]
command = bash deploy.sh
@atxryan
atxryan / creative_web_media
Last active December 24, 2015 14:49
I'm compiling a list of great examples of creative digital media built using HTML, JavaScript, and CSS. This can be advertising, games, music, storytelling, etc.
NY Times - Snow Fall
http://www.nytimes.com/projects/2012/snow-fall/
Ok Go - All Is Not Lost - music Video
http://www.allisnotlo.st/
Arcade Fire - The Wilderness Downtown - music video
http://thewildernessdowntown.com/
Atari Arcade - games
@atxryan
atxryan / Things to do in Austin.md
Created September 4, 2013 21:00
Things to do in Austin

Barton Springs Pool - cold natural spring-fed pool - my favorite on a hot day!

Mount Bonnell - nice views of the lake and city

First Thursday - street festival with lots of shopping, drinks, and fun on the first Thursday of the month

Texas Rollergirls Rollerderby

kayaking or stand up paddle board on Lady Bird Lake