Skip to content

Instantly share code, notes, and snippets.

@jankais3r
jankais3r / README
Created Jan 25, 2021
"WSL" on macOS
View README
See it in action: https://asciinema.org/a/apMoGLtthFSCKrssymYKCwdMy
Setup:
1) Create a new Ubuntu Server VM using VMWare Fusion 12 (free for personal use)
2) Create and enable /etc/systemd/system/vmip.service which will expose VM's IP address on every boot
3) Generate a new, password-less ssh key on your Mac and add it to Ubuntu's authorized keys
4) Create ubuntu.sh on your Mac and adjust paths to the VM
View iOS 13 Entitlements
//Sourced from http://newosxbook.com/ent.jl?ent=&osVer=iOS13
abs-client
absinthe-client
adi-client
allow-obliterate-device
allow-softwareupdated
appData
application-identifier
aps-connection-initiate
aps-environment
@jankais3r
jankais3r / Mount BOOTCAMP.scpt
Last active Apr 27, 2019
Apple Script that automates the mounting process of a Bitlocker partition
View Mount BOOTCAMP.scpt
--More details in this thread: https://twitter.com/jankais3r/status/1069974420150804480
tell application "Terminal"
if not (exists window 1) then reopen
activate
do script "sudo -n mount-dislocker /dev/disk0s3 `base64 -D <<< YourBitlockerPasswordEncodedInBase64GoesHere` ; exit" in window 1
repeat while (exists window 1)
end repeat
quit
end tell
@jankais3r
jankais3r / Outlook_binary_patching_and_signing.md
Created Nov 23, 2015
Outlook binary patching and signing
View Outlook_binary_patching_and_signing.md

Simple shell script to quickly and easily force Outlook 2016 for Mac out of sandbox.

More info here.

See the script in action here.

View Ghost_custom_excerpt_tag.md

This code snippet implements manual control over excerpts in Ghost.

You will need to modify 2 files and 1 setting:

  1. Ghost/core/server/helpers/content.js - this one will get overwritten during Ghost update
  2. Ghost/content/themes//partials/loop.hbs - this one has to be modified for each theme
  3. 'Blog Footer' section of 'Code Injection' settings page

Default behavior is having whole articles displayed on the front page. If you want to display only an excerpt, put <!--preview--> at the position you want to cut the article.