Skip to content

Instantly share code, notes, and snippets.

View cbueno's full-sized avatar

Cristóferson Bueno cbueno

  • Atlants Animes
  • Belo Horizonte, Brasil
  • X @cbueno
View GitHub Profile
@bobbyflowstate
bobbyflowstate / postToInstagram.js
Last active March 25, 2025 21:33
Automated Instagram Poster — Node.js + Dropbox + instagram-private-api
/**
* 🤖 Automated Instagram Poster — Node.js + Dropbox + instagram-private-api
*
* This script:
* - Pulls a random image from your Dropbox `/Public` folder
* - Posts it to Instagram using instagram-private-api
* - Adds a random emoji-only caption
* - Deletes the file from Dropbox after posting
* - Runs daily with PM2 cron scheduling
*
@montasaurus
montasaurus / llmc.sh
Last active April 1, 2025 18:40
AI Shell Command Generator
llmc() {
local system_prompt='Output a command that I can run in a ZSH terminal on macOS to accomplish the following task. Try to make the command self-documenting, using the long version of flags where possible. Output the command first enclosed in a "```zsh" codeblock followed by a concise explanation of how it accomplishes it.'
local temp_file=$(mktemp)
local capturing=true
local command_buffer=""
local first_line=true
local cleaned_up=false # Flag to indicate whether cleanup has been run
cleanup() {
# Only run cleanup if it hasn't been done yet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@koush
koush / .bash_profile
Last active February 23, 2022 23:54
Put this in your .bash_profile(s) to open VS Code on your local machine while SSH'd into a remote machine.
# this needs to be on the *remote* machine.
if [ ! -z "$SSH_CLIENT" ]
then
function code() {
local ssh_client_host=$(echo $SSH_CLIENT | cut -d ' ' -f1)
if [ -z "$1" ]
then
local argpath="."
@torresashjian
torresashjian / linux-ubuntu-install-wifi-drivers
Last active March 19, 2025 21:34
How to install Broadcom bcm43602 Drivers on Ubuntu Linux
sudo apt-get purge bcmwl-kernel-source
sudo apt update
sudo update-pciids
sudo apt install firmware-b43-installer
sudo reboot #note that this will restart your computer
sudo iwconfig wlp3s0 txpower 10dBm
#sudo iwconfig wlp2s0 txpower 10dBm
@noinarisak
noinarisak / Dockerfile
Last active March 12, 2025 01:53
VsCode devcontainer development setup for Java 8
#-------------------------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
#-------------------------------------------------------------------------------------------------------------
FROM openjdk:8-jdk
# This Dockerfile adds a non-root user with sudo access. Use the "remoteUser"
# property in devcontainer.json to use it. On Linux, the container user's GID/UIDs
# will be updated to match your local UID/GID (when using the dockerFile property).
@krobertson
krobertson / parts.md
Last active March 8, 2023 05:43
Voron 2.4 Printed Parts List

Voron 2.4 Printed Parts List

Parts for: Electronics_Compartment/DIN_Brackets

  [ ] [ ]     duet_duex_bracket_x2.stl
  [ ]         lrs_psu_bracket_clip.stl
  [ ] [ ] [ ] pcb_din_clip_x3.stl
  [ ] [ ]     ramps_bracket_x2.stl
@igorsgm
igorsgm / Criar novo Usuário e Schema.sql
Created August 13, 2018 16:53
#Criar novo Usuário e Schema no Banco de Dados Oracle
CREATE USER NOME_USUARIO_AQUI IDENTIFIED BY SENHA_USUARIO_AQUI DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP ACCOUNT UNLOCK;
GRANT CREATE SESSION TO NOME_USUARIO_AQUI;
GRANT CREATE TABLE TO NOME_USUARIO_AQUI;
ALTER USER NOME_USUARIO_AQUI QUOTA UNLIMITED ON USERS;
GRANT EXP_FULL_DATABASE TO NOME_USUARIO_AQUI;
GRANT CONNECT TO NOME_USUARIO_AQUI;
GRANT create session, alter session TO NOME_USUARIO_AQUI;
GRANT create procedure to NOME_USUARIO_AQUI;
GRANT execute any procedure to NOME_USUARIO_AQUI;
GRANT create table TO NOME_USUARIO_AQUI;
@ahmadawais
ahmadawais / zshrc.sh
Created February 26, 2018 15:36
MAC: Backup script
# Rsync based backup for Mac.
# .
# Usage: bk ~/path/to/backup/
# E.g. bk ~/Documents/Audio will create /Volumes/AhmadAwais.com/Z-BACKUPS/Users/Documents/Audio backup.
function bk() {
# Halt the script on any errors.
set -e
echo "-"
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 20, 2025 23:02
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security