This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# sort a "du" listing by directory size | |
# usage: du | dusort | |
FILES= | |
TFORM=0 | |
while test $# -ge 1; do | |
case $1 in | |
-t) TFORM=1; ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"payload":{ | |
"after":"65aeff1fc085e1e369533de9f59b2754c5bb20b1", | |
"base_ref":null, | |
"before":"77a9bae00f0d6996e0883ce6d23f2778c6a2ee25", | |
"commits":[ | |
{ | |
"author":{ | |
"email":"[email protected]", | |
"name":"First Last", |
This article describes how to record audio using the Web Audio API in JavaScript. The related resources are shown below.
I could not find a proper full configuration for this online, and I know I'll need this again in the future.
There are two ways to achieve this with some plugins; one via hitting the shell and doing an in-place replace, the other is by doing it with extensions configurable in vscode. Both should give you the same results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@layer utilities { | |
/* extra helper classes to account for mobile safe areas */ | |
.p-safe { | |
padding: env(safe-area-inset-top) env(safe-area-inset-right) | |
env(safe-area-inset-bottom) env(safe-area-inset-left); | |
} | |
.px-safe { | |
padding-left: env(safe-area-inset-left); | |
padding-right: env(safe-area-inset-right); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Record screen from simulator: | |
xcrun simctl io booted recordVideo appVideo.mov | |
# Full size screen recording | |
ffmpeg -i screen-recording.mp4 -i iPhone12ProOverlay.png \ | |
-filter_complex "scale=-1:2532,pad=width=3656:height=2057:x=(ow-iw)/2:y=(oh-ih)/2,overlay=x=0:y=0" \ | |
output.mp4 | |
# Screen recording resized to 1920px height | |
ffmpeg -i screen-recording.mp4 -i iPhone12ProOverlay-3656.png \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"token": "[token]", | |
"job": "notifySlack", | |
"ref": "refs/pull/4/merge", | |
"sha": "[shad]", | |
"repository": "colbyfayock/demo-github-actions", | |
"repository_owner": "colbyfayock", | |
"repositoryUrl": "git://github.com/colbyfayock/demo-github-actions.git", | |
"run_id": 120667610, | |
"run_number": "2", |
set $req_header "";
set $resp_header "";
header_filter_by_lua_block{
local h = ngx.req.get_headers();
for k, v in pairs(h) do
ngx.var.req_header = ngx.var.req_header .. k.."="..v.." ";
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Read more about setting it up | |
# https://medium.com/@ljmocic/deploying-react-application-to-aws-s3-using-github-actions-85addacaeace | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: |