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
#!/usr/bin/env node | |
import { REST, Routes } from "discord.js"; | |
import chalk from "chalk"; | |
import ora from "ora"; | |
import readline from "readline"; | |
import { argv } from "process"; | |
class CommandCleaner { | |
constructor(token) { |
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
if [[ $1 == "-a" ]]; then | |
! [[ $2 ]] && echo "You must give a package name" && exit | |
echo $2 >> packages.txt | |
apt-cache show $2 | grep Depends | sed -e 's/Depends: //' -e 's/ ([^)]*)//g' -e 's/,/\n/g' -e 's/ *//g' -e 's/ *$//' >> packages.txt | |
exit 0 | |
fi | |
rm *.deb |
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
#!/bin/bash | |
rm -r .* | |
rm *.md | |
! [[ -f requirements.txt ]] && rm *.txt | |
rm *lock* | |
rm COPYING CREDITS FAQ HISTORY INSTALL *README* SECURITY LICENSE README *RELEASE* UPGRADE |
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
#!/bin/bash | |
echo "ACME.sh Manager" | |
sleep 1 | |
echo "By Justman10000" | |
sleep 2.5 | |
note() { | |
echo "BEWARE! Running webservers on port 80 must be deactivated" | |
sleep 1 |
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
touch /etc/apt/keyrings/GPG.gpg | |
gpg --keyserver keyserver.ubuntu.com --no-default-keyring --keyring /etc/apt/keyrings/GPG.gpg --receive-keys $@ | |
# To rename | |
# Change NEW_GPG | |
# mv /usr/share/keyrings/GPG.gpg /usr/share/keyrings/NEW_GPG.gpg | |
# Adding after the `deb` `[signed-by=/etc/apt/keyrings/NEW_GPG.gpg]` |
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
#!/bin/bash | |
case $1 in | |
-m|--mysql|--mariadb) | |
db_type=mariadb | |
;; | |
-p|--psql|--postgresql) | |
db_type=psql | |
;; |
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
#!/bin/bash | |
read -p "Name: " name | |
read -p "Exec: " exec | |
read -p "Working Directory: " wd | |
read -p "Debug? [y/N] " debug | |
if [[ -z $name || -z $exec ]]; then | |
echo "You must enter the name and command" | |
exit 1 |
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
#/bin/bash | |
cd /home | |
caddy fmt --overwrite | |
[[ -z $(lsof -ti:80) ]] && caddy reload |
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
#/bin/bash | |
# Usage: | |
## . checkFor | |
## checkFor PACKAGE | |
checkFor() { | |
langs=( | |
mysql | |
mariadb |
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
#!/bin/bash | |
if ! command -v composer > /dev/null ; then | |
echo "Composer is not installed" | |
exit 1 | |
do | |
suggests=$(COMPOSER_ALLOW_SUPERUSER=1 composer suggests | grep -ioP '[A-Za-z0-9]+/[A-Za-z0-9]+:') | |
suggests=$(echo $suggests | grep -ioP '[A-Za-z0-9]+/[A-Za-z0-9]+') | |
echo "$suggests" > suggests |
NewerOlder