Skip to content

Instantly share code, notes, and snippets.

@nook-ru
nook-ru / gost_engine.md
Last active April 12, 2024 14:20 — 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 June 6, 2024 14:38
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
@yuen26
yuen26 / config.go
Created March 12, 2020 09:08
Golang read YAML file
package config
import "os"
import "log"
import "gopkg.in/yaml.v3"
const CONFIG_PATH = "/path/to/config.yml"
type Config struct {
Conn struct {
@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
@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