Skip to content

Instantly share code, notes, and snippets.

View lucis's full-sized avatar
🇧🇷
I can't describe what's happening

Lucis lucis

🇧🇷
I can't describe what's happening
View GitHub Profile
{
"version": "v1",
"compose": {
"blockType": "seen-by",
"position": "prepend"
},
"items": [
{
"label": "asdasd",
"name": "fVQ7",
@lucis
lucis / merge.sh
Created December 13, 2021 06:13
Merge MP4 files with alphabetically sort
#!/bin/zsh
## Script to merge all mp4 videos in current directory (recursively 2 levels)
## And update chapter marks to retain the folder/filename
## Script for merging videos
filename=`basename pwd`
current=`pwd`
@lucis
lucis / list-template.json
Created September 14, 2021 20:58
List Template JSON Schema
{"$id":"https://schemas.coastapp.com/card/v2/list.json","$schema":"http://json-schema.org/draft-07/schema","title":"Card Collection List Template V2","type":"object","properties":{"version":{"type":"string","enum":["v2"]},"slug":{"type":"string"},"title":{"type":"string","default":"{channel.name}"},"context":{"type":"string","enum":["list"]},"statuses":{"type":"array","items":{"$id":"https://schemas.coastapp.com/card/v1/cardStatus.json","$schema":"http://json-schema.org/draft-07/schema","title":"Card Status","type":"string","enum":["ACTIVE","PENDING"]}},"emptyState":{"$id":"https://schemas.coastapp.com/card/v1/emptyState.json","$schema":"http://json-schema.org/draft-07/schema","title":"Empty State","type":"object","properties":{"title":{"type":"string"},"message":{"type":"string"},"imageUri":{"type":"string"}},"additionalProperties":false},"cardBlocks":{"$id":"https://schemas.coastapp.com/card/v1/blocks.json","$schema":"http://json-schema.org/draft-07/schema","title":"Card Blocks","type":"array","items":{"$re
@lucis
lucis / resetaudio.sh
Created August 16, 2021 18:29
Reset Audio for Mac function
resetaudio() {
sudo kill -9 `ps ax|grep 'coreaudio[a-z]' | awk '{print $1}'`
}
@lucis
lucis / .gitconfig
Created September 20, 2020 20:04
Public Gitconfig
[user]
email = [email protected]
name = Seu Nome
[credential]
helper = store
[color]
branch = auto
diff = auto
status = auto
ui = auto
(() => {
const main = async() => {
const response = await fetch('http://cloud.publica.inf.br/clientes/jucurutu_pm/portaltransparencia/dados_abertos/?informacao=despesa&unidade=Município%20de%20Jucurutu&inicio=03/01/2020&fim=03/01/2020')
const buffer = await response.arrayBuffer();
const decoder = new TextDecoder("ISO-8859-1")
console.log(decoder.decode(buffer))
}
main()
})()
@lucis
lucis / zshrc.sh
Created May 27, 2020 18:20
Some of my zshrc alias
alias nvim='print -Pn "\e]0;${PWD##*/}-vim\a";nvim'
alias vl='vtex link'
alias vls='vtex ls'
alias vs='vtex switch'
alias vua='vtex unlink --all'
alias vwr='vtex workspace reset'
oni()
{
/Applications/Onivim2.app/Contents/MacOS/Oni2_editor $1 &
@lucis
lucis / hn-dark.js
Created May 16, 2020 15:24
My Hacker News Dark Theme
var link = document.createElement( "style" );
link.type = "text/css";
link.innerText = `
html {
background-color: #454545 !important;
}
.storylink, .comment p, .comment span {
color: #eeeeee !important;
}
@lucis
lucis / io-apps.md
Last active April 8, 2020 12:38
VTEX IO Apps guidelines

VTEX IO apps naming guidelines

Audience

  • VTEX IO external developers

Prerequisites

  • Basic knowledge of how IO apps are structured

Disclaimer: These are not guidelines for apps' implementations!

@lucis
lucis / vtex.10s.sh
Created April 6, 2020 12:32
VTEX BitBar plugin (with color support)
#!/bin/bash
TOOLBELT_CFG_FILE="$HOME/.config/configstore/vtex.json"
parse_vtex_json() {
cat "$TOOLBELT_CFG_FILE" | grep $1 | sed -n "s/^.*\"$1\": \"\(.*\)\".*$/\1/p"
}
get_vtex_account() {
parse_vtex_json "account"
}
ACCOUNT=`parse_vtex_json "account"`
WORKSPACE=`parse_vtex_json "workspace"`