Use to cut 5 seconds from end of the file.
sox input output reverse trim 5 reverse
Converts the samplerate to 48kHz:
sox infile.wav -r 48k outfile.wav
#!/bin/bash | |
RETRIES=5 | |
SLEEP_IN_SECONDS=2 | |
RETURN_CODE=99 | |
counter=0 | |
until [[ $RETURN_CODE -eq "0" || $counter -ge $RETRIES ]] ; do | |
# next line you should run the command, false and echo are just sample placeholders for the test |
#!/bin/bash | |
while true ; do | |
osascript -e "set volume input volume 100" | |
echo "$(date): Increased volume" | |
sleep 1; | |
done; |
import boto3 | |
LB_TO_TARGET_ARN = {} | |
def main(): | |
client = boto3.client('elbv2') | |
load_balancers = client.describe_load_balancers() | |
for lb in load_balancers['LoadBalancers']: | |
lb_arn = lb['LoadBalancerArn'] | |
attr_for_lb = client.describe_listeners(LoadBalancerArn=lb_arn) |
#!/bin/bash -e | |
URL_TO_DOWNLOAD=$(curl -s "https://iterm2.com/downloads.html" | grep "https://iterm2.com/downloads/stable/" | head -1 | awk '/http/{ print $4 }' | sed -e 's/"/\n/g' | sed -n '2p') | |
curl -L -s -o iTerm2.zip $URL_TO_DOWNLOAD | |
unzip iTerm2.zip | |
mv iTerm.app /Applications | |
rm iTerm2.zip | |
echo "Done - Installed - ${URL_TO_DOWNLOAD}" |
#!/bin/bash | |
# When executing in circleci, make sure a user is defined in git config | |
CURRENT_NAME=$(git config user.name) | |
if [[ -z $CUR_NAME ]]; then | |
git config user.name "CI USER" | |
git config user.email [email protected] | |
echo "Git names init done." | |
fi |
import { Md5 } from "https://deno.land/std/hash/md5.ts" | |
const md5 = new Md5(); | |
d5.update("moshe").toString(); | |
// Other hash functions - https://deno.land/std/hash |
Use to cut 5 seconds from end of the file.
sox input output reverse trim 5 reverse
Converts the samplerate to 48kHz:
sox infile.wav -r 48k outfile.wav
#!/bin/bash -e | |
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
git diff --name-only --diff-filter=ACM $LATEST_TAG HEAD | |
#!/bin/bash -e | |
set -x | |
# Poppler is used by resume parser for a faster PDF data extraction. | |
# Deploy is a bit man ual and complicated because of the C libs involved | |
# the fact no pip is used (anaconda and not virtualenev) and that the | |
# Cmake version eeds to be be udpated as part of it. | |
CMAKE_VERSION='3.6.2' | |
POPPLER_VERSION="poppler-0.67.0" | |
TARGET_DIR='/opt/poppler' |
Random gist with no data. | |
Testing the alers |