scph5500.bin 26-Aug-2018 20:47 512.0K
scph5501.bin 26-Aug-2018 20:47 512.0K
scph5502.bin 26-Aug-2018 20:47 512.0K
#include <sys/ioctl.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int | |
main(void) { | |
struct winsize ws; | |
ioctl(STDIN_FILENO, TIOCGWINSZ, &ws); | |
printf ("lines %d\n", ws.ws_row); |
scph5500.bin 26-Aug-2018 20:47 512.0K
scph5501.bin 26-Aug-2018 20:47 512.0K
scph5502.bin 26-Aug-2018 20:47 512.0K
import express from 'express'; | |
import { OpenAI } from 'openai'; | |
const app = express(); | |
const openai = new OpenAI({ | |
apiKey: 'API_KEY' | |
}); | |
app.use(express.json()); |
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
The problem with large language models is that you can’t run these locally on your laptop. Thanks to Georgi Gerganov and his llama.cpp project, it is now possible to run Meta’s LLaMA on a single computer without a dedicated GPU.
There are multiple steps involved in running LLaMA locally on a M1 Mac after downloading the model weights.
Whenever I want to create pull requests to a repo that I don't have write access to, I:
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
/** | |
* Run this in your browser console and it will delete all of your facebook photos | |
* one after another. | |
* | |
* You will most likely need to fiddle with the css selectors but its basically: | |
* 1. Click edit of first photo | |
* 2. Click delete in dropdown menu | |
* 3. Click confirm in dialog | |
*/ | |
setInterval(() => { |
command | args | description |
---|---|---|
status | [verbose] |
get current WPA/EAPOL/EAP status |
ifname | get current interface name | |
ping | pings wpa_supplicant | |
relog | re-open log-file (allow rolling logs) | |
note | <text> |
add a note to wpa_supplicant debug log |
mib | get MIB variables (dot1x, dot11) | |
help | [command] |
show usage help |
interface | [ifname] |
show interfaces/select interface |