Skip to content

Instantly share code, notes, and snippets.

View deejayy's full-sized avatar

deejayy (hu) deejayy

View GitHub Profile
@deejayy
deejayy / CustomModuleLoader.ts
Last active September 21, 2022 20:26
Solves the problem with typescript->javascript compilation and module path aliases (compilerOptions.paths).
import customModuleLoader = require('module');
export class CustomModuleLoader {
public cOptions: any = require('../tsconfig.json').compilerOptions;
public replacePaths: any = {};
constructor() {
Object.keys(this.cOptions.paths).forEach(alias => {
this.replacePaths[alias.replace(/\*.?/, '(.*)')] = this.cOptions.paths[alias][0].replace(/\*.?/, '$1');
@deejayy
deejayy / packetdecrypt.js
Last active February 29, 2020 14:03
decode something
function hldsDecrypt()
{
this.decode_table = [
0x5A180000,
0x1A001040,
0x00104000,
0x12401040,
0x40105040,
0x10504000,
0x52401000,
<?php
if($_SERVER['REMOTE_ADDR'] == 'IP cimed') {
$sql = mysql_connect("IP", "Felhasználónév", "Jelszó");/
mysql_select_db('account');
if (!$sql) {
echo "Kapcsolat hiba!";
} else {
$mysql_query = mysql_query("SELECT login, email from account", $sql);
while($email = mysql_fetch_assoc($mysql_query)) {
$message = sprintf("<p>Hi, %s!</p>\r\n<p>Welcome To MT2SRV.HU</p>", $email['login']);