Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.
Avoid being a link dump. Try to provide only valuable well tuned information.
Neural network links before starting with transformers.
This script will create a local LXD image that has a full KDE desktop environment with Xspice as the display server.
./setup-debian-kde-desktop-xspice.sh
lxc init debian-kde-desktop-xspice kde
lxc config device add kde xspicesocket proxy bind=host listen=unix:/tmp/kde.unix connect=unix:/run/xspice/spice.unix uid=1000 gid=1000
lxc start kde
process.on('message', (obj = {}) => { | |
const { id, ms } = obj | |
setTimeout(() => { | |
try { | |
// process.send could throw if | |
// parent process has already exited | |
process.send({ | |
id, | |
ms, |
#!/bin/bash | |
# Prerequisites: http://wiki.openwrt.org/doc/howto/buildroot.exigence | |
# Additionally JDK is needed | |
generate_buildenv() { | |
# Prepare build enviroment | |
mkdir openwrt_build | |
cd openwrt_build | |
git clone --depth=1 git://git.openwrt.org/15.05/openwrt.git |
After publishing my article on ECMAScript 6, some have reached out to ask how I exactly I make it all work.
I refrained from including these details on the original post because they're subject to immiment obsoletion. These tools are changing and evolving quickly, and some of these instructions are likely to become outdated in the coming months or even weeks.
When evaluating the available transpilers, I decided to use 6to5, which has recently been renamed to Babel. I chose it based on:
source "http://rubygems.org" | |
gem "guard-shell" | |
gem "rake" |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l
set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W
.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\
.
Here's how it should work:
" tmux: just send keys against tmux | |
let s:tmux = {} | |
let s:tmux.last_cmd = '' | |
function! s:tmux.is_installed() | |
call system('which tmux') | |
return v:shell_error == 0 | |
endfunction | |
function! s:tmux.is_running() |
ctrl+h/j/k/l
.prefix + ctrl+h/j/k/l
.ctrl+h/j/k/l
. *=cursor position
----------- ----------- ----------- -----------
#! /usr/bin/env python | |
""" Convert values between RGB hex codes and xterm-256 color codes. | |
Nice long listing of all 256 colors and their codes. Useful for | |
developing console color themes, or even script output schemes. | |
Resources: | |
* http://en.wikipedia.org/wiki/8-bit_color | |
* http://en.wikipedia.org/wiki/ANSI_escape_code |