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/sh | |
kill $(pgrep kdevtmp); | |
kill $(pgrep kinsing); | |
find / -iname kdevtmpfsi -exec rm -fv {} \; | |
find / -iname kinsing -exec rm -fv {} \; | |
rm /tmp/kdevtmp*; | |
rm /tmp/kinsing*; |
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
git branch -m main master | |
git fetch origin | |
git branch -u origin/master master | |
git remote set-head origin -a |
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: 0.2 | |
phases: | |
install: | |
commands: | |
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2 & | |
# If the base operating system is Alpine Linux, in the buildspec.yml add the -t argument to timeout: | |
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done" | |
pre_build: | |
commands: |
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
# setup docker-compose | |
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose | |
# setup airflow 1.10.14 | |
git clone https://github.com/xnuinside/airflow_in_docker_compose | |
cd airflow_in_docker_compose | |
docker-compose -f docker-compose-with-celery-executor.yml up --build |
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
var paginate = function(page, limit) { | |
page = page || DEFAULT_PAGE | |
limit = limit || DEFAULT_LIMIT | |
return json_obj.slice((page - 1) * limit).slice(0, limit) | |
} |
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
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" | |
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws | |
export PATH=~/bin:$PATH | |
# verify | |
aws --version |
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 -i | |
yum check-update | |
yum update -y | |
yum install epel-release -y | |
reboot | |
yum install -y yum-utils device-mapper-persistent-data lvm2 | |
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo | |
yum install docker-ce docker-ce-cli containerd.io -y | |
systemctl start docker | |
systemctl status docker |
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/sh | |
# Check to see if this is the first commit in the repository or not | |
if git rev-parse --verify HEAD >/dev/null 2>&1 | |
then | |
# We compare our changes against the previous commit | |
against=HEAD^ | |
else | |
# Initial commit: diff against an empty tree object | |
against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 |
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
git remote add -f foo https://github.com/wingkwong/foo.git | |
git remote add -f bar https://github.com/wingkwong/bar.git | |
git remote add -f baz https://github.com/wingkwong/baz.git | |
git merge foo/master --allow-unrelated-histories | |
git merge bar/master --allow-unrelated-histories | |
git merge baz/master --allow-unrelated-histories |
NewerOlder