Skip to content

Instantly share code, notes, and snippets.

Avatar

Kamil Monicz Zaczero

View GitHub Profile
@JoeyBurzynski
JoeyBurzynski / sysctl.conf
Created December 11, 2019 07:13
sysctl.conf Optimization / Ubuntu 18.04
View sysctl.conf
# Kernel sysctl configuration file for Linux
#
# Version 1.14 - 2019-04-05
# Michiel Klaver - IT Professional
# http://klaver.it/linux/ for the latest version - http://klaver.it/bsd/ for a BSD variant
#
# This file should be saved as /etc/sysctl.conf and can be activated using the command:
# sysctl -e -p /etc/sysctl.conf
#
# For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and sysctl.conf(5) for more details.
@ookangzheng
ookangzheng / dnsdist-config.md
Created April 14, 2019 09:07
dnsdist config
View dnsdist-config.md
-- listen for console connection with the given secret key
-- controlSocket("0.0.0.0")
-- setKey(please generate a fresh private key with makeKey())

-- start the web server on port 8083, using password 'set a random password here'
-- webserver("0.0.0.0:8083", "set a random password here")

-- accept DNS queries on UDP/5200 and TCP/5200
@richlander
richlander / instructions.md
Last active February 6, 2023 12:17
Installing .NET Core 3.0 on Linux ARM64
View instructions.md

Installing .NET Core on Linux ARM64

The following intructions can be used to install .NET Core on Linux ARM64.

Pro tip: Check out .NET Core Docker files to determine the exact instructions for installing .NET Core builds, for example .NET Core 3.1 ARM32 SDK Dockerfile.

Installing .NET Core Globally

The following instructions install the latest .NET Core globally. It isn't required to do that, but it provides the best experience.

@ladinu
ladinu / encryptedNixos.md
Last active March 16, 2023 02:30
NixOS install with encrypted /boot /root with single password unlock
View encryptedNixos.md

Requirements

  1. Encrypt everthing including /boot and /root
  2. Enter password once
  3. Support UEFI

Installation media setup

Download NixOS minimal iso and copy to USB stick. For example on Mac OSX

$ diskutil list
$ diskutil unmountDisk /dev/disk1 # Make sure you got right device
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active March 28, 2023 16:32
How to add a collapsible section in markdown.
View markdown-details-collapsible.md

How to

<details>
  <summary>Click me</summary>
  
  ### Heading
  1. Foo
  2. Bar
     * Baz
 * Qux
View The Ultimate Bad Ass .bashrc File
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@stereokai
stereokai / gist:36dc0095b9d24ce93b045e2ddc60d7a0
Last active March 25, 2023 00:42
CSS rounded corners with gradient border
View gist:36dc0095b9d24ce93b045e2ddc60d7a0
.rounded-corners-gradient-borders {
width: 300px;
height: 80px;
border: double 4px transparent;
border-radius: 80px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #f00,#3020ff);
background-origin: border-box;
background-clip: padding-box, border-box;
}
@redeemed2011
redeemed2011 / Arch Linux on Encrypted BTRFS Raid.md
Last active January 2, 2022 12:21
Arch Linux LUKS Encrypted / on Btrfs Raid 0 (Stripe) of 2 Drives
View Arch Linux on Encrypted BTRFS Raid.md

General

Info

!ATTENTION! This script is intentionally designed to completely wipe all data on at least two drives! !ATTENTION!

I used standard Arch Linux on two NVME drives. The goal was as much encryption as possible with the smallest performance impact possible.

@pkirkovsky
pkirkovsky / yubikey-reset.sh
Last active February 6, 2023 00:40
Utility for resetting a Yubikey to factory defaults using gpg-connect-agent. This will wipe out any stored keys and reset PINs to default values.
View yubikey-reset.sh
# Adapted from https://developers.yubico.com/ykneo-openpgp/ResetApplet.html
gpg-connect-agent <<EOF
/hex
scd serialno
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40
View Nginx_Cheat_Sheet.md