Skip to content

Instantly share code, notes, and snippets.

View Cyanoxygen's full-sized avatar
:octocat:
Hi!

Cinhi Young Cyanoxygen

:octocat:
Hi!
  • none
  • Right there on your screen! :)
View GitHub Profile
@Cyanoxygen
Cyanoxygen / config
Created September 18, 2022 02:37
king3399-random-config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.19.9 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="aarch64-aosc-linux-gnu-gcc (GCC) 9.2.1 20191220"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90201
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23301
@Cyanoxygen
Cyanoxygen / leaker.c
Last active April 2, 2021 09:35
A simple memory leaker, not portable and result may vary on different libc implementations. Meant to be run under Linux amd64 w/ glibc.
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
#include <string.h>
#define BYTES 56
int actual;
char *p1;
u_int64_t bytes;
@Cyanoxygen
Cyanoxygen / porttest.py
Last active September 20, 2020 01:21
Port tester in Python with socket
"""
A simple port tester, using socket to bind and see what will happen.
WTFPL
"""
import sys
import socket
import itertools
import errno
@Cyanoxygen
Cyanoxygen / imagickbot.py
Last active March 27, 2020 10:13
Simple ImageMagick Bot
#!/usr/bin/env python3
# Credit: leedagee
# License: GPLv2 (https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt)
from telegram.ext import Updater, CommandHandler
from telegram import InputTextMessageContent, UserProfilePhotos
import subprocess, io
def handleConvert(bot, updater):
if updater.message.reply_to_message.photo != []:
orig = updater.message.reply_to_message.photo[-1].get_file().download_as_bytearray()
{
"AC": "🇦🇨",
"AD": "🇦🇩",
"AE": "🇦🇪",
"AF": "🇦🇫",
"AG": "🇦🇬",
"AI": "🇦🇮",
"AL": "🇦🇱",
"AM": "🇦🇲",
"AO": "🇦🇴",
@Cyanoxygen
Cyanoxygen / keybase.md
Created April 5, 2018 11:34
Xjdjdjdkdj

Keybase proof

I hereby claim:

  • I am cyanoxygen on github.
  • I am cyanoxygen (https://keybase.io/cyanoxygen) on keybase.
  • I have a public key ASD_VKmp4q6e5ehB0-TO2TsVXdoog6T7DKJNvMj4LI7w2go

To claim this, I am signing this object: