Skip to content

Instantly share code, notes, and snippets.

@BjoernSchilberg
BjoernSchilberg / shortcuts.md
Last active February 9, 2024 20:42 — forked from memphys/shortcuts.md
Bash Shortcuts For Maximum Productivity
@BjoernSchilberg
BjoernSchilberg / p.sh
Created January 21, 2024 16:47 — forked from rauchg/p.sh
Perplexity CLI in pure shell
#!/usr/bin/env bash
function p() {
jq -n \
--arg content "$*" \
'{
"model": "pplx-7b-online",
"messages": [
{
"role": "system",
"content": "Be precise and concise."
@BjoernSchilberg
BjoernSchilberg / nvidia.md
Created January 10, 2024 17:51 — forked from standaloneSA/nvidia.md
Nvidia GPUs sorted by CUDA cores
@BjoernSchilberg
BjoernSchilberg / create_wave_file.c
Created December 23, 2023 19:36
How to Write a Wav File in C
// main.c
// https://www.youtube.com/watch?v=8nOi-0kBv2Y
// gcc create_wave_file.c -o create_wave_file -lm
// or clang create_wave_file.c -lm
#include <math.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
@BjoernSchilberg
BjoernSchilberg / .vimrc
Created December 23, 2023 09:25
My .vimrc file I use mostly with gVim
set number
color desert
syntax on
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
@BjoernSchilberg
BjoernSchilberg / journalctl.txt
Last active August 12, 2023 21:23 — forked from MrAndrewMal/journalctl.txt
How to read live-tail logs of multiple services with journalctl
#Systemd - How to read live-tail logs of multiple services with journalctl
sudo journalctl --follow _SYSTEMD_UNIT=docker.service + _SYSTEMD_UNIT=apache2.service
Hint:
https://serverfault.com/questions/805775/journalctl-how-to-display-colors-in-its-output/893763#893763
If the original daemon output is already colorized, but the colors are being lost when using journalctl, the `--output cat` option will restore them.
@BjoernSchilberg
BjoernSchilberg / README.md
Last active April 16, 2024 17:35
Small Solar Projects

Small Solar Projects

Solar Panels

  • https://www.seeedstudio.com/0-5W-Solar-Panel-55x70.html
  • MECCANIXITY Mini Solar Panel Cell 3V 125mA 0.375W 52mm x 52mm for DIY Electric Power Project Pack of 10
  • AOSHIKE 10Pcs 3V 120mA Micro Solar Panels Cells DIY Solar Epoxy Plate Electric Toy Materials Photovoltaic Cells Charger 60mmx55mm/2.36"x2.16"

low-power microcontrollers that could potentially be powered directly from a small solar panel

@BjoernSchilberg
BjoernSchilberg / LICENSE.txt
Created May 4, 2023 20:34 — forked from addyosmani/LICENSE.txt
Offline Text Editor in < 140 bytes (115 bytes). Powered by localStorage & contentEditable
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Copyright (C) 2014 ADDY OSMANI <addyosmani.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
@BjoernSchilberg
BjoernSchilberg / Makefile
Created May 4, 2023 08:24 — forked from alexedwards/Makefile
Boilerplate Makefile for Go projects
# Change these variables as necessary.
MAIN_PACKAGE_PATH := ./cmd/example
BINARY_NAME := example
# ==================================================================================== #
# HELPERS
# ==================================================================================== #
## help: print this help message
.PHONY: help