Skip to content

Instantly share code, notes, and snippets.

@AP-Back
AP-Back / Mega import bypass.js
Created July 6, 2023 17:53
Mega IMPORT BYPASS with storage UNDETECTION tampermonkey script
// ==UserScript==
// @name MEGA.nz Ultimately Import
// @name:zh-TW MEGA.nz Ultimately Import /
// @name:zh-CN MEGA.nz Ultimately Import
// @namespace methusela
// @version 1.0
// @description Bypass import limit on Mega Web client & remove warning about the space usage
// @author muneebwanee
// @match chrome-extension://bigefpfhnfcobdlfbedofhhaibnlghod/*
// @match http://mega.co.nz/*
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active April 17, 2025 21:10
Make Firefox fast again
@fideloper
fideloper / certbot.sh
Last active April 16, 2025 13:53
Certbot on Ubuntu, wildcard subdomains via CloudFlare DNS challenge
# Used on Ubuntu 18.04 and 20.04
# Find instructions for other OSes here: https://certbot.eff.org/instructions
# Install Certbot via Snaps
sudo snap install core; sudo snap refresh core
sudo snap install --classic certbot
sudo ln -s /snap/bin/certbot /usr/bin/certbot
# Install DNS CloudFlare plugin
sudo snap set certbot trust-plugin-with-root=ok
@mavaddat
mavaddat / Invoke-DownloadAppxPackage.ps1
Last active October 12, 2023 17:00
This correctly downloads neutral and x64 packages but untested for arm and 32bit systems. The path must point to a folder.
# Usage (for one URI):
<#
Import-Module -Name Invoke-DownloadAppxPackage.ps1
$URI = 'https://www.microsoft.com/store/productId/9P6RC76MSMMJ' # From Windows Store 'share'
if( Get-Command -Name Get-AppxPackageDownload -CommandType Function ) {
Get-AppxPackageDownload -Uri $URI -Path $env:TEMP # Use -Force to skip confirmation
} else {
Write-Host 'Get-AppxPackageDownload function not found'
}
@niutech
niutech / hosts
Last active April 17, 2025 06:51
/etc/hosts file for blocking Microsoft Edge tracking domains (and more)
0.0.0.0 a-0001.a-msedge.net
0.0.0.0 a-0002.a-msedge.net
0.0.0.0 a-0003.a-msedge.net
0.0.0.0 a-0004.a-msedge.net
0.0.0.0 a-0005.a-msedge.net
0.0.0.0 a-0006.a-msedge.net
0.0.0.0 a-0007.a-msedge.net
0.0.0.0 a-0008.a-msedge.net
0.0.0.0 a-0009.a-msedge.net
0.0.0.0 a-msedge.net
@adojos
adojos / git-for-win_Pacman_Install.md
Last active February 5, 2025 05:14
Git: Pacman Installation on Git For Windows #git

Git For Windows (GitBash) Pacman Installation

The 'Git for Windows' by default does not come with MSYS2 package manager called 'Pacman' and hence it is a limited version or subset of the MSYS2. Also the bash which supplied wih 'Git for Windows' is not a full version of bash hence does not provide for full Linux environment.

However you can get package manager support inside 'Git for Windows' in following ways :

  1. Install full MSYS2 and build Git for Windows yourself (Most git users don't require all packages and MSYS2)
  2. Install Git for Windows SDK (heavy & consumes around 3-5 Gb space)
  3. Use a hack to merge the MSYS2 Pacman packages with your existing Git for Windows installation
@adojos
adojos / change-default-linux-Shell.md
Last active May 22, 2024 06:21
Linux: Changing Default Linux Shell #linux

Changing Default Linux Shell

Use one of the below listed methods to change your default shell.

👉 Note:

You should already have more then one shell installed on your system in order to switch to another shell. Use the below commands to check the installed shells and current default shell on your system:

1. List all Installed Shells : cat /etc/shells
@zengxinhui
zengxinhui / convert2arch_arm.sh
Last active March 1, 2025 19:48
Replace Oracle Cloud Linux with Arch Linux ARM remotely
[02/25/2025]
Refs:
1. http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
2. https://dl-cdn.alpinelinux.org/alpine/v3.21/releases/aarch64/alpine-virt-3.21.3-aarch64.iso
3. https://wiki.alpinelinux.org/wiki/Replacing_non-Alpine_Linux_with_Alpine_remotely
4. https://wiki.archlinux.org/index.php/installation_guide#Configure_the_system
5. https://archlinuxarm.org/platforms/armv8/generic
See also:
@Erisa
Erisa / cfd-termux.sh
Last active April 12, 2025 00:04
Install the Cloudflare Daemon (cloudflared) in Termux
#!/bin/sh
echo 'NOTE: You can now install cloudflared directly from Termux repos.'
echo 'NOTE: To install it from source instead, open the script and comment out the next two lines.'
pkg install cloudflared
exit
# ^ comment out these lines to proceed with the script
echo "--upgrading packages"
yes "" | pkg update
@marcoandre1
marcoandre1 / 7-zip-powershell.md
Last active April 10, 2025 18:35
7-zip in powershell with scripts provided