Skip to content

Instantly share code, notes, and snippets.

View crieke's full-sized avatar

Christopher Rieke crieke

View GitHub Profile

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@crieke
crieke / openssl_commands.md
Created May 15, 2023 16:15 — forked from Hakky54/openssl_commands.md
Some list of openssl commands for check and verify your keys

OpenSSL 🔐

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@crieke
crieke / nginx-wordpress.conf
Created February 2, 2023 19:14 — forked from nfsarmento/nginx-wordpress.conf
Harden wordpress security nginx
############ WordPress ####################
# Disable logging for favicon and robots.txt
location = /favicon.ico {
try_files /favicon.ico @empty;
access_log off;
log_not_found off;
expires max;
}
@crieke
crieke / ParseAsoundCards.php
Created April 7, 2018 22:01 — forked from noohgnas/ParseAsoundCards.php
/proc/asound/cards parsing by PHP
<?php
function FindSoundCardNameById($arr, $id)
{
foreach($arr as $line => $key) {
if ($id == $key["id"])
return $key["name"];
}
}
function GetAsoundCards()