For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
An guide how to activate Windows 11 Pro for free
Because you will get some more features like an Bitlocker and host your device as an External Desktop which can be accessed through the internet
The answer is yes! You can switch from almost any edition to Pro completely for free!
People which already have Pro, but not activated, can skip to this step.
What you first need to do is open CMD (Command Prompt) as Administrator using this keyboard key:
#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:
- Fork the original repo to my account.
- Clone the original repo to my local machine.
- Add my fork as an additional remote and make it the push default.
- Make changes in a new branch locally.
- Push this branch to my fork.
- Create a pull request from there.
-- 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(() => { |