Skip to content

Instantly share code, notes, and snippets.

View dartokloning's full-sized avatar

Darto KLoning dartokloning

View GitHub Profile
@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active June 14, 2024 23:33
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.

VMP - A mod designed to improve general server performance at high playercount.

@nhtua
nhtua / 00.install-android-sdk.sh
Last active May 29, 2024 22:18
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@pabloab
pabloab / landscape-sysinfo-alternative.sh
Last active October 21, 2023 18:36
[landscape-sysinfo alternative ], more cross-linux
#!/bin/bash
# Simple motd script for any systemd Linux (tested on Debian)
# Inspiration: https://superuser.com/questions/919962/landscape-sysinfo-for-centos
# Inspiration 2: https://github.com/thusoy/headsup/blob/master/headsup.py
os-name=$()
os-kernel=$()
date-today=$()
system-load=$()
processes=$(cat /proc/loadavg | cut -d"/" -f2| cut -d" " -f1)
@shr00mie
shr00mie / letsencrypt_esxi.sh
Last active June 13, 2024 22:32
Let's Encrypt SSL for ESXi
#!/bin/bash
#
## -----------------------------=[ WARNING ]=-------------------------------- ##
#
# This script is now woefully out of date due to which accounts ESXi allows to
# ssh into the box as well as sticky folders/file flags.
# I've since ported the whole thing to python with a lot of bells and whistles
# and if i get around to making it public, i'll put a link here.
#
## -------------------------------=[ Info ]=--------------------------------- ##
@mrbar42
mrbar42 / README.md
Last active June 9, 2024 09:55
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@compermisos
compermisos / strong-passwords.php
Last active June 8, 2024 20:36 — forked from tylerhall/strong-passwords.php
A user friendly, strong password generator PHP function.
#!/usr/bin/php
<?PHP
// Generates a strong password of N length containing at least one lower case letter,
// one uppercase letter, one digit, and one special character. The remaining characters
// in the password are chosen at random from those four sets.
//
// The available characters in each set are user friendly - there are no ambiguous
// characters such as i, l, 1, o, 0, etc. This, coupled with the $add_dashes option,
// makes it much easier for users to manually type or speak their passwords.
//
@ricardozea
ricardozea / Smooth scroll to top of page.markdown
Last active May 12, 2024 12:12
Smooth scroll to top of page

Visit the new improved script here! Smooth scroll to top of page (Improved!)


Smooth scroll to top of page (Legacy!)

If you need a plain JavaScript function to add a smooth scrolling back to the top of the page, you can use this script.

  1. Add an id of "top" to the <body> tag. Like this: <body id="top">
  2. Add the onclick function to the link. Like this: <a href="#top" onclick="scrollToTop(); return false">Back to Top ↑</a>