Skip to content

Instantly share code, notes, and snippets.

View dyanakiev's full-sized avatar
🏠
Working from home

Dimitar Yanakiev dyanakiev

🏠
Working from home
  • Varna, Bulgaria
  • 21:30 (UTC +02:00)
View GitHub Profile
<script data-turbo-eval="false">
document.addEventListener('turbo:before-render', () => {
let permanents = document.querySelectorAll('[data-turbo-permanent]')
let undos = Array.from(permanents).map(el => {
el._x_ignore = true
return () => {
delete el._x_ignore
}
@aikar
aikar / AsyncDbQueue.java
Last active October 30, 2024 19:21
Empire Minecraft DB Wrapper - EmpireDb - Released as MIT - Updated 6/24/2017 with less EMC related code. depends on https://github.com/aikar/minecraft-timings/
package com.empireminecraft.systems.db;
import com.empireminecraft.util.Log;
import java.sql.SQLException;
import java.util.Queue;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
@bocharsky-bw
bocharsky-bw / upgrade.sh
Last active October 17, 2024 09:02
Shell Script for Upgrade Ubuntu via APT in one step
#!/bin/bash
TEXT_RESET='\e[0m'
TEXT_YELLOW='\e[0;33m'
TEXT_RED_B='\e[1;31m'
sudo apt-get update
echo -e $TEXT_YELLOW
echo 'APT update finished...'
echo -e $TEXT_RESET