Skip to content

Instantly share code, notes, and snippets.

View je4npw's full-sized avatar
:shipit:
Working from home

Je4nPw je4npw

:shipit:
Working from home
View GitHub Profile
(async function(){
const UNFOLLOW_LIMIT = 800
const delay = (ms) => new Promise(_ => setTimeout(_, ms))
const findButton = (txt) => [...document.querySelectorAll("button").entries()].map(([pos, btn]) => btn).filter(btn => btn.innerText === txt)[0]
console.log("Start")
for (let i = 0; i < UNFOLLOW_LIMIT; i++) {
const $next = findButton("Seguindo")
if (!$next) { continue }
$next.scrollIntoViewIfNeeded()
@je4npw
je4npw / Calcula.java
Created October 26, 2024 18:42
Trabalho para portfólio de Programação Orientada a Objetos Unopar Ciências da Computação 4⁰ Semestre
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
*/
package com.mycompany.calcula;
import java.util.Scanner;
/**
*
@je4npw
je4npw / avl.cpp
Last active October 9, 2024 23:39
Algoritmo em C++ para relatório de aula prática ALGORITMOS E ESTRUTURA DE DADOS AVANÇADO Anhanguera
// Para compilar:
// g++ -o avl avl.cpp
// Para executar:
// chmod +x avl
// ./relatorio1
// retorna a saída das movimentações em nodes após os insert e remove na árvore avl
#include <iostream>
#include <algorithm>
using namespace std;
@je4npw
je4npw / presentation.sh
Last active August 4, 2023 13:00
Toogle presentation mode in XFCE4 or returns the actual state of presentation mode
#!/bin/bash
##
# Checagem e toogle de modo de apresentação XFCE4
# Criado por Je4nPw
#
# Copie esse script para /usr/local/bin
# Faça executável com chmod +x
##
@je4npw
je4npw / trein-307.cpp
Last active May 7, 2023 06:16
trein-307.cpp
#include <fstream>
#include <iostream>
#include <vector>
using namespace std;
int main()
{
string line_passwd, line_group;
#include <fstream>
#include <vector>
#include <string>
#include <sys/stat.h>
#include <filesystem>
using namespace std;
int main()
{
@je4npw
je4npw / uninstallRoundCloud.sh
Created April 27, 2022 00:40
Script to remove/uninstall RunCloud from your server
# What a surprise, there is no official Runcloud uninstallation script for your server,
# you can see it at https: //runcloud.io/docs/guide/server-management/delete-server
# they say "To completely uninstall RunCloud, you must reformat your server. We do not have an uninstallation script."
#This script may help, no need to describe every step the echos say it all
#!/bin/bash
echo "Removing runcloud user from system"
sudo userdel -r runcloud