Skip to content

Instantly share code, notes, and snippets.

View eebssk1's full-sized avatar
😑
wtf 1s dis

EBK21 eebssk1

😑
wtf 1s dis
View GitHub Profile
@eebssk1
eebssk1 / wio.c
Created May 8, 2017 05:53
write 1~64 in one line
#include <stdio.h>
#include <unistd.h>
int main(void) {
int a;
int c;
for(c=1;c<=64;c++) {
a=c;
printf("\r");
fflush(stdout);
printf("%d",a);
@eebssk1
eebssk1 / emmwhat.cpp
Created September 14, 2017 13:28
emmm
#include<iostream>
#include<sstream>
using namespace std;
bool myisdigit(string str)
{
for(int i=0;i<str.size();i++)
{
if ((str.at(i)>'9') || (str.at(i)<'0') )
{
return false;
using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SetMPath
{
internal class Program
@eebssk1
eebssk1 / clang.real
Created March 24, 2023 01:02
android rom clang polly
#!/bin/sh
PFL1="-mllvm -polly=true -mllvm -polly-run-inliner=true -mllvm -polly-run-dce=true -mllvm -polly-vectorizer=stripmine -mllvm -polly-detect-profitability-min-per-loop-insts=56 -mllvm -polly-2nd-level-tiling=true -mllvm -polly-opt-max-coefficient=31 -mllvm -polly-opt-max-constant-term=31"
PFLF="-Wno-unused-command-line-argument"
PFL2="-mllvm --hot-cold-split=true"
SKIP=false
O=-O0
for i in "$@"; do
if [ "$i" = "-m32" ] || [ "$i" = "-m64" ] || [ "$i" = "-D__ASSEMBLY__" ] || [ "$i" = "-D_LIBC=1" ]; then
SKIP=true
@eebssk1
eebssk1 / uniedge.cmd
Last active July 16, 2023 06:48
Fully uninstall Microsoft edge with one simple script (iso preinstalled only)
FOR /F %%I IN ('dir /B "C:\Program Files (x86)\Microsoft\Edge\Application" ^| findstr [0-9]') DO set a=%%I
echo find is %a%
set b="C:\Program Files (x86)\Microsoft\Edge\Application\%a%\Installer\setup.exe"
%b% --uninstall --force-uninstall --system-level --delete-profile
rmdir /s /q "C:\Program Files (x86)\Microsoft\Edge"
for /f "tokens=8 delims=\" %%T in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages" ^| findstr "Microsoft-Windows-Internet-Browser-Package" ^| findstr "~~"') do (set "edge_legacy_package_version=%%T")
if defined edge_legacy_package_version (
echo Removing %edge_legacy_package_version%...
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%edge_legacy_package_version%" /v Visibility /t REG_DWORD /d 1 /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%edge_legacy_package_version%\Owners" /va /f
#!/bin/sh
echo 4 > /sys/devices/system/cpu/cpu0/power/energy_perf_bias
echo 4 > /sys/devices/system/cpu/cpu32/power/energy_perf_bias
echo 8 > /sys/devices/system/cpu/cpu30/power/energy_perf_bias
echo 8 > /sys/devices/system/cpu/cpu62/power/energy_perf_bias
for a in $(seq 2 4 29)
do
echo 5 > /sys/devices/system/cpu/cpu$a/power/energy_perf_bias
@eebssk1
eebssk1 / libfksm.c
Last active April 11, 2026 13:17
preloaded library to enable KSM for victim on linux >=6.x
/* SPDX-License-Identifier: Apache-2.0 */
/* Created & Support: chkd13303@gmail.com */
/* Donate: https://buymeacoffee.com/bbktto */
#include <stdio.h>
#include <sys/prctl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
@eebssk1
eebssk1 / psn-acv-license
Created May 28, 2026 02:46
license for archive
====================================================================
ANTI-AI / ALL-RIGHTS-RESERVED / CODE-STORAGE-ONLY LICENSE
====================================================================
Copyright (c) [Year] [Your Name]
1. ALL RIGHTS RESERVED
This repository and its contents are protected by copyright law.
No license is granted to any person or entity. You may NOT use, copy,
modify, merge, publish, distribute, sublicense, compile, or sell