This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { IgApiClient } = require("instagram-private-api") | |
const { withRealtime } = require("instagram_mqtt") | |
const fs = require("fs") | |
const INSTAGRAM_USERNAME = "" | |
const INSTAGRAM_PASSWORD = "" | |
const SESSION_FILE_PATH = "./session.json" | |
const SEQ_ID_FILE_PATH = "./seq_id.txt" | |
const formatMessage = (message) => ({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { promisify } = require('util') | |
const { resolve } = require('path') | |
const fs = require('fs') | |
const readdir = promisify(fs.readdir) | |
const stat = promisify(fs.stat) | |
const sharp = require("sharp") | |
const replaceColor = require('replace-color') | |
async function process(path) { | |
if (path.includes("cards-raw")) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fira Code | |
Curl | |
VSCode | |
Git | |
Oh My Zsh | |
NVM | |
ntl (npm) | |
Node | |
Docker | |
DockerCompose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🏆 1,457 Contributions in year 2021 | |
📦 Used 375 MB in GitHub's Storage | |
📜 17 Public Gists | |
🔑 0 Public Keys | |
🚫 Not opted to Hire |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo add-apt-repository universe | |
sudo apt-get update | |
sudo apt install fonts-firacode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source Base Path | |
export ZSH="/home/guilhermebkel/.oh-my-zsh" | |
# Theme | |
ZSH_THEME="robbyrussell" | |
# Plugins | |
plugins=( | |
git | |
nvm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
name = Guilherme Mota | |
email = guilhermebromonschenkel@gmail.com | |
[core] | |
editor = code --wait | |
[push] | |
followTags = true | |
[alias] | |
# Shows a status of the current modifications you did | |
s = !git status -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
free -h && sudo sysctl -w vm.drop_caches=3 && sudo sync && echo 3 | sudo tee /proc/sys/vm/drop_caches && free -h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
du -hsc * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
-> Supposing there's a table called 'sel_collections' and a column 'info' with the following format: | |
{ "total_pictures": 2, "total_size": 100 } | |
-> After making the command below, the value inside this column will be: | |
{ "total_pictures": 3, "total_size": 100 } | |
*/ | |
UPDATE | |
sel_collections |
NewerOlder