Skip to content

Instantly share code, notes, and snippets.

View youhide's full-sized avatar
🫠

Youri T. K. K. Mattar youhide

🫠
View GitHub Profile
@youhide
youhide / build.yml
Created October 25, 2019 18:45
GitHub Actions - Build for Windows, MacOS, Linux and release on tag.
name: Node CI
on:
push:
tags:
- 'v*'
jobs:
upload-release:
@youhide
youhide / sphereServInfo.js
Last active December 6, 2019 13:42
Ultima Online Sphere Server Info Packet
'use strict'
const net = require('net')
module.exports = {
totalPlayers: function (loginserv, port = 2593) {
const client = new net.Socket()
client.on('close', () => {
@youhide
youhide / Delete NodeJS
Created April 1, 2019 21:02
How to uninstall NodeJS
Download NodeJS source...
./configure
and...
make uninstall
:)
@youhide
youhide / uobrlist
Last active June 2, 2021 16:41
UOBrasil SharD List
{
"shards": {
"0": {
"name": "HellFire",
"site": "www.hfshard.com.br",
"server": "Sphere",
"host": "hellfire.changeip.com",
"port": 2593
},
"1": {

UltimaPHP Muls List

  • tiledata.mul
  • staidxX.mul
  • staticsX.mul
  • mapdifX.mul
  • mapXLegacyMUL.uop
@youhide
youhide / uninstall-razer-synapse.sh
Created June 14, 2018 23:10 — forked from timotgl/uninstall-razer-synapse.sh
How to fully uninstall Razer Synapse 2 on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra) without using Razer's official uninstall tool
# How to uninstall Razer Synapse 2 ( https://www.razerzone.com/synapse-2 )
# on OS X (10.11-10.13) (El Capitan, Sierra, High Sierra)
# without using Razer's official uninstall tool.
# Tested on OS X 10.11.5 in July 2016.
# Edited with additional steps for later OS X versions,
# contributed by commenters on this gist.
# Step 1: In your terminal: stop and remove launch agents
launchctl remove com.razer.rzupdater
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// Choose either "stable" for receiving highly polished,
// or "canary" for less polished but more frequent updates
updateChannel: 'stable',
@youhide
youhide / subup
Created November 20, 2017 18:26
Update Git Submodules
git pull --recurse-submodules
git submodule update --remote --recursive
@youhide
youhide / add-crontab-via-cli
Last active August 16, 2017 18:07
Add crontab on the fly
crontab -l | { cat; echo "* * * * * myscript"; } | crontab -
OR
(crontab -l ; echo "* * * * * myscript")| crontab -
@youhide
youhide / restart-onload.sh
Created April 3, 2017 03:08
Restart something on load > 100
#/bin/bash
LOAD=$(awk '{print $1}' /proc/loadavg)
if [ $(echo "$LOAD > 100" | bc) = 1 ]; then
/etc/init.d/php-fpm restart
fi