Skip to content

Instantly share code, notes, and snippets.

View Moudoux's full-sized avatar

Deftware Moudoux

View GitHub Profile
/**
Searches for all strings that contains a color code, eg "§cTest" and replaces §c with
ChatColor.RED so the string looks like ChatColor.RED + "Test".
*/
const fs = require('fs');
const glob = require('glob');
const regex = /"[^"\\]*(?:\\.[^"\\]*)*"/gim;
const imp = 'import me.deftware.client.framework.utils.ChatColor;';

Keybase proof

I hereby claim:

  • I am Moudoux on github.
  • I am deftware (https://keybase.io/deftware) on keybase.
  • I have a public key whose fingerprint is EEAE 3293 C261 B19B B74A E7DB 8FF9 1A59 657D 9280

To claim this, I am signing this object:

#!/bin/bash
#######################################################################
#
# Solus OS system setup
#
#######################################################################
# Go into a temp work directory
mkdir ~/tmp-installer
@Moudoux
Moudoux / setup.ps1
Last active January 27, 2023 11:46
##############################################################################
# #
# Windows 10 Setup #
# Powered by Chocolatey #
# Updated: April 21st 2018 #
# Made by Deftware #
# #
# Please run "Set-ExecutionPolicy Bypass" before running this script #
# #
##############################################################################
@Moudoux
Moudoux / String Obfuscation.php
Created April 16, 2017 20:11
Simple string obfuscation for .java files
<?php
/*
Simple java string encryption
*/
// The function to encrypt, you can put the encrypt function in each class too.
$encrypt_function = 'Crypto.decrypt';
// Your main client class
<?php
/*
Update CloudFlare DNS records via PHP
*/
$api_version = 'v4';
if (isset($argv[1]) == false || isset($argv[2]) == false || isset($argv[3]) == false) {
die('Correct ussage: php CF_DNS_Record_Updater.php <domain> <old_ip> <new_ip>'.PHP_EOL);
@Moudoux
Moudoux / auth.php
Last active February 19, 2017 19:40
<?php
/*
Copyright (C) OpenTexon 2017 All Rights Reserved
This file also exists on GitHub @ https://gist.github.com/Moudoux/9c633ed451a74c380c39e7158233d897
*/
session_start();
require_once('memcached.php');