Skip to content

Instantly share code, notes, and snippets.

View areoid's full-sized avatar

Aji Prastiya areoid

View GitHub Profile
@areoid
areoid / FodhelperUACBypass.ps1
Created March 30, 2023 00:59 — forked from netbiosX/FodhelperUACBypass.ps1
Bypass UAC via Fodhelper binary in Windows 10 systems
<#
.SYNOPSIS
This script can bypass User Access Control (UAC) via fodhelper.exe
 
It creates a new registry structure in: "HKCU:\Software\Classes\ms-settings\" to perform UAC bypass and starts
an elevated command prompt.
 
.NOTES
Function : FodhelperUACBypass
File Name : FodhelperUACBypass.ps1
@areoid
areoid / gist:a7babdba4475d3cd1ab519ac49c08694
Last active April 10, 2022 16:43
Remove local branches
Source https://stackoverflow.com/a/51436631
Source https://stackoverflow.com/a/51436631
TL;DR
Create a git alias "sweep" that accepts an optional -f flag:
```
git config --global alias.sweep '!git branch --merged $([[ $1 != "-f" ]] \
@areoid
areoid / auto_skip_youtube_ads.js
Last active June 10, 2022 14:37
UserScript / Greasemonkey - Auto Skip Youtube Ads
/**
* It better skips the Ads than you block the Ads
* Always respect for the creator's content
*/
console.log("auto skip ads is starting...");
const intervalSkipAdv = setInterval(skipAdv, 3000);
function skipAdv() {
if (document.location.hostname != "www.youtube.com") {
stopSkipAdv();
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Clock</title>
<script type="text/javascript">
<!--
window.onload = function()
{
@areoid
areoid / import-trick.sql
Last active April 4, 2019 16:48
Tips and trick Fast Import MySql innodb
SET autocommit=0;
SET unique_checks=0;
SET foreign_key_checks=0;
-- Your SQL --
COMMIT;
SET unique_checks=1;
SET foreign_key_checks=1;
@areoid
areoid / media-query-resolution.css
Last active July 25, 2018 04:33 — forked from Mikodes/gist:be9b9ce42e46c3d4ccb6
All Media queries for resolutions
/* (320x480) iPhone (Original, 3G, 3GS) */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
/* insert styles here */
}
/* (320x480) Smartphone, Portrait */
@media only screen and (device-width: 320px) and (orientation: portrait) {
/* insert styles here */
}
@areoid
areoid / ie8Events.js
Created July 26, 2017 07:21 — forked from chriswrightdesign/ie8Events.js
Polyfill for IE8 Javascript Event Listeners
(function() {
if (!Event.prototype.preventDefault) {
Event.prototype.preventDefault=function() {
this.returnValue=false;
};
}
if (!Event.prototype.stopPropagation) {
Event.prototype.stopPropagation=function() {
this.cancelBubble=true;
};