Skip to content

Instantly share code, notes, and snippets.

View xzeldon's full-sized avatar
💖
Don't be sad, have a hug! <3

Timofey Gelazoniya xzeldon

💖
Don't be sad, have a hug! <3
View GitHub Profile
@xzeldon
xzeldon / navicat_patch.cpp
Created March 6, 2024 08:23
Patch Navicat Premium 16. Compile and run as administrator. Navicat must be installed to default location.
#include <iostream>
#include <fstream>
#include <Windows.h>
using namespace std;
int main() {
char* programFilesPath;
size_t requiredSize;
_dupenv_s(&programFilesPath, &requiredSize, "programfiles");
@xzeldon
xzeldon / fastboot_installer.sh
Created September 6, 2022 21:24
Oneplus 8T/9R Fastboot rom installer script for linux
#!/bin/sh
# Copyright 2012 The Android Open Source Projecti
# Copyright 2022 xzeldon <contact@zeldon.ru>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@xzeldon
xzeldon / monke.gif
Last active November 6, 2021 19:06
monke.gif
@xzeldon
xzeldon / hello.rs
Last active September 28, 2021 09:00
Almost the same as https://twitter.com/tsoding/status/1433170025796472836, but in Rust <3
extern "C" {
fn putchar(c: i32) -> i32;
}
fn hello() -> i32 {
let mut dx: u64 = 0x77e435b08;
while dx != 0 {
dx >>= 3;
unsafe {
putchar((0x726f6c6564574820_i64 >> ((dx & 7) << 3) & 0xff) as i32);
@xzeldon
xzeldon / tmonit.c
Last active May 24, 2021 21:54
Raspberry Pi 4 CPU temperature monitoring (Ubuntu Server LTS 20.04)
#include <stdio.h>
#include <unistd.h>
int main(int argc, char *argv[])
{
FILE *fp;
while(1)
{
int temp = 0;