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
@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