Skip to content

Instantly share code, notes, and snippets.

View RoyTakanen's full-sized avatar
👋
Hi there

Roy Takanen RoyTakanen

👋
Hi there
  • Finland
  • 14:14 (UTC +03:00)
View GitHub Profile
@Software-Noob
Software-Noob / migrate-pterodactyl.md
Last active July 26, 2024 08:19
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
@yuna0x0
yuna0x0 / pve_xtermjs_for_ubuntu_vm.txt
Last active June 23, 2024 14:56
Proxmox VE xterm.js (Serial Terminal) for Ubuntu VM
1. Add a virtual serial port to the VM using PVE Web GUI and restart the VM
2. Enable and start the virtual serial port on VM, change tty number as needed (Reference: https://askubuntu.com/a/621209/838946)
$ sudo systemctl enable serial-getty@ttyS0.service
$ sudo systemctl start serial-getty@ttyS0.service
3. Done! You can now select xterm.js in the PVE Web GUI
@unixfox
unixfox / readme.md
Last active July 2, 2024 07:51
How to get IPv4 connectivity on an IPv6 only VPS

Some hosting providers like scaleway allows to remove the IPv4 from the VPS in order to save 1€/month but doing this will result in losing connectivity to the "IPv4 world".
Or you may have ordered a VPS that only has IPv6 connectivity and you want to access to a resource only accessible from the "IPv4 world".
Here is how to gain your access back to the "IPv4 world".

Change your name servers(s) to DNS64 name servers(s)

Note: You may deploy your own DNS64 & NAT64 server on a separate server by following this tutorial (untested): https://packetpushers.net/nat64-setup-using-tayga/.
Note²: You may find a explanation of what is NAT64 and DNS64 on Wikipedia.

  1. Choose a/multiple DNS64 public server(s) that has/have its own NAT64 public service from this list:
@devops-school
devops-school / docker-volume-size-limit.txt
Created May 21, 2020 11:13
How to specify the size limit while creating the docker volume?
# docker -v
Docker version 19.03.9, build 9d988398e7
# docker volume create -h
Flag shorthand -h has been deprecated, please use --help
Usage: docker volume create [OPTIONS] [VOLUME]
Create a volume
@RoyTakanen
RoyTakanen / proxy.js
Created March 4, 2020 09:10
Http proxy Node:JS:llä 15 rivissä koodia
const http = require('http'); //Otetaan http lisäosa käyttöön
http.createServer(function (req, res) { //Luodaan palvelin vastaanottamaan pyyntöjä
http.get(req.url, (vastaus) => { //Tehdään pyyntö perustuen käyttäjän luoman pyynnön sisältävään urliin
let data = ''; //Luodaan vain tälle lohkolle oma data muuttuja
vastaus.on('data', (osio) => { //Aina kun urlista tulee dataa laitetaan se data muuttujaan
data += osio;
});
vastaus.on('end', () => { //Kun datan tulo loppuu lähetetään http palvelimen avulla data. Säästetään tilaa käyttämällä vain res.endiä eikä res.writeä ja res.endiä
res.end(data);
@rordi
rordi / root-password-MariaDB-docker-compose.md
Last active July 12, 2024 13:18
Change root password in MariaDB Docker container running with docker-compose

Change root password in MariaDB Docker container running with docker-compose

Override the entrypoint in docker-compose.yml for the MariaDB Docker container by adding:

entrypoint: mysqld_safe --skip-grant-tables --user=mysql

The start up the Docker Compose stack:

$> docker-compose up -d
@RoyTakanen
RoyTakanen / index.html
Created January 24, 2020 05:34
Popop modaali 100% leveys ja korkeus jQuery
<!DOCTYPE html>
<html lang="fi" dir="ltr">
<head>
<meta charset="utf-8">
<title>Popup modaali</title>
<style media="screen">
body {
margin: 0;
}
@RoyTakanen
RoyTakanen / ristinolla_botti.py
Last active March 4, 2020 09:22
Ristinolla bottia vastaan
import random
kohdat = [-1,-1,-1,-1,-1,-1,-1,-1,-1,]
vuoro = 0;
print("+------------------+")
print("|  OHJEET |")
print("|Siirtojen muoto: |")
print("|1 = kohta 1 |")
print("|4 = kohta 4 |")
@sundowndev
sundowndev / GoogleDorking.md
Last active July 28, 2024 05:45
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@r-malon
r-malon / monokai.md
Created February 27, 2019 19:15
Monokai colors in RGB and HEX format, taken from Sublime Text 3

Monokai Colors in RGB and HEX format


  • Background: (46, 46, 46); #2e2e2e
  • Comments: (121, 121, 121); #797979
  • White: (214, 214, 214); #d6d6d6
  • Yellow: (229, 181, 103); #e5b567
  • Green: (180, 210, 115); #b4d273
  • Orange: (232, 125, 62); #e87d3e
  • Purple: (158, 134, 200); #9e86c8