Skip to content

Instantly share code, notes, and snippets.

View devisnotnull's full-sized avatar
🎯
Focusing

Alex Brown @lextech devisnotnull

🎯
Focusing
View GitHub Profile
@devisnotnull
devisnotnull / multiple_ssh_setting.md
Created January 6, 2021 21:55 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@devisnotnull
devisnotnull / multiple_ssh_setting.md
Created January 6, 2021 21:55 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@devisnotnull
devisnotnull / PurseFolderFromGit.sh
Created January 5, 2020 22:17
PurseFolderFromGit
git filter-branch --tree-filter "rm -rf node_modules" --prune-empty HEAD
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
echo node_modules/ >> .gitignore
git add .gitignore
git commit -m 'Removing node_modules from git history'
git gc
git push origin master --force
@devisnotnull
devisnotnull / Jenkins.ytaml
Created December 23, 2019 19:39
Jenkins docker compose
version: '2'
services:
jenkins:
image: istresearch/jenkins:latest
container_name: jenkins
user: jenkins
environment:
JENKINS_HOST_HOME: "/data/jenkins"
ports:
- "8080:8080"
@devisnotnull
devisnotnull / mysql.yaml
Created December 23, 2019 19:39
Mysql docker compose
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
@devisnotnull
devisnotnull / postgres.yaml
Created December 23, 2019 19:38
Postgres docker compose
version: '3.1'
services:
db:
image: postgres
restart: always
environment:
POSTGRES_PASSWORD: example
ports:
docker run -p 8000:8000 amazon/dynamodb-local --name aws-dynamo-db-local
@devisnotnull
devisnotnull / install_webdriver.sh
Created April 8, 2019 11:32
REHL/CentOS install chrome driver binary
#!/bin/sh
yum update -y
yum install -y wget unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4
wget https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
yum install -y ./google-chrome-stable_current_*.rpm
curl https://chromedriver.storage.googleapis.com/73.0.3683.20/chromedriver_linux64.zip > ~/chromedriver.zip
unzip -o ~/chromedriver.zip -d /usr/local/bin/chromedriver