😮
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
package main | |
import ( | |
"fmt" | |
"unicode/utf8" | |
) | |
const strangeMessage = "TᕼIᔕ ᗰᕮᔕᔕᗩGá•® Iᔕ á‘á–‡OTᕮᑕTᕮᗪ á—·Y á—© ᔕá‘ᕮᑕIá—©á’ª á–´OᑎT. IT'ᔕ Iá—°á‘OᔕᔕIᗷᒪᕮ TO á‘•Oá‘Y IT. Tá–‡Y ᗩᑎᗪ YOᑌ á—¯Iᒪᒪ á–´á—©Iá’ª" | |
func main() { |
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 | |
./configure --prefix=/usr/local --with-features=huge --enable-perlinterp --enable-pythoninterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-cscope [email protected] |
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 sh | |
# NOTE! This requires the "Sift" tool, GNU "sed", and Go (Golang) | |
# | |
# https://sift-tool.org/ | |
# https://github.com/svent/sift | |
# https://www.gnu.org/software/sed/ | |
# https://golang.org/ | |
# https://golang.org/cmd/go/#hdr-Show_documentation_for_package_or_symbol |
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 | |
readonly ACCESS_TOKEN="" | |
readonly IDS=( | |
1 | |
2 | |
3 | |
) | |
for id in ${IDS[@]}; |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"regexp" | |
"time" | |
) |
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 | |
# Enable strict error handling | |
set -u -o pipefail | |
# Define our hostname formats | |
readonly HOSTNAME_FORMAT="%s.my-service-name.environment-name" | |
readonly FQDN_HOSTNAME_FORMAT="%s.service.example.com" | |
# Get the current hostname |
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 | |
readonly PROGRESS_BAR_WIDTH=25 | |
readonly PROGRESS_BAR_STEP_CHAR='#' | |
echo "Processing..." | |
for i in $(seq ${PROGRESS_BAR_WIDTH}); do | |
steps=$(printf "${PROGRESS_BAR_STEP_CHAR}%.0s" $(seq $i)) | |
formatted=$(printf "%-${PROGRESS_BAR_WIDTH}s" ${steps}) |
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
NOTE! This requires Bash v4.x |
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
<?php | |
ini_set('error_reporting', E_ALL); | |
ini_set('display_errors', 1); | |
ini_set('log_errors', 1); | |
date_default_timezone_set('UTC'); | |
const LOG_PATH = '/var/log/debug/request-dump.log'; |
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 | |
# | |
# Gifsicle: http://www.lcdf.org/gifsicle/man.html | |
# | |
# Use `seq` to create a list sequence of integers, skipping every even number | |
# `seq -f "#%g" 0 2 213` | |
gifsicle --unoptimize image.gif | gifsicle --dither --colors 48 --resize-fit-width 512 -O2 `seq -f "#%g" 0 2 213` -o image.optimized.gif |