Skip to content

Instantly share code, notes, and snippets.

View thewh1teagle's full-sized avatar
💭
coding

thewh1teagle

💭
coding
  • localhost
  • The martian
View GitHub Profile
// Serial execution of multiple functions
const compose = (...funcs) =>
funcs.reduce(
(a, b) =>
(...args) =>
a(b(...args)),
);
export const createStore = (reducer, enhancer) => {
if (typeof enhancer === 'function') {
@ishad0w
ishad0w / aveyo_edge_removal.bat
Last active May 15, 2024 13:17
AveYo (Microsoft Edge Removal)
@(set "0=%~f0"^)#) & powershell -nop -c iex([io.file]::ReadAllText($env:0)) & exit /b
#:: just copy-paste into powershell - it's a standalone hybrid script
sp 'HKCU:\Volatile Environment' 'Edge_Removal' @'
$also_remove_webview = 1
## why also remove webview? because it is 2 copies of edge, not a slimmed down CEF, and is driving bloated web apps
$also_remove_widgets = 1
## why also remove widgets? because it is a webview glorified ad portal on msn and bing news cathering to stupid people
$also_remove_xsocial = 1
## why also remove xsocial? because it starts webview setup every boot - xbox gamebar will still work without the social crap
data = [{"Word":"average","Offset":51100000,"Duration":4700000},{"Word":"household","Offset":55900000,"Duration":4500000},{"Word":"income","Offset":60500000,"Duration":3700000},{"Word":"is","Offset":64300000,"Duration":1300000},{"Word":"up","Offset":65700000,"Duration":1900000},{"Word":"ten","Offset":67700000,"Duration":2100000},{"Word":"percent","Offset":69900000,"Duration":4200000},{"Word":"from","Offset":74200000,"Duration":1800000},{"Word":"four","Offset":76100000,"Duration":2500000},{"Word":"years","Offset":78700000,"Duration":2300000},{"Word":"ago","Offset":81100000,"Duration":4100000},{"Word":"and","Offset":87700000,"Duration":2300000},{"Word":"our","Offset":90100000,"Duration":900000},{"Word":"customers","Offset":91100000,"Duration":4700000},{"Word":"are","Offset":95900000,"Duration":700000},{"Word":"spending","Offset":96700000,"Duration":4700000},{"Word":"twenty","Offset":101500000,"Duration":3200000},{"Word":"percent","Offset":104800000,"Duration":4000000},{"Word":"more","Offset":108900000,"Duration
@TameemS
TameemS / debloatMEmu.md
Last active May 19, 2024 14:09
Debloating & Optimizing MEmu

Inspired by this

More of my guides: Debloating LDPlayer - Debloating Nox (Updated)

Edit 22/8/2021: I have updated MEmu and it seems like it reinstalls the apps and re-enables the services. Repeat steps 5, 7, 8, and 9 if you update MEmu.

Debloating MEmu

In my experience, Nox can be quite slow and choppy, and looks like I'm not the only person with this problem. A lot of people say that MEmu performs better than Nox, and I could agree with that. I have no chopping issues with it so far. But like Nox, there are kinda shady stuff going on.

@naryal2580
naryal2580 / .wsl-extension.sh
Created August 26, 2020 11:08
Either source this on .bashrc or copy and paste it to your .bashrc of WSL you are working on, and forget appending .exe on commands like powershell and cmd
trap 'BASH_CMD=$BASH_COMMAND' DEBUG
command_not_found_handle () {
only_cmd=${BASH_CMD%% *}
if type "$only_cmd.exe"
then
only_args=${BASH_CMD#* }
cmd="$only_cmd.exe $only_args"
$cmd
else
@shaybensasson
shaybensasson / gnome-terminal
Last active November 7, 2021 14:45
Opening a new tab in an existing GNOME terminal window
#!/bin/bash
# from here: https://planet.jboss.org/post/opening_a_new_tab_in_an_existing_gnome_terminal_window
# Path: /usr/local/bin/gnome-terminal
if [ "x$*" != "x" ]; then # any args?
/usr/bin/gnome-terminal "$@"
exit 0
fi
# first, inspect the current window
@carstenschwede
carstenschwede / Zoom-HowToRecordMultipleBreakoutRoomsAtOnce.md
Last active May 24, 2022 09:52
How to record multiple breakout rooms at once in Zoom.

How to record multiple breakout rooms in Zoom at the same time:

  • Requirements

    • OS: Windows or Mac (Linux not tested, might work as well)
    • a Zoom account and Desktop installation (duh)
  • General idea

    • Host meeting under main account (main instance)
    • Open as many additional Zoom instances as there are breakout rooms (breakout instances)
    • For each breakout instance, join the meeting via meeting id + password and give each an easily identifiable name (e.g. "Breakout[1]", "Breakout[2]", ... )
@Mefistophell
Mefistophell / RUST.MD
Last active May 13, 2024 11:36
How to Compile a Rust Program on Mac for Windows

Question: I want to compile my Rust source code for the Windows platform but I use macOS.

Solution:

  1. Install target mingw-w64: brew install mingw-w64
  2. Add target to rustup: rustup target add x86_64-pc-windows-gnu
  3. Create .cargo/config
  4. Add the instructions below to .cargo/config
[target.x86_64-pc-windows-gnu]
@MSAdministrator
MSAdministrator / iranian_apit_groups_possible_commands.md
Last active April 10, 2024 14:30
Iranian APT Groups & Possible Commands Used By These Groups

Overview

The following content is generated using a preview release of Swimlane's pyattck.

This snippet of data is scoped to the following actor groups:

  • APT33
  • APT34
  • APT39
  • Charming Kitten
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 21, 2024 13:45
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !