Skip to content

Instantly share code, notes, and snippets.

View CyberFlameGO's full-sized avatar
💠
Hey, I’m Cyber/Aaron.

CyberFlame CyberFlameGO

💠
Hey, I’m Cyber/Aaron.
View GitHub Profile
@CyberFlameGO
CyberFlameGO / README.md
Created July 21, 2022 18:32 — forked from Prof-Bloodstone/README.md
Spigot restart script issues and solution

⚠️ This guide is for self-managed servers. If you rented a server and got a website through which you manage your server - you are on so called shared-hosting and this guide won't work for you.

What is spigot restart script

Spigot added a feature allowing for server to automatically restart on crashes, as well as when authorized user executes /restart command.

How it works

#!/usr/bin/env bash
# NOTE: We use bash for better readability and error handling here
# but it's not hard to make it work with regular shell
set -euo pipefail
# SETTINGS
# Path to file used to communicate from restart script
readonly restart_flag='.restart_flag'
# How long (in seconds) to wait before restarting
readonly restart_delay=10
/*
* Copyright (c) 2016. Starlis LLC / dba Empire Minecraft
*
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval
*
*/
package com.empireminecraft.util.serialization;
import com.empireminecraft.util.ItemUtil;
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@CyberFlameGO
CyberFlameGO / mappings.json
Created November 15, 2023 11:31 — forked from Nitroholic/mappings.json
Profile Mappings
{
"achievement_spawned_island_types" : "player_data.achievement_spawned_island_types",
"active_effects" : "player_data.active_effects",
"autopet" : "pets_data.autopet",
"backpack_contents" : "inventory.backpack_contents",
"backpack_icons" : "inventory.backpack_icons",
"bank_account" : "profile.bank_account",
"bank_history" : "profile.bank_history",
"candy_inventory_contents" : "shared_inventory.candy_inventory_contents",
"coin_purse" : "currencies.coin_purse",
@CyberFlameGO
CyberFlameGO / index.html
Created June 5, 2024 22:11 — forked from bignutty/index.html
discord activity that gets your ip address example
<!DOCTYPE html>
<html>
<head>
<title>activister</title>
<link rel="shortcut icon" type="image/x-icon" href="https://bignutty.gitlab.io/webstorage0/assets/93e392f98df122bc1c65801ddfd49472.ico">
<meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">
</head>
<body>
<style>*{margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px}*>p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}*>img{width:100%;max-width:100%;pointer-events: none;}@media (prefers-color-scheme:dark){html{background-color:#131418;color:#dfdfdf}a{color:#fff}a:visited{color:#cc85e6}ins{color:#999}}</style>
<style>p>img{border-radius:24px;}.links{display:flex;justify-content:space-between;}.link{display:flex;gap:5px}.link img{width:1.5em}</style>
@CyberFlameGO
CyberFlameGO / index.html
Created June 6, 2024 16:28 — forked from markh-discord/index.html
Electron blanking reproduce
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'">
<title>Hello World!</title>
</head>
<body>
<h1>Hello World!</h1>