This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Disable selection on document | |
*/ | |
function preventSelection(element){ | |
var preventSelection = false; | |
function addHandler(element, event, handler){ | |
if (element.attachEvent) | |
element.attachEvent('on' + event, handler); | |
else |
Last Updated: March 2023
IMPORTANT: Ignore the out-of-date steps below for getting Chromium keys.
Instead, read this up-to-date guide (Jan 2023) written by @LearningToPi.
P.S. Thank you to every contributor below who provided tips over the years on what should be a straightforward process: setting up Chromium for local development.
Long live the web!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var derText = "This is some text with [a link](https://duckduckgo.com) \n\ and break line"; | |
//replace the linebreaks with <br> | |
derText = derText.replace(/(?:\r\n|\r|\n)/g, '<br>'); | |
//check for links [text](url) | |
let elements = derText.match(/\[.*?\)/g); | |
if( elements != null && elements.length > 0){ | |
for(el of elements){ | |
let txt = el.match(/\[(.*?)\]/)[1];//get only the txt | |
let url = el.match(/\((.*?)\)/)[1];//get only the link | |
derText = derText.replace(el,'<a href="'+url+'" target="_blank">'+txt+'</a>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/sh | |
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########################### | |
# Phone apps and services # | |
########################### | |
adb shell "cmd package install-existing com.android.stk" # SIM toolkit | |
adb shell "cmd package install-existing com.android.stk2" # SIM toolkit (maybe for dual-sim devices) | |
adb shell "cmd package install-existing com.sec.android.app.simsettingmgr" # SIM card manager, maybe required, contains configuration and settings for handling dual SIM (give a SIM an icon, a name, and so on) | |
adb shell "pm uninstall -k --user 0 com.samsung.android.smartcallprovider" # The 4th tab in the Phone app for 'local places' | |
adb shell "pm uninstall -k --user 0 com.sec.vsim.ericssonnsds.webapp" # NSDSWebApp. The Non Sim Device Solution (NSDS) is linked to VoLTE and VoWifi (Wifi Calling). NSDS allows connecting non sim devices to IMS core: https://uk.linkedin.com/in/hemant-kumar-dewnarain-2b779679 | |
adb shell "pm uninstall -k --user 0 com.android.cts.ctsshim" # Part of the Android Compatibility Test Suite: https://source.android.com/compatibility/cts/setu |