npm init playwright@latest
npx playwright test
| git shortlog -sn --no-merges | awk '{printf "INSERT INTO repositories_contributors(id, repository_key, contributor_name, number_of_commits) VALUES ('"'repository'"', '"'project'"', '"'%s'"', '%s');\n", $2 " " $3, $1}' |
| #!/bin/sh | |
| WAR_MASTER="X.war" | |
| WAR_CANDIDATE="Y.war" | |
| rm -r /tmp/comparator | |
| mkdir /tmp/comparator | |
| unzip $WAR_MASTER -d /tmp/comparator/tmp1 | |
| unzip $WAR_CANDIDATE -d /tmp/comparator/tmp2 |
| import mysql.connector as mysql | |
| from getpass import getpass | |
| db = mysql.connect( | |
| host="localhost", | |
| user="root", | |
| password=getpass("Password: "), | |
| database="my_db_name" | |
| ) |
Cntrol + shift + p = Open suggest
Cntrol + shift + i = Format
| if [ -f ~/.bash_aliases ]; then | |
| . ~/.bash_aliases | |
| fi | |
| #add extra paths | |
| PATH=$PATH:$HOME/scripts:/opt/apache-maven-3.3.9/bin:/opt/gradle/gradle-4.10.2/bin | |
| export PATH |
| [alias] | |
| lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit | |
| s = status -s | |
| hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph--date=short | |
| filelog = log -u | |
| dl = "!git ll -1" | |
| dlc = diff --cached HEAD^ | |
| mergec = merge --no-ff --no-commit | |
| squash = merge --squash | |
| gclean = clean -d -f -f |
| bat - https://github.com/sharkdp/bat |
| alias la="ls -AFh" # List all files | |
| alias ld="ls -d */" # List only directories | |
| alias l.="ls -Ah | egrep '^\.'" # List only dotfiles (hidden files) | |
| alias l1='ls -1AFh' # List files (one line at a time) | |
| alias lg="ls -AFh | grep" # Grep through filenames (also see, hg) | |
| alias lp="ls -d `pwd`/*" # List full paths | |
| alias lpg="ls -d `pwd`/* | grep" # Grep through filenames but list full path | |
| alias lt="ls -Alth" # Sort by time | |
| alias ltr="ls -Altrh" # Sort by time (reverse) | |
| alias lss="ls -AFlSh" # Sort by size |