Skip to content

Instantly share code, notes, and snippets.

View eebssk1's full-sized avatar
🙃
What is dis.

EBK21 eebssk1

🙃
What is dis.
View GitHub Profile
#!/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 / 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
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 / 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;
@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);