Skip to content

Instantly share code, notes, and snippets.

@woosley
woosley / dmesg
Created February 6, 2020 04:13
VM information
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.0-862.11.6.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC) ) #1 SMP Tue Aug 14 21:49:04 UTC 2018
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.10.0-862.11.6.el7.x86_64 root=UUID=316f8b9b-386f-49df-9fca-f2971f86d0d1 ro console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 rootdelay=300 net.ifnames=0
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffeffff] usable
@woosley
woosley / gist:29d6e4fcb4df3f18a372168c25c6ed51
Created October 13, 2017 03:28
netdata bash build output
[/usr/src/netdata.git/makeself/tmp/bash-4.4]# make -j1
rm -f mksyntax
gcc -DPROGRAM='"bash"' -DCONF_HOSTTYPE='"x86_64"' -DCONF_OSTYPE='"linux-gnu"' -DCONF_MACHTYPE='"x86_64-unknown-linux-gnu"' -DCONF_VENDOR='"unknown"' -DLOCALEDIR='"/opt/netdata/share/locale"' -DPACKAGE='"bash"'
-DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -g -O2 -Wno-parentheses -Wno-format-security -static -L./lib/termcap -static -rdynamic -g -O2 -Wno-parentheses -Wno-format-security -rdynamic -g -O2 -
Wno-parentheses -Wno-format-security -o mksyntax ./mksyntax.c
./mksyntax.c: In function 'main':
./mksyntax.c:322:19: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
if ((progname = strrchr (argv[0], '/')) == 0)
^~~~~~~
./mksyntax.c:322:19: warning: incompatible implicit declaration of built-in function 'strrchr'
Script started on Fri 13 Oct 2017 02:12:06 AM UTC
ESCkroot@localhost:~/code/netdataESC\[root@localhost netdata]# ip aESC^H^HESC[9@ps -ef|grep dockerESC^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^Hip a ESC^H^H^Hsystemctl status firewalld^MESC[CESC[CESC[CESC[CESC[CESC[C
ESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[CESC[Cip a ESC^H^H^HESC[14@ps -ef|grep dockerESC^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^H^HESC[9Pdocker psESC^H^H^H^H^H^H^H^HESC[6PESC[1PESC[K^G^G./makeself/bui^Gld-x86_64-static.sh
[/root/code/netdataESC[0m^O]# ESC[1mESC[33msudo docker run -v /root/code/netdata:/usr/src/netdata.git:rw alpine:3.6 /bin/sh /usr/src/netdata.git/makeself/install-alpine-packages.sh ESC[0m^O
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.6/community/x86_64/APKINDEX.tar.gz
v3.6.2-165-g4c29d05978 [http://dl-cdn.alpinelinux.org/alpine/v3.6/main]
v3.6.2-162-g93ed1f72fd [http://dl-cdn.alpinelinux.org/alpine/v3.6/community]
@woosley
woosley / awsh.sh
Last active January 26, 2016 08:18
#!/bin/bash
function on_exit(){
printf "\033kbash\033\\"
tmux set-window-option automatic-rename on >/dev/null 2>&1
}
if [ $TERM = "screen" ];then
trap on_exit SIGINT SIGTERM
#hostname
@woosley
woosley / gist:3168999
Created July 24, 2012 09:09
parse::recdescent problem
#!/usr/bin/perl
use strict;
use warnings;
use Parse::RecDescent;
$RD_HINT = 1;
$RD_TRACE = 1;
my $gramma = <<'EOF';
line: "hello" /\s+/ "world" eof
eof: /^\Z/
EOF
@woosley
woosley / gist:1092111
Created July 19, 2011 12:08
POE port forward
#!/usr/bin/perl
use strict;
use warnings;
use Smart::Comments;
use POE
qw/Wheel::SocketFactory Wheel::ReadWrite Filter::Stream Driver::SysRW/;
POE::Session->create(
inline_states => {
_start => \&_create_socket,
@woosley
woosley / gist:1061847
Created July 3, 2011 00:54
html formhandler form definition
package SEA::Forms::User;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Model::DBIC';
use namespace::autoclean;
use Digest::MD5 qw/md5_hex/;
has '+name' => (default => 'user');
has '+auto_fieldset' => (default => 0);
has '+item_class' => (default => 'User');
has '+dependency' => (default => sub { [[qw/password confirm/]] });