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
zsh starting in current directory | |
Tools -> Terminal -> Environment variables ---> CHERE_INVOKING=1 |
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
<!-- Just save this file to hugo's --> | |
<!-- layouts/partials/extend_footer.html --> | |
<!-- That's all! --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/medium-zoom/1.0.6/medium-zoom.min.js" integrity="sha512-N9IJRoc3LaP3NDoiGkcPa4gG94kapGpaA5Zq9/Dr04uf5TbLFU5q0o8AbRhLKUUlp8QFS2u7S+Yti0U7QtuZvQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> | |
<script> | |
const images = Array.from(document.querySelectorAll(".post-content img")); | |
images.forEach(img => { | |
mediumZoom(img, { |
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
Install nvm | |
$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | |
Check nvm | |
$ nvm --version | |
Find node version | |
$ nvm ls-remote | grep Latest | |
v4.9.1 (Latest LTS: Argon) | |
v6.17.0 (Latest LTS: Boron) |
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
<div id="messages"> | |
{% for message in messages %} | |
<div {% if message.tags %}class="alert alert-dismissable alert-{{ message.tags }}"{% endif %}> | |
<a class="close" data-dismiss="alert" href="#">×</a> | |
{{ message }} | |
</div> | |
{% endfor %} | |
</div> |
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
// Put this into C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts | |
app.addMenuItem({ cName: "Reverse", cParent: "View", cExec: "PPReversePages();", cEnable: "event.rc = (event.target != null);", nPos: 0 | |
}); | |
function PPReversePages() | |
{ | |
var t = app.thermometer; | |
t.duration = this.numPages; | |
t.begin(); |
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
#!/usr/bin/env bash | |
# install pip | |
curl -s https://bootstrap.pypa.io/get-pip.py | sudo python - | |
# add path for install ansible in user mode (otherwise it can't start because not it PATH) | |
echo "export PATH=$PATH:$HOME/.local/bin" >> .bashrc | |
export PATH=$PATH:$HOME/.local/bin | |
# install ansible |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
internal_ip = "172.28.128.4" | |
project_name = "blog" | |
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/xenial64" | |
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
- Install latest Wine and Winetricks | |
$ sudo add-apt-repository ppa:joe-yasi/yasi | |
$ sudo add-apt-repository ppa:ubuntu-wine/ppa | |
$ sudo apt-get update | |
$ sudo apt-get install wineX.X winetricks | |
- Install all the extra’s and default fonts using Wintricks CLI | |
$ winetricks corefonts eufonts lucida opensymbol tahoma cjkfonts |
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
/********************************************************** | |
Export to PDFs.jsx | |
DESCRIPTION | |
This sample gets files specified by the user from the | |
selected folder and batch processes them and saves them | |
as PDFs. | |
NewerOlder