Skip to content

Instantly share code, notes, and snippets.

View wertyoo's full-sized avatar

Nicolas Copia wertyoo

View GitHub Profile
@mathisGarberg
mathisGarberg / 2020-angular-structure
Last active February 3, 2024 15:37
angular folder structure 2020
∇ app
∇ core
∇ guards
auth.guard.ts
module-import.guard.ts
no-auth.guard.ts
∇ interceptor
token.interceptor.ts
error.interceptor.ts
∇ services
@wertyoo
wertyoo / 01.bash_shortcuts_v2.md
Last active June 14, 2019 18:18 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Commands

File Management

Delete folder and all contents with no prompts

rm -rf mydir
@wertyoo
wertyoo / git-cheat-sheet.md
Last active July 16, 2020 14:59
All of the git commands I cannot remember... and the ones I can ...for good measure.

GIT Cheat Sheet

NOTE: All commands below assume use of Git bash if on Windows

SSH Keys

  • List current keys
ls -al ~/.ssh
@midnightcodr
midnightcodr / main.js
Created December 9, 2017 18:06
node-fetch with retry
const fetch = require('node-fetch')
const delay = (ms) => {
return new Promise(resolve => {
setTimeout(() => {
resolve()
}, ms)
})
}
const retryFetch = (url, fetchOptions={}, retries=3, retryDelay=1000) => {
@MoOx
MoOx / README.md
Last active May 11, 2023 13:59
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active June 28, 2024 19:55
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@oliveratgithub
oliveratgithub / Batch File Rename.scpt
Last active March 2, 2024 17:05
Simple AppleScript to easily batch rename multiple files sequentially. GUI asks user to select files and input a name before renaming.
-- This code comes from https://gist.github.com/oliveratgithub/
-- Open in AppleScript Editor and save as Application
-- ------------------------------------------------------------
--this is required to break the filename into pieces (separate name and extension)
set text item delimiters to "."
tell application "Finder"
set all_files to every item of (choose file with prompt "Choose the Files you'd like to rename:" with multiple selections allowed) as list
display dialog "New file name:" default answer ""
set new_name to text returned of result
--now we start looping through all selected files. 'index' is our counter that we initially set to 1 and then count up with every file.
@hofmannsven
hofmannsven / README.md
Last active June 17, 2024 10:34
Git CLI Cheatsheet
{
"IAB1": "Arts & Entertainment",
"IAB1-1": "Books & Literature",
"IAB1-2": "Celebrity Fan/Gossip",
"IAB1-3": "Fine Art",
"IAB1-4": "Humor",
"IAB1-5": "Movies",
"IAB1-6": "Music",
"IAB1-7": "Television",
"IAB2": "Automotive",
i
me
my
myself
we
our
ours
ourselves
you
your