Skip to content

Instantly share code, notes, and snippets.

View sistematico's full-sized avatar
🏠
Working from home

Lucas Saliés Brum sistematico

🏠
Working from home
View GitHub Profile
@sistematico
sistematico / nest.yml
Last active January 21, 2023 10:50
Github Action Vite + Vue + Nest
name: NestJS Deploy
on:
push:
branches: [ api ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
@sistematico
sistematico / walk.js
Created December 19, 2022 02:20
Directory Structure to Object in JavaScript using Node.js
// From original answer here: https://stackoverflow.com/a/18934385/1844007
// ESM Version
// Example FileTree: ./json/2022/12/18/data.json
import fs from 'fs'
let filetree = {}
const walkDirectory = (dir, obj) => {
const files = fs.readdirSync(dir)
@sistematico
sistematico / README.md
Last active December 14, 2022 09:33
Node.js scaffolding

🌎 Repo Name

Repo desc...

🤖 CI/CD

CD

Ajude

@sistematico
sistematico / dwm-hideindicators-6.4.diff
Created October 24, 2022 03:30
Remove active tag indicator on dwm 6.4
diff --git a/dwm-orig/dwm.c b/dwm/dwm.c
index e5efb6a..d9fe250 100644
--- a/dwm-orig/dwm.c
+++ b/dwm/dwm.c
@@ -725,10 +725,6 @@ drawbar(Monitor *m)
w = TEXTW(tags[i]);
drw_setscheme(drw, scheme[m->tagset[m->seltags] & 1 << i ? SchemeSel : SchemeNorm]);
drw_text(drw, x, 0, w, bh, lrpad / 2, tags[i], urg & 1 << i);
- if (occ & 1 << i)
- drw_rect(drw, x + boxs, boxs, boxw, boxw,
@sistematico
sistematico / README.md
Last active May 12, 2023 08:42
Vite Github Pages

🌎 Repo Name

Repo desc...

🤖 CI/CD

CD

@sistematico
sistematico / gh-pages-deploy.md
Created July 22, 2022 01:25 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@sistematico
sistematico / certbot setup guideline.md
Created July 20, 2022 23:09 — forked from AoiYamada/certbot setup guideline.md
Certbot auto renew SSL guideline for CentOS 6, 7

Certbot auto renew SSL guideline for CentOS 6, 7

Sign a ssl cert and renew by cronjob.

Prerequisite

softwares:

  • wget
  • nginx
  • nano
@sistematico
sistematico / .env
Last active September 27, 2022 17:36
Laravel + Vite + Inertia.js Scaffolding
APP_NAME=Laravel
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
@sistematico
sistematico / background-music.sh
Created April 16, 2022 08:25
FFMpeg Snippets
#!/usr/bin/env bash
#
# Arquivo: background-music.sh
#
# Feito por Lucas Saliés Brum a.k.a. sistematico, <lucas@archlinux.com.br>
#
# Criado em: 15/02/2021 03:46:17
# Última alteração: 15/02/2021 03:46:12
#
# Fonte: https://stackoverflow.com/a/11783474/1844007