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! | |
# Attention, before running the script, do: `git remote add alternative-repo <REMOTE_REPO>` | |
# Also check branch names on MAIN_REPO_BRANCH and ALTERNATIVE_REPO_BRANCH | |
MAIN_REPO_REMOTE=origin | |
MAIN_REPO_BRANCH=develop | |
ALTERNATIVE_REPO_REMOTE=client | |
ALTERNATIVE_REPO_BRANCH=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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>iPhone Resolution Test</title> | |
<style> | |
body { | |
display: flex; | |
flex-direction: column; |
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
version: '3' | |
services: | |
postgres-compose: | |
image: postgres | |
environment: | |
POSTGRES_PASSWORD: "password" | |
ports: | |
- "15432:5432" | |
volumes: |
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
version: '3.9' | |
services: | |
metabase: | |
image: metabase/metabase:latest | |
container_name: metabase | |
hostname: metabase | |
volumes: | |
- /dev/urandom:/dev/random:ro | |
ports: | |
- 3000:3000 |
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 | |
for branch in `git branch -r | grep -v HEAD`;do | |
git checkout -b $branch $branch | |
done |
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 | |
COMMIT_AUHTOR_NAME='Your name' | |
COMMIT_AUTHOR_EMAIL='Your e-mail' | |
COMMIT_DATE_TODAY=$(date '+%Y-%m-%d')" 00:00:00" | |
# Change commits author and date | |
git filter-branch -f --env-filter " | |
GIT_AUTHOR_NAME='$COMMIT_AUHTOR_NAME' | |
GIT_AUTHOR_EMAIL='$COMMIT_AUTHOR_EMAIL' | |
GIT_COMMITTER_NAME='$COMMIT_AUHTOR_NAME' |
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
version: '3' | |
services: | |
speedtest: | |
container_name: speedtest-tracker | |
image: henrywhitaker3/speedtest-tracker:latest | |
restart: unless-stopped | |
ports: | |
- 8765:80 | |
volumes: | |
- ./config:/config |
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
for f in *; | |
do | |
ffmpeg -i ${f} -vf "scale=1242:-1, crop=1242:2208:0:0" "iphone5,5-resized-${f}"; | |
done; |
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 | |
apt update && apt upgrade -y | |
apt install ca-certificates gnupg -y | |
install -m 0755 -d /etc/apt/keyrings | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg | |
chmod a+r /etc/apt/keyrings/docker.gpg | |
echo \ |
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
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -off -restart -agent -privs -all -allowAccessFor -allUsers | |
# Later restart the computer |
NewerOlder