Skip to content

Instantly share code, notes, and snippets.

View porobertdev's full-sized avatar
🎯
Focusing

Robert P. porobertdev

🎯
Focusing
View GitHub Profile
@skrymets
skrymets / Cornell's Notes Template.md
Last active February 23, 2025 13:03
Cornell Note Template for Obsidian
cssclass
cornell-note
Cues

Notes

The Cornell Note-taking System is a popular and effective method for organizing and summarizing information during lectures, readings, or any other form of learning.

@mfehrenbach
mfehrenbach / chrome-device-dimensions.md
Last active April 19, 2025 21:42
Modern device dimensions for Chrome DevTools.

Modern Device Dimensions for Chrome DevTools

These are modern “Emulated Devices” (a.k.a. responsive dimensions) for Chrome DevTools’ Mobile Device Viewport Mode.

They are specifically Apple devices, subtracting for recent Safari UI (as in window.innerWidth/Height), and cleverly sorted with some dark-arts unicode shenanigans. (This glitchy, unloved portion of the tools sorts lexicographically, because of course it would.) Ergonomics!

before-after

Nest Hub Max? Come on. I dropped a bunch of devices that were older and/or close to these dimensions. It obviously doesn’t cover everything (sorry Android/Chrome), but offers a decent spread/increments for common 2023/2024 viewports.

@firefart
firefart / digitales-amt.js
Created November 8, 2022 11:10
Root Detection and SSL pinning bypass script for the Digitales Amt app
var printBacktrace = function () {
Java.perform(function() {
var JLog = Java.use('android.util.Log'), JException = Java.use('java.lang.Exception');
console.warn("Call Stack:");
console.warn(JLog.getStackTraceString(JException.$new()));
});
};
Java.perform(function() {
var targetClass = Java.use("at.asitplus.utils.deviceintegrity.DeviceIntegrityCheck");
@OliverBalfour
OliverBalfour / README.md
Last active January 29, 2025 19:44
Obsidian custom checkbox snippet

Custom checkboxes for Obsidian! It's like deathau's snippet except updated to work really well in Live Preview mode in Obsidian 1.0.

Simply edit the x inside checkboxes to >, ?, etc. to see styling like below!

Editing Live Preview Viewing
image image image

Installation:

  • Download the checkbox.css file on this page
@kepano
kepano / obsidian-web-clipper.js
Last active April 21, 2025 06:17
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/[email protected]?module'), import('https://unpkg.com/@tehshrike/[email protected]'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@agichim
agichim / flash-custom-rom-motog8power.md
Last active March 23, 2025 22:33
Full guide to flash Moto G8 Power (sofiar)
id title desc updated created
3UT7YPV6Qnr2UL6H6roQ0
Motog8power
1682709194077
1629568034286

Moto G8 Power guide to flash and install a custom ROM

@davidjguru
davidjguru / bash_aliases
Last active November 23, 2024 07:44
BASH Aliases commands for a Linux (Debian / Ubuntu) environment
## Morning Opertures
alias whatsup='service --status-all'
alias hello='sudo /etc/init.d/apache2 stop && cd workspace/project && ddev start && ddev launch'
alias hi='sudo systemctl stop apache2'
alias iad='systemctl is-active docker'
alias ports='nmap localhost'
alias dns="sudo systemd-resolve --status | grep 'DNS Servers'"
alias bye='shutdown -r now'
## Usual Instructions
@dvinciguerra
dvinciguerra / vim-plugins.vim
Last active September 27, 2024 04:55
My personal list of VIM plugins
" plugins
call plug#begin('~/.vim/plugged')
" themes & ui
Plug 'dracula/vim', { 'as': 'dracula' }
Plug 'scrooloose/nerdtree', { 'on': [ 'NERDTree', 'NERDTreeFind', 'NERDTreeToggle' ] }
Plug 'Xuyuanp/nerdtree-git-plugin', { 'on': [ 'NERDTree', 'NERDTreeFind', 'NERDTreeToggle' ] }
Plug 'ryanoasis/vim-devicons'
Plug 'mhinz/vim-signify'
Plug 'vim-airline/vim-airline'
@mnghn07
mnghn07 / gitCommitEmoji.md
Created August 10, 2020 10:32
Git Commit Message Emoji
@ShreyKumar
ShreyKumar / countriesAddressPostal.js
Last active June 6, 2024 14:19
List of countries and their respective postal codes with ranges (August 2020)
// Country list source: https://www.dhl.com/en/country_profile.html#.XwODEJNKjOQ
// Country abbreviation source: https://planetarynames.wr.usgs.gov/Abbreviations
// Postal code: https://gist.githubusercontent.com/jamesbar2/1c677c22df8f21e869cca7e439fc3f5b/raw/21662445653ac861f8ab81caa8cfaee3185aed15/postal-codes.json
// Postal code: https://en.wikipedia.org/wiki/List_of_postal_codes
// Country/territory items with no postal code regexes or ranges either do not require postal codes
// or there may not be enough information for that country/territory
export const COUNTRY_ADDRESS_POSTALS = [{
abbrev: 'AF',