Skip to content

Instantly share code, notes, and snippets.

@ThisIsRigged
ThisIsRigged / paymenter_uninstall
Last active May 4, 2024 18:31
Paymenter Remove Script
#!/bin/bash
# Function to uninstall Paymenter
uninstall_paymenter() {
# Stop Nginx
sudo systemctl stop nginx
# Stop Queue Worker
sudo systemctl stop paymenter.service
#!/bin/bash
# Function to install SSL using Certbot
install_ssl() {
echo "Installing Certbot and configuring SSL for $1..."
apt -y install certbot python3-certbot-nginx
certbot --nginx -d $1
echo "SSL configured successfully."
}
@kolayne
kolayne / hackerize_xs_decryptor.py
Last active May 4, 2024 18:31
Hackerize XS decoder
#!/usr/bin/python3
def decode(s):
alphabet = 'abcdefghijklmnopqrstuvwxyz'
hackerized = 'Λß↻Ð☰∲ç╫¡¿├↑ღ∏☐þ¶┏§⊥üƴ₪✕¥ᶾ'
ans = ''
for c in s:
try:
ans += alphabet[hackerized.index(c)]
except ValueError:
@eteubert
eteubert / wordpress-passwort-reset-unmultisite.php
Last active May 4, 2024 18:30
Multisite: Passwort Reset on Local Blog
<?php
/**
* Plugin Name: Multisite: Passwort Reset on Local Blog
* Plugin URI: https://gist.github.com/eteubert/293e07a49f56f300ddbb
* Description: By default, WordPress Multisite uses the main blog for passwort resets. This plugin enables users to stay in their blog during the whole reset process.
* Version: 1.0.0
* Author: Eric Teubert
* Author URI: http://ericteubert.de
* License: MIT
*/
@jagrosh
jagrosh / Github Webhook Tutorial.md
Last active May 4, 2024 18:30
Simple Github -> Discord webhook

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings Settings
@alexedwards
alexedwards / Makefile
Last active May 4, 2024 18:29
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help
@nikhita
nikhita / minikube-upgrade.md
Created February 12, 2020 17:22
How to upgrade minikube to the latest version in Linux.

Find the current version

$ minikube version
minikube version: v1.7.1

Check if there are newer versions available

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 4, 2024 18:28
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@wojteklu
wojteklu / clean_code.md
Last active May 4, 2024 18:24
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@devfraga
devfraga / readme.md
Last active May 4, 2024 18:23
README para os projetos pessoais

Logo do projeto

Nome do Projeto

Uma breve descrição do projeto aqui.

🔥 Introdução

Coloque aqui as instruções e quais são os objetivos desse projeto, funcionalidades.