Skip to content

Instantly share code, notes, and snippets.

@hanetzer
hanetzer / srcarchppc64bootblock.S
Created December 28, 2019 19:32
src/arch/ppc64/bootblock.S
/*
* This file is part of the coreboot project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; version 2 of
* the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@hanetzer
hanetzer / $ cat colorsvimdiff.vim;
Created December 25, 2019 06:54
$ cat colors/vimdiff.vim;
$ cat colors/vimdiff.vim
highlight DiffAdd cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffDelete cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffChange cterm=bold ctermfg=10 ctermbg=17 gui=none guifg=bg guibg=Red
highlight DiffText cterm=bold ctermfg=10 ctermbg=88 gui=none guifg=bg guibg=Red
@hanetzer
hanetzer / $ cat pluginsettingsappearance.vim ;
Created December 25, 2019 06:53
$ cat plugin/settings/appearance.vim ;
$ cat plugin/settings/appearance.vim
set relativenumber
set number
set ruler
set colorcolumn=81
set background=dark
highlight ColorColumn ctermbg=Black ctermfg=DarkRed
" not technically appearance but eh.
set mouse=
@hanetzer
hanetzer / $ docker ps -a;
Created December 20, 2019 17:16
$ docker ps -a;
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
17dc7ae516a2 openwisp/openwisp-nginx:latest "sh init_command.sh" 3 minutes ago Up 3 minutes 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp docker-openwisp_nginx_1
c95f8def295a openwisp/openwisp-freeradius:latest "/docker-entrypoint.…" 3 minutes ago Up 3 minutes 0.0.0.0:1812-1813->1812-1813/udp docker-openwisp_freeradius_1
71fc41f1f8fc openwisp/openwisp-websocket:latest "supervisord --nodae…" 3 minutes ago Up 3 minutes 8004/tcp docker-openwisp_websocket_1
01a7c852a3d6 openwisp/openwisp-radius:latest "bash init_command.sh" 3 minutes ago Up 3 minutes 8002/tcp docker-openwisp_radius_1
9f38a14
@hanetzer
hanetzer / $ docker-compose logs dashboard;
Created December 20, 2019 17:14
$ docker-compose logs dashboard;
$ docker-compose logs dashboard
Some services (celery, celerybeat, controller, daphne, dashboard, freeradius, nginx, postfix, postgres, radius, redis, topology, websocket) use the 'deploy' key, which will be ignored. Compose does not support 'deploy' configuration - use `docker stack deploy` to deploy to a swarm.
Attaching to docker-openwisp_dashboard_1
dashboard_1 | Waiting for database to become available...
dashboard_1 | Connection with database established.
dashboard_1 | Waiting for redis to become available...
dashboard_1 | Connection with redis established.
dashboard_1 | Operations to perform:
dashboard_1 | Apply all migrations: account, admin, auth, authtoken, config, connection, contenttypes, geo, openwisp_radius, openwisp_users, pki, reversion, sessions, sites, socialaccount, topology
dashboard_1 | Running migrations:
@hanetzer
hanetzer / stdin
Created October 16, 2019 01:44
stdin
-- Logs begin at Wed 2019-10-16 00:58:32 UTC, end at Wed 2019-10-16 01:13:30 UTC. --
Oct 16 00:58:32 talos kernel: Booting Linux on physical CPU 0x0
Oct 16 00:58:32 talos kernel: random: get_random_bytes called from start_kernel+0x3c/0x3ec with crng_init=0
Oct 16 00:58:32 talos kernel: Linux version 4.13.16-efdfeab01ad28ff1330134170153cee0b730671b (yocto-build@apollo) (gcc version 6.2.0 (GCC)) #1 Sun Jun 17 19:44:14 CDT 2018
Oct 16 00:58:32 talos kernel: CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
Oct 16 00:58:32 talos kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Oct 16 00:58:32 talos kernel: OF: fdt: Machine model: Talos™ II BMC
Oct 16 00:58:32 talos kernel: Memory policy: Data cache writeback
Oct 16 00:58:32 talos kernel: cma: Reserved 16 MiB at 0x9d800000
Oct 16 00:58:32 talos kernel: On node 0 totalpages: 110592
@hanetzer
hanetzer / stdin
Created October 8, 2019 08:42
stdin
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-O2 -pipe -march=znver1"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
@hanetzer
hanetzer / $ 7z b;
Created October 6, 2019 00:48
$ 7z b;
$ 7z b
7-Zip [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.utf8,Utf16=on,HugeFiles=on,64 bits,16 CPUs AMD Ryzen 7 1700 Eight-Core Processor (800F11),ASM,AES-NI)
AMD Ryzen 7 1700 Eight-Core Processor (800F11)
CPU Freq: - - 64000000 - - - 512000000 - -
RAM size: 64252 MB, # CPU hardware threads: 16
RAM usage: 3530 MB, # Benchmark threads: 16
@hanetzer
hanetzer / $ cat config ;
Created September 8, 2019 21:36
$ cat config ;
$ cat config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 5.0.10 Kernel Configuration
#
#
# Compiler: aarch64-buildroot-linux-musl-gcc.br_real (Buildroot 2019.05-git-00928-g9152387703-dirty) 8.3.0
#
CONFIG_CC_IS_GCC=y
@hanetzer
hanetzer / stdin
Created August 19, 2019 18:13
stdin
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_SYSVIPC=y
CONFIG_POSIX_MQUEUE=y
CONFIG_AUDIT=y
CONFIG_GENERIC_IRQ_DEBUGFS=y
CONFIG_NO_HZ_IDLE=y
CONFIG_HIGH_RES_TIMERS=y
CONFIG_PREEMPT=y
CONFIG_IRQ_TIME_ACCOUNTING=y
CONFIG_BSD_PROCESS_ACCT=y