Skip to content

Instantly share code, notes, and snippets.

View b-reich's full-sized avatar

Benjamin Reich b-reich

View GitHub Profile
@b-reich
b-reich / # solo2-cli - 2022-08-08_10-50-23.txt
Created August 8, 2022 14:37
solo2-cli on macOS 12 - Homebrew build logs
Homebrew build logs for solo2-cli on macOS 12
Build date: 2022-08-08 10:50:23
@b-reich
b-reich / docker-compose.yml
Created July 6, 2022 12:20
homeassistant stack
version: '3'
services:
home-assistant:
container_name: home-assistant
image: homeassistant/home-assistant
volumes:
- ./data/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: host
#!/bin/bash
xrandr --query | grep ' connected' | grep 1920 > /dev/null
result=$?
if [ $result -ne 0 ]; then
# WQHD
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
gsettings set org.gnome.nautilus.icon-view default-zoom-level standard
gsettings set org.gnome.desktop.interface cursor-size 32
@b-reich
b-reich / solution.py
Created June 3, 2021 19:21
Coding Game: Skynet Revolution
import sys
import math
# Auto-generated code below aims at helping you parse
# the standard input according to the problem statement.
# n: the total number of nodes in the level, including the gateways
# l: the number of links
# e: the number of exit gateways
@b-reich
b-reich / hetzner.yml
Last active January 28, 2022 14:50
Hetzner Ansible
---
- name: Create a Server
hosts: localhost
connection: local
gather_facts: False
user: root
vars:
hcloud_token: xxxx
tasks:
- name: Create a basic server
This file has been truncated, but you can view the full file.
:: Synchronizing package databases...
core is up to date
downloading extra.db...
downloading community.db...
multilib is up to date
oscloud is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
@b-reich
b-reich / docker-compose.yml
Created March 2, 2020 20:48
homeassistant
version: '3'
services:
home-assistant:
container_name: home-assistant
image: homeassistant/home-assistant
volumes:
- ./data/home-assistant:/config
- /etc/localtime:/etc/localtime:ro
restart: always
network_mode: host
#!/bin/bash
xrandr --query | grep ' connected' | grep 1920 > /dev/null
result=$?
if [ $result -ne 0 ]; then
# WQHD
gsettings set org.gnome.desktop.interface text-scaling-factor 1.5
gsettings set org.gnome.nautilus.icon-view default-zoom-level standard
gsettings set org.gnome.desktop.interface cursor-size 32