Skip to content

Instantly share code, notes, and snippets.

View MuntashirAkon's full-sized avatar
I might be slow to response

Muntashir Al-Islam MuntashirAkon

I might be slow to response
View GitHub Profile
BlurryFlurry /
Created October 11, 2018 10:38
Ask sudo password rofi
# Take password prompt from STDIN, print password to STDOUT
# the sed piece just removes the colon from the provided
# prompt: rofi -p already gives us a colon
rofi -dmenu \
-password \
-no-fixed-num-lines \
-p "$(printf "$1" | sed s/://)"
fython /
Last active February 16, 2022 14:48
StorageManagaerCompat (openProxyFileDescriptor pre-O)
* No Licenses. Use it in your favourite way.
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.ParcelFileDescriptor;
import android.os.ProxyFileDescriptorCallback;
zthxxx / Activate Office 2019 for macOS
Last active March 3, 2024 13:36
crack activate Office on mac with license file
View Activate Office 2019 for macOS
Marfjeh / hosts
Last active June 28, 2021 04:52
Marf's hosts file - I'm using this to make it easy for myself to copy hosts between systems. as you can see, I REALLY REALLY REALLY hate ads.
View hosts
Pulimet / AdbCommands
Last active March 4, 2024 08:06
Adb useful commands list
View AdbCommands
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
Diederikjh /
Last active February 23, 2024 10:07
Single class that handles encryption and decryption with keys using the Android `Keystore` API. Mostly inspired by this [blog post]( This was tested with API 18 and 25 level emulator (and a level 23 device).
package com.example.yourapp;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
Brainiarc7 /
Last active February 22, 2024 21:46
This gist will show you how to tune your Intel-based Skylake, Kabylake and beyond Integrated Graphics Core for performance and reliability through GuC and HuC firmware usage on Linux.

Tuning Intel Skylake and beyond for optimal performance and feature level support on Linux:

Note that on Skylake, Kabylake (and the now cancelled "Broxton") SKUs, functionality such as power saving, GPU scheduling and HDMI audio have been moved onto binary-only firmware, and as such, the GuC and the HuC blobs must be loaded at run-time to access this functionality.

Enabling GuC and HuC on Skylake and above requires a few extra parameters be passed to the kernel before boot.

Instructions provided for both Fedora and Ubuntu (including Debian):

Note that the firmware for these GPUs is often packaged by your distributor, and as such, you can confirm the firmware blob's availability by running:

CMCDragonkai / stay-awake.ps1
Last active February 25, 2024 22:15
Keep Windows Awake Temporarily (Prevent Sleep, Display Off or Away Mode) #cli #powershell #windows
View stay-awake.ps1
#!/usr/bin/env powershell
# This script can keep the computer awake while executing another executable, or
# if no executable was passed in, then it stays awake until this script stops.
# There are 3 different ways of staying awake:
# Away Mode - Enable away mode (
# Display Mode - Keep the display on and don't go to sleep or hibernation
# System Mode - Don't go to sleep or hibernation
# The default mode is the System Mode.
# Away mode is only available when away mode is enabled in the advanced power options.
Arinerron / permissions.txt
Last active January 9, 2024 19:29
A list of all Android permissions...
View permissions.txt