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
| configuration { | |
| /* modes: "window,drun,run,ssh";*/ | |
| font: "Source Code Pro Semi-Bold 14"; | |
| /* location: 0;*/ | |
| /* yoffset: 0;*/ | |
| /* xoffset: 0;*/ | |
| /* fixed-num-lines: true;*/ | |
| show-icons: true; | |
| terminal: "kitty"; | |
| /* ssh-client: "ssh";*/ |
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/bash | |
| output_dir="$HOME/Videos/Replays" | |
| rate=30 | |
| pipe_path="/tmp/record_control_pipe" | |
| pid_file="/tmp/record_screen.pid" | |
| daemon_pid_file="/tmp/record_screen_daemon.pid" | |
| daemon_log_file="/tmp/record_screen_daemon.log" | |
| record_extension="mp4" | |
| timeout=60 |
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
| cat -n .zsh_history | sort -t ';' -uk2 | sort -nk1 | cut -f2- > .zhistory |
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
| #!/usr/bin/env bash | |
| # | |
| # Helper script to save a URL to Omnivore | |
| # | |
| set -e | |
| if [ -f $HOME/.omnivore ]; then | |
| source $HOME/.omnivore | |
| fi |
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
| #!/usr/bin/env python | |
| import subprocess | |
| import sys | |
| SCREEN_LAYOUT = { | |
| 'horizontal': { | |
| 'full-size': '0,0,{width},{height}', | |
| 'half-left': '0,0,{width}/2,{height}', | |
| 'half-right': '{width}/2,0,{width}/2,{height}', |
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
| Coverage Badges |
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
| #!/usr/bin/env bash | |
| # | |
| # this script uses v4l2-ctl to set the zoom level of a webcam | |
| # | |
| set -e | |
| # you may have multiple cameras but usual video0 is the right one | |
| camera=/dev/video0 |
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
| #!/usr/bin/env bash | |
| set -e | |
| target_osx=$(sw_vers -productVersion) | |
| project_dir=/Users/rkmax/development/aseprite | |
| skia_dir=/Users/rkmax/development/skia | |
| arch="$(uname -m)" | |
| bundle_trial_url=https://www.aseprite.org/downloads/trial/Aseprite-v1.2.40-trial-macOS.dmg |
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
| set @old_domain = ''; | |
| set @new_domain = ''; | |
| -- Update post | |
| UPDATE wp_posts | |
| SET guid = replace(guid, @old_domain, @new_domain), | |
| post_content = replace(post_content, @old_domain, @new_domain); | |
| UPDATE wp_postmeta | |
| SET meta_value = replace(meta_value, @old_domain, @new_domain); |
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
| #!/usr/bin/env bash | |
| usage() { | |
| cat << EOF | |
| NAME | |
| deploy-cloudfront-page | |
| SYNOPSIS | |
| deploy-cloudfront-page </path/directory/dist> <s3-bucket-name> [cf-distribution-id] |