Install libevent
, then tmux
. Guide here: http://jhshi.me/2016/07/08/installing-tmux-from-source-non-root/index.html
When ./configure
ing tmux
, make sure to: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/libevent/lib
.
References:
(async () => { | |
const res = await fetch('https://mspmag.com/promotions/restaurantweek') | |
const html = await res.text() | |
const parser = new DOMParser() | |
const doc = parser.parseFromString(html, 'text/html'); | |
const $scripts = Array.from(doc.querySelectorAll('script')) | |
const $script = $scripts.filter($script => $script.innerHTML.trim().startsWith('var _mp_require = {')).pop() | |
const json = JSON.parse($script.innerHTML.trim().replace(/^var _mp_require =/, '').replace(/;$/, '')) | |
console.log(json['config']['js/page_roundup_location']['locations_url']) | |
})(); |
/** | |
* Implement the "FizzBuzz" paradigm: iterate 'from' to 'to' inclusive | |
* printing "Fizz" for multiples of 3, "Buzz" for multiples of 5, and | |
* "FizzBuzz" for multiples of both. Otherwise, print the number. | |
* @param {number} from - lower bound, inclusive | |
* @param {number} to - upper bound, inclusive | |
* @return void (undefined) | |
* | |
* @example |
replies: | |
- body: | | |
:wave: @{{user.login}} | |
name: "{{user.login}} test" |
javascript:Array.from(document.querySelectorAll("[id]")).forEach(e=>{if(/[A-Za-z][-A-Za-z0-9_:.]*/.test(e.id)&&!e.querySelector(`a[href="#${e.id}"]`)){const r=document.createElement("a");r.innerHTML="#",r.href=`#${e.id}`,e.insertBefore(r,e.firstChild)}}); |
Install libevent
, then tmux
. Guide here: http://jhshi.me/2016/07/08/installing-tmux-from-source-non-root/index.html
When ./configure
ing tmux
, make sure to: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/libevent/lib
.
References:
^!a:: | |
Send, 12708{Tab}12714{Tab}14039{Tab}14216{Tab}14217{Tab}11800{enter} | |
Return |
Host * | |
Port 22 | |
IdentityFile ~/.ssh/id_ed25519 | |
ServerAliveInterval 120 | |
TCPKeepAlive no | |
# Keep this here, it's (potentially) important | |
# https://serverfault.com/a/869394 | |
# XAuthLocation /opt/X11/bin/xauth | |
# Host with X11 forwarding |