Skip to content

Instantly share code, notes, and snippets.

@mrk-han
mrk-han / emulator-install-using-avdmanager.md
Last active May 1, 2024 21:12
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For an emulator that mimics a Pixel 5 Device with Google APIs and ARM architecture (for an M1/M2 Macbook):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-30;google_atd;arm64-v8a"

Design your own YouTube app with Firefox and extensions!

Install Firefox and Extensions

  1. Install Firefox, Firefox Beta or Firefox Nightly for Android.
    • The goal is to install a separate version which you do not use for general browsing, but it is up to you which edition to choose.
  2. Go to SettingsAbout Firefox (Beta/Nightly)
  3. Tap 3 times on the logo
  4. Go back → Custom Add-on collection
  5. Enter 3124145 and youtube accordingly.
@dineshsprabu
dineshsprabu / dynamic_page_downloader.js
Last active May 1, 2024 21:12
[PhantomJS] Load and save dynamic webpage
#!/usr/bin/phantomjs
// This script will load a dynamic page and gives you the content.
// Args: url -> URL to be downloaded.
var system = require('system');
if(system.args.length == 1){
system.stderr.write("Pass URL as argument to the script");
phantom.exit(1)
@eduard-sukharev
eduard-sukharev / cue_to_flac.py
Last active May 1, 2024 21:11 — forked from Theldus/cue_to_flac.py
CUE splitter using ffmpeg (to flac)
import os
import subprocess
import sys
from itertools import chain
import argparse
parser = argparse.ArgumentParser(description="Split audio file by .cue metadata.")
parser.add_argument(
"cue-files",
help="CUE file to be parsed. Multiple files can be passed. If no files provided, reads from stdin",
@dineshsprabu
dineshsprabu / chrome_extension_helper.md
Last active May 1, 2024 21:11
[Chrome Extension] Chrome Extension Helper

Get current tab URL

Add below to permissions on manifest

"permissions": [
    "tabs",
 "http://*/*", 
(ns workshop.main
(:require ["package:flutter/material.dart" :as m]
["package:google_fonts/google_fonts.dart" :as fonts]
#_["example.dart" :as ex]
[cljd.flutter.alpha2 :as f]))
(def normal-text-style
(fonts/GoogleFonts.sourceCodePro
.fontSize 26
.fontWeight m/FontWeight.w700
@nicolasdao
nicolasdao / chrome_extension_guide.md
Created July 8, 2020 07:16
Chrome extension. Keywords: chrome extension
@sde1000
sde1000 / flacsplit.py
Created October 17, 2013 10:01
Script to split flac files with embedded cue sheet and tags into mp3s
#!/usr/bin/env python
"""Split a flac file with cuesheet and embedded tags into multiple
files, optionally re-encoded as mp3.
"""
version="0.1"
import os,subprocess,re,os.path,sys
@Madis0
Madis0 / chromeflagstweaks.md
Last active May 1, 2024 21:10
Useful Chrome chrome://flags tweaks
@troyhunt
troyhunt / rick-roll-content-scraper.js
Created August 19, 2020 07:41
A Cloudflare worker to redirect image requests from dickhead content scraper's site to a Rick Roll
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
async function fetchAndApply(request) {
let response = await fetch(request)
let referer = request.headers.get('Referer')
let contentType = response.headers.get('Content-Type') || ''
if (referer && contentType.startsWith('image/')) {