➜ uname -r
# get installed kernel version
➜ pacman -S linux-headers
# select kernel version
" Paste text from alacritty (windows) into vim without additional blanklines | |
" Issue: https://github.com/alacritty/alacritty/issues/2324 | |
" | |
" Place this vim file in a plugin directory of vim. Example: $HOME/.vim/plugin/alapasty.vim | |
" Type `:Ap<Cr>` to open up a buffer in insert mode. Use `Shift+Insert` to copy text into this buffer. | |
" Press <Esc> and the text will be formatted and placed in the originating buffer | |
" | |
" Note: This plugin takes care of some common edge-cases when working with code. Make sure the first few lines are | |
" either blank (just line endings is okay) or it has the first line of the content you want to paste. | |
" This is critical because the script uses "%normal jdd" to dispatch repetitive jump and delete motions over the entire file. |
➜ uname -r
# get installed kernel version
➜ pacman -S linux-headers
# select kernel version
Managed By | |
Main Process ProcessPoolExecutor | |
+-------------------------------------------+ +---------------+ | |
| MainThread QTaskRunner | | | | |
| +-----------+ +----------+ | executor.submit | +---------+ | | |
| | | | QThread +------------------->+ | P#1 | | | |
| | | | | | Future | | | | | |
| | | | +<-------------------+ | | | | |
| | | | | | PIPE | | +-----+ | | | |
| | | | +--+-----------------+--->+ | | | |
Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. | |
-- Jamie Zawinski | |
http://codemines.blogspot.com/2006/08/now-they-have-two-problems.html |
01 | |
23 | |
36 | |
FE | |
00 | |
00 | |
60 | |
02 | |
C1 | |
EC |
# Based on elessar theme | |
# https://github.com/fjpalacios/elessar-theme | |
# Which is based on Gitster theme | |
# https://github.com/shashankmehta/dotfiles/blob/master/thesetup/zsh/.oh-my-zsh/custom/themes/gitster.zsh-theme | |
local ret_status="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
function get_pwd(){ | |
git_root=$PWD |
""" | |
From: https://grpc.io/docs/guides/concepts.html | |
Server streaming RPCs where the client sends a request to the server and gets a stream to read a sequence of messages back. The client reads from the returned stream until there are no more messages. gRPC guarantees message ordering within an individual RPC call. | |
rpc LotsOfReplies(HelloRequest) returns (stream HelloResponse){} | |
""" | |
import asyncio | |
import janus |
I hereby claim:
To claim this, I am signing this object:
// gcc -o demo demo.c api.c usb.c -L. -lhidapi-libusb -lrt -lusb-1.0 -ldlpspec -lm -fno-stack-protector | |
#include <stdio.h> | |
#include "common.h" | |
#include "usb.h" | |
#include "api.h" | |
int main() | |
{ | |
USB_Init(); |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<sys/types.h> | |
#include"include/uv.h" | |
struct my_data{ | |
int fd; | |
char *buf; | |
}priv; |