Skip to content

Instantly share code, notes, and snippets.

View alza54's full-sized avatar
Working from home

alza54 alza54

Working from home
View GitHub Profile
var _0x174d=['getElementsByTagName','appendChild','createElement','div','overlay','left','center','right','summary','classList','add','body','notes-ghost','querySelector','.showcase_notes','parentNode','insertBefore','input','checkbox','ghostcheck','checked','addEventListener','display','block','style','none','label','createTextNode','ghost','textcheck','change','hide-text-style','.showcase_content_bg.showcase_notes\x20{visibility:\x20hidden;}','head','getElementById','outerHTML','htmlFor','text\x20hide','<br><br>check\x20out\x20our\x20best\x20steam\x20text\x20center\x20tool','target','_blank','https://center.shellcode.team/','href','logo-wrap','<svg\x20id=\x22Shellcode\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20viewBox=\x220\x200\x20231.36\x2045.11\x22\x20class=\x22animated\x20pulse\x22><path\x20d=\x22M46.72,13a9.91,9.91,0,0,0-6.24-2.4c-1.73,0-4,1-4,3S39,16.51,40.62,17l2.4.72c5,1.49,8.93,4,8.93,9.89,0,3.6-.86,7.3-3.74,9.75a15.9,15.9,0,0,1-10.28,3.4,22.28,22.28,0,0,1-12.72-4.13l2.24-4.21,1.79-3.37a15.
@alza54
alza54 / string_unique_xor.cpp
Created September 17, 2023 18:39
C++: Automatic String XOR in compile-time with unique seeds.
#pragma once
#include <string>
namespace os2 {
namespace string {
constexpr uint32_t modulus() { return 0x7fffffff; }
// Create entropy using __FILE__ and __LINE__
template <size_t N>
@alza54
alza54 / emulator.service.ts
Created January 31, 2024 15:32
Electron RPC communication service snippet
import { spawn, ChildProcessWithoutNullStreams } from 'child_process';
import { Observable } from 'rxjs';
import { ServiceTemplate, ServiceClass, ServiceMethod, ServiceBase } from './service';
@ServiceClass('emulator')
class EmulatorService extends ServiceBase implements ServiceTemplate {
private process!: ChildProcessWithoutNullStreams;
constructor () {