Skip to content

Instantly share code, notes, and snippets.

@jankais3r
jankais3r / Ghost_custom_excerpt_tag.md
Created July 29, 2015 21:49
Ghost - custom excerpt tag

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 `` at the position you want to cut the article.

@jankais3r
jankais3r / Mount BOOTCAMP.scpt
Last active April 27, 2019 07:48
Apple Script that automates the mounting process of a Bitlocker partition
--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 / README
Created January 25, 2021 01:45
"WSL" on macOS
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
@jankais3r
jankais3r / Outlook_binary_patching_and_signing.md
Created November 23, 2015 21:34
Outlook binary patching and signing

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

More info here.

See the script in action here.

@jankais3r
jankais3r / iOS 13 Entitlements
Created May 1, 2020 12:46
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