Skip to content

Instantly share code, notes, and snippets.

View PerpetualWar's full-sized avatar

Srđan Međo PerpetualWar

  • Sarajevo, BiH
View GitHub Profile
@PerpetualWar
PerpetualWar / copy-dirs-without.js
Created April 18, 2023 13:20
copy dirs without specific dir, namely .git or .node_modules
const { promises: fsPromises } = require('fs');
const path = require('path');
async function copyDirsWithout(source, destination, regex) {
const folderName = new RegExp(regex);
try {
console.log(`Copying from "${source}" to "${destination}"...`);
await fsPromises.cp(source, destination, {
@PerpetualWar
PerpetualWar / gist:175cd7e45e012ad079411f2c26e752bf
Created September 17, 2019 08:58 — forked from CristinaSolana/gist:1885435
Keeping a fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@PerpetualWar
PerpetualWar / .prettierrc
Last active June 30, 2019 08:21
My prettier config
{
"printWidth": 80,
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"jsxSingleQuote": false,
"bracketSpacing": true,
"jsxBracketSameLine": false,
1
@PerpetualWar
PerpetualWar / df
Last active June 24, 2019 19:37
dfdf
df
@PerpetualWar
PerpetualWar / Stuff
Last active June 25, 2019 15:15
121`2 48ouihuorhh uihuhdfuoidsh f ouhoduifhjos fiuohfo uh fufh u uh dofh h soudofiushd uif i if siuh df s hdfiu siudh fisuh dfhsihf sd fi shdf sf sh fish fhsd hfuish fsh duhf us dfhu sfh u hfujhsf
Hh
@PerpetualWar
PerpetualWar / new4
Last active June 24, 2019 19:43
SOme long description goes here about dunno what but needs to be done so lets do it hell yeah
34234234
div slkjhflsflslfjlsdkjflksdjflk
@PerpetualWar
PerpetualWar / ghjg
Last active June 23, 2019 11:41
htttttt22
h
@PerpetualWar
PerpetualWar / hj
Last active June 23, 2019 11:40
hjttttt44
hj