Skip to content

Instantly share code, notes, and snippets.

View Starsign68's full-sized avatar
🇺🇦
#StandWithUkraine

Starsign68 Starsign68

🇺🇦
#StandWithUkraine
View GitHub Profile
@bradtraversy
bradtraversy / state_capitals.json
Created April 27, 2019 12:24
JSON array of states and capitals
[
{
"abbr": "AL",
"name": "Alabama",
"capital": "Montgomery",
"lat": "32.361538",
"long": "-86.279118"
},
{
"abbr": "AK",
@curran
curran / .block
Last active November 9, 2023 23:37
CodeMirror 6 Example
license: mit
#Show all 3rd party Kernel extensions
sudo /usr/bin/sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy 'SELECT * FROM kext_policy;'
#Strip signing from Config Profile
openssl smime -inform DER -verify -in /path/to/downloaded.mobileconfig -noverify -out /path/to/de-signed.mobileconfig
#Format plist
plutil -convert xml1 /path/to/de-signed.mobileconfig
#Get App signature
@ww9
ww9 / one-line-text-art-and-emojis_utf8_ascii.txt
Last active May 10, 2024 02:10
Emojis, UTF8, ASCII (one line) #misc
# Collection of one line text art (◕‿◕✿)
Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗
ּבּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
@WebReflection
WebReflection / proxy.js
Created May 22, 2018 14:42
A proxy with a handler.proxy always available.
const proxy = (target, handler) => {
handler = typeof handler === 'object' ?
Object.create(handler) : new handler;
return (handler.proxy = new Proxy(target, handler));
};
@adalbertovargas
adalbertovargas / utils.js
Created April 24, 2018 02:13
JS Utilities
/**
* Slugify text
*
* @param string text String to transform
* @return string trasnformed string
*/
function slugify(text){
return text.toString().toLowerCase()
@jsnelgro
jsnelgro / __JS_UTILS__
Last active July 19, 2022 17:17
utils.js
a place to stash a bunch of utility functions I've found myself writing over the years.
@romainl
romainl / dynaline.gif
Last active March 20, 2024 10:11
How to add dynamic highlighted parts to your status-line
dynaline.gif
@meskarune
meskarune / vimrc
Last active November 3, 2023 07:58
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@kbauer
kbauer / Adblock Simple.js
Last active June 6, 2024 11:56
A simple adblocker bookmarklet, removing suspicious iframes. To install, copy-paste the source to a bookmark (will automatically remove newline characters). Extend the array ``exceptOrigins`` in order to create new exceptions. Careful: If bookmarklets get too long, they might stop working. This methods provides on-demand adblocking (as opposed t…
javascript:/* Adblock Simple */
(function(){
const exceptOrigins = [
'https://disqus.com',
document.origin
];
function remIF(e){
try{
var orgn = new URL(e.src || 'http://unknown-src').origin;