Skip to content

Instantly share code, notes, and snippets.

Biswa96 / Remove_MIUI_Bloatware.CMD
Last active Aug 15, 2021
Remove bloatware applications from MIUI ROM in Xiaomi phones
View Remove_MIUI_Bloatware.CMD
@echo off
set /p Y=Enter adb.exe folder path:
cd /d %Y%
adb devices
for %%X in (
coinsandsteeldev / dialog.html
Last active Sep 22, 2021 — forked from arthurattwell/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from
View dialog.html
<!DOCTYPE html>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
sliceofbytes /
Created Feb 14, 2018
Add Text Files as Google Keep Notes
#Import a directory of text files as google keep notes.
#Text Filename is used for the title of the note.
import gkeepapi, os
username = ''
password = 'your app password'
keep = gkeepapi.Keep()
success = keep.login(username,password)
joshschmelzle /
Last active Sep 8, 2021
How to Remove the Xbox Game Bar with Powershell on Windows 10

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
  3. Right-click on the app and pick Uninstall. Answer Yes to the prompt, and wait for the process to finish.
heiswayi /
Created Feb 5, 2017
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
TheBeastOfCaerbannog / create-new-file.ahk
Last active Oct 9, 2020
AutoHotKey: Create a new file with Alt+N keyboard shortcut in Windows Explorer
View create-new-file.ahk
; This is part of my AutoHotKey [1] script. When you are in Windows Explorer it
; allows you to press Alt+N and type a filename, and that file is created
; in the current directory and opened in the appropriate editor (usually
; [gVim]( in my case, but it will use whatever program is
; associated with the file in Windows Explorer).
; This is much easier than the alternative that I have been using until now:
; Right click > New > Text file, delete default filename and extension (which
; isn't highlighted in Windows 7), type the filename, press enter twice.
; (Particularly for creating dot files like ".htaccess".)
View memrise-export.js
Export Memrise course words to CSV (technically TSV, or "tab separated file", but it is effectively the same).
1. Log into Memrise.
2. Navigate to the course page you would like to export (e.g.
3. Open the browser's Developer Console (
4. Paste the below script into the console and hit enter.
5. After all pages have been loaded, copy and paste the final word list into spreadsheet.
brettz9 / styles.less
Last active May 10, 2021
Atom stylesheet
View styles.less
* Your Stylesheet
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed and saved.
* Add your own CSS or Less to fully customize Atom.
* If you are unfamiliar with Less, you can read more about it here:
revolunet /
Last active Aug 30, 2021
# Python VS JavaScript ES6 syntax comparison

Python VS ES6 syntax comparison

Python syntax here : 2.7 - online REPL

Javascript ES6 via Babel transpilation - online REPL


import math
WillemRB / ProcessingAnimation
Last active Aug 28, 2021
PowerShell function to create a processing animation for long running scriptblocks.
View ProcessingAnimation
function ProcessingAnimation($scriptBlock) {
$cursorTop = [Console]::CursorTop
try {
[Console]::CursorVisible = $false
$counter = 0
$frames = '|', '/', '-', '\'
$jobName = Start-Job -ScriptBlock $scriptBlock