Skip to content

Instantly share code, notes, and snippets.

View archiewald's full-sized avatar
🍅

Artur Kozubek archiewald

🍅
View GitHub Profile
@archiewald
archiewald / snippet.md
Created October 13, 2019 15:54
[start mongo] #node
@archiewald
archiewald / settings.json
Last active October 1, 2019 20:17
VSC user settings
{
"editor.gotoLocation.multiple": "goto",
"window.zoomLevel": 0,
"git.enableSmartCommit": true,
"workbench.iconTheme": "material-icon-theme",
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"editor.minimap.enabled": false,
"diffEditor.ignoreTrimWhitespace": true,
"workbench.editor.enablePreview": false,
@archiewald
archiewald / about.md
Last active September 14, 2019 09:13
[Model współbieżności, Event Loop] #javascript
@archiewald
archiewald / about.md
Last active August 12, 2019 08:11
[pomoarchidoro]
  • daily emails to remind you about stuff you did yesterday
@archiewald
archiewald / hello.sh
Created July 15, 2019 07:10
kill process on macos #terminal
lsof -i tcp:3000
kill -9 PID
@archiewald
archiewald / notes.md
Created June 17, 2019 06:22
rails app requirments
  • dockerised
  • basic CI set up
  • dev + prod
@archiewald
archiewald / script.bash
Created May 8, 2019 15:11
[guetlzify all the files in catalog] #terminal
for f in <src_folder>/*.jpg; do guetzli $f $f; done
@archiewald
archiewald / notes.md
Last active April 16, 2019 05:36
[Unix file permissions] #terminal
  • r read
  • w write
  • x execute

Broken into 4 sections

ls -l

- rwx r-- r--
@archiewald
archiewald / snippet.sh
Created March 31, 2019 10:49
[check dns record] #terminal
dig frontendtyped.com any +noall +answer
@archiewald
archiewald / pre-push.sh
Last active March 26, 2019 20:20
[warn pushing to protected branches] #git
!/bin/bash
protected_branches=('master' 'develop')
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
is_branch_protected=false;
for protected_branch in "${protected_branches[@]}"
do
if [ $protected_branch = $current_branch ]
then