Skip to content

Instantly share code, notes, and snippets.

@nook-ru
nook-ru / gost_engine.md
Last active August 22, 2025 16:06 — forked from beglov/gost_engine.sh
Настройка ГОСТ OpenSSL под Ubuntu 20.04 (18.04)
  1. Устанавливаем ГОСТ-овское шифрование sudo apt install libengine-gost-openssl1.1

  2. Правим конфиг sudo nano /etc/ssl/openssl.cnf

  3. В начало файла:

    openssl_conf = openssl_def
    
@peteristhegreat
peteristhegreat / Readme.md
Last active September 20, 2025 21:07
Realtek bluetooth usb adapter RTL8671b
@itaysk
itaysk / Makefile
Created April 29, 2020 10:19
Embed file in Go using ELF section
build:
go build -o _main
objcopy --add-section myfile=myfile _main main
@geoah
geoah / go-mTLS.go
Last active November 9, 2023 08:43
package main
import (
"crypto/ed25519"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"math/big"
DPDtables.sql:
xsltproc xsdtosql.xsl ~/tmp/vitosoft/DPDefinitions.xsd | sed -e '/^\s*$$/d;s/^\s*CREATE/CREATE/g' > $@
all: clean DPDtables.sql
clean:
rm -f DPDtables.sql
@17twenty
17twenty / reader.go
Created March 10, 2016 03:22 — forked from jedy/reader.go
processes communicate with shared memory in golang
package main
// #include <stdlib.h>
// #include "wrapper.c"
import "C"
import "unsafe"
import "fmt"
func read(filename string) string {
f := C.CString(filename)
@memphys
memphys / shortcuts.md
Created March 28, 2012 12:22
Bash Shortcuts For Maximum Productivity

source: http://www.skorks.com/2009/09/bash-shortcuts-for-maximum-productivity/

Command Editing Shortcuts

  • Ctrl + a – go to the start of the command line
  • Ctrl + e – go to the end of the command line
  • Ctrl + k – delete from cursor to the end of the command line
  • Ctrl + u – delete from cursor to the start of the command line
  • Ctrl + w – delete from cursor to start of word (i.e. delete backwards one word)
  • Ctrl + y – paste word or text that was cut using one of the deletion shortcuts (such as the one above) after the cursor