Creating common layouts With Tailwind using css grid & Flex box.
- CSS Grid: for the main page layout (header, main content, sidebar, footer)
// Requires GNU C23: GCC >= 15 or Clang >= 21 | |
#include <stddef.h> | |
#include <string.h> | |
#define affirm(c) while (!(c)) unreachable() | |
#define lenof(a) (iz)(sizeof(a) / sizeof(*(a))) | |
#define new(a, n, t) (t *)alloc(a, n, sizeof(t), _Alignof(t)) | |
#define maxof(t) ((t)-1<1 ? (((t)1<<(sizeof(t)*8-2))-1)*2+1 : (t)-1) | |
#define S(s) (Str){(u8 *)s, lenof(s)-1} |
#!/bin/bash | |
# Source: https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html | |
[[ -n "${AWS_ACCESS_KEY_ID}" ]] || { echo "AWS_ACCESS_KEY_ID required" >&2; exit 1; } | |
[[ -n "${AWS_SECRET_ACCESS_KEY}" ]] || { echo "AWS_SECRET_ACCESS_KEY required" >&2; exit 1; } | |
readonly parameterName="SlawekTestParam" | |
readonly method="POST" |
# This is a shell archive. Remove anything before this line, then | |
# unpack it by saving it in a file and typing "sh file". (Files | |
# unpacked will be owned by you and have default permissions.) | |
# | |
# This archive contains: | |
# Makefile ping.1 ping.c ping.shar newping.1 newping.c | |
echo x - Makefile | |
cat > "Makefile" << '//E*O*F Makefile//' |
#!/usr/bin/env bash | |
set -uo pipefail | |
STATUS_CHUNKS="${STATUS_CHUNKS:-10}" | |
URL="${1:-}" | |
if [[ "$URL" == "" ]] | |
then | |
echo >&2 "Usage: $0 URL" | |
exit 1 |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
#!/usr/local/bin/lua | |
function T(l, v, r) | |
return {left = l, value = v, right = r} | |
end | |
function visit(t) | |
if t ~= nil then -- note: ~= is "not equal" | |
visit(t.left) | |
coroutine.yield(t.value) |
package main | |
import ( | |
"log" | |
"net" | |
) | |
func main() { | |
// listen to incoming udp packets | |
pc, err := net.ListenPacket("udp", ":1053") |
A super simple guide to spinning up a Tor hidden service. [tl;dr]
Ubuntu 20.04 LTS was used for the making of this guide.
you can install Tor using the following command