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
[Unit] | |
Description=%i service with docker compose | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Type=oneshot | |
Environment="DOCKER_CLIENT_TIMEOUT=120" | |
Environment="COMPOSE_HTTP_TIMEOUT=120" | |
RemainAfterExit=true |
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
version: "3" | |
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
services: | |
pihole: | |
container_name: pihole | |
image: pihole/pihole:latest | |
dns: | |
- 8.8.8.8 | |
ports: |
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
import sys | |
from pynput.keyboard import Key, Listener | |
count = 0 | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' |
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
server { | |
listen 80; | |
listen [::]:80; | |
root /var/www/subdomain.doamin.TLD/html; | |
index index.html index.htm index.nginx-debian.html; | |
server_name subdomain.doamin.TLD; | |
return 302 https://$server_name$request_uri; | |
} |
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
import javax.swing.*; | |
import javax.swing.UIManager; | |
import javax.swing.border.*; | |
import java.awt.Font; | |
import java.security.SecureRandom; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.MouseAdapter; | |
import java.awt.event.MouseEvent; | |
import java.awt.datatransfer.*; |
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
package modules | |
import ( | |
"fmt" | |
"github.com/PaulSonOfLars/gotgbot" | |
"github.com/PaulSonOfLars/gotgbot/ext" | |
"go.uber.org/zap" | |
"go.uber.org/zap/zapcore" | |
"html" | |
"log" |
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
[Unit] | |
Description=Your service description | |
[Service] | |
Restart=always | |
WorkingDirectory=/home/user/to/path | |
ExecStartPre=/usr/bin/whatever/app command to execute before actual command | |
ExecStart=/usr/bin/whatever/app main command | |
[Install] |
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 | |
#Add your username here | |
user=smartass08 | |
#Adds your uid's to subuid and subgid | |
sudo touch /etc/subuid && sudo touch /etc/subgid | |
uid=$(id -u $user) | |
sudo usermod -v $((uid+200000))-$((uid+200000+65535)) -w $((uid+200000))-$((uid+200000+65535)) $user |
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
import ( | |
"github.com/PaulSonOfLars/gotg_md2html" | |
) | |
func MakeKeyboards(button []tg_md2html.Button) [][]ext.InlineKeyboardButton { | |
var allbuttons [][]ext.InlineKeyboardButton | |
for _, v := range button { | |
var button1 []ext.InlineKeyboardButton | |
tempbtn := ext.InlineKeyboardButton{ |
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
var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
func randSeq(n int) string { | |
b := make([]rune, n) | |
for i := range b { | |
b[i] = letters[rand.Intn(len(letters))] | |
} | |
return string(b) | |
} |
NewerOlder