Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
### Setup SSH key
# https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
echo "Creating an ed25519 SSH key..."
ssh-keygen -t ed25519
# Note: If you are using a legacy system that doesn't support the Ed25519 algorithm, use:
echo "Creating an RSA SSH key..."
ssh-keygen -t rsa -b 4096
#!/bin/sh
function wait_mysql() {
while ! (docker exec -it $1 mysql -pmysql -e "SELECT 1;" > /dev/null)
do
echo "Wait 5s for $1..."
sleep 5
done
}
@yangadam
yangadam / sfml-lib.txt
Created April 15, 2018 13:45
SFML library
sfml-graphics-s-d.lib
sfml-window-s-d.lib
sfml-system-s-d.lib
sfml-audio-s-d.lib
opengl32.lib
openal32.lib
winmm.lib
gdi32.lib
jpeg.lib
freetype.lib
@yangadam
yangadam / git-change-date.sh
Created April 15, 2018 13:38
Change commit date to author date
git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"'
#!/bin/bash
# reverse.sh
if [ $# -eq 0 ]; then
echo "No input log file."
exit
fi
if [ -f $1 ]; then
filecnt=0
#!/bin/bash
# collect.sh
#Help infomation
function usage
{
echo "usage: collect.sh [[-l file] [FILE]... | [-h]] "
}
#Move action