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 / .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 / 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
# juggling_balls.py
import random
import turtle
class Ball(turtle.Turtle):
MAX_VELOCITY = 5
GRAVITY = 0.07
BAT_VELOCITY_CHANGE = 8
# juggling_balls_game.py
import turtle
import time
import random
from juggling_balls import Ball
# Game parameters
WIDTH = 600
@BjoernSchilberg
BjoernSchilberg / tetris.py
Created December 8, 2022 18:49 — forked from timurbakibayev/tetris.py
Tetris game in Python
import pygame
import random
colors = [
(0, 0, 0),
(120, 37, 179),
(100, 179, 179),
(80, 34, 22),
(80, 134, 22),
(180, 34, 22),