Skip to content

Instantly share code, notes, and snippets.

View Zhann's full-sized avatar

Steven De Coeyer Zhann

View GitHub Profile
@Zhann
Zhann / spectre-meltdown-checker.sh
Created January 29, 2018 09:49
Spectre & Meltdown checker
#! /bin/sh
# Spectre & Meltdown checker
#
# Check for the latest version at:
# https://github.com/speed47/spectre-meltdown-checker
# git clone https://github.com/speed47/spectre-meltdown-checker.git
# or wget https://raw.githubusercontent.com/speed47/spectre-meltdown-checker/master/spectre-meltdown-checker.sh
#
# Stephane Lesimple
#
package main
import (
"fmt"
"os"
"os/exec"
"strings"
"github.com/mkideal/cli"
)
# hostnamectl
core@coreos-2 ~ $ sudo hostnamectl set-hostname web-001.coreos.banteng.be
core@coreos-2 ~ $ hostname --fqdn
web-001.coreos.banteng.be
core@coreos-2 ~ $ hostname --domain
coreos.banteng.be
# even manually
# works as expected
core@coreos-1 ~ $ sudo hostnamectl set-hostname 'coreos-1.banteng.be'
core@coreos-1 ~ $ hostnamectl
Static hostname: coreos-1.banteng.be
Icon name: computer-vm
Chassis: vm
Machine ID: fcb997ab81144cdd8486ebed3da426bd
Boot ID: 7f40717efbe34fdbbc1d3efff6141d71
Virtualization: kvm
unbind %
bind-key c new-window -c '#{pane_current_path}'
bind-key '-' split-window -c '#{pane_current_path}'
bind-key | split-window -h -c '#{pane_current_path}'
solr_authentication [] do
foo false
end
@Zhann
Zhann / rest_client.rb
Created March 25, 2015 10:49
recipe compile error
# sock::default recipe
chef_gem 'rest-client'
# libraries/sock.rb
class Chef::Recipe::Sock
require 'rest_client'
#.....
end
setw -g mode-keys vi
# use 256 term for pretty colors
set -g default-terminal "screen-256color"
# increase scroll-back history
set -g history-limit 100000
# decrease command delay (increases vim responsiveness)
set -sg escape-time 1

Keybase proof

I hereby claim:

  • I am zhann on github.
  • I am zhann (https://keybase.io/zhann) on keybase.
  • I have a public key whose fingerprint is F4F4 5499 D3F6 0195 6B47 C916 4599 4F5A EC80 8158

To claim this, I am signing this object:

@Zhann
Zhann / chef-server.conf
Last active March 18, 2019 07:43
Logrotate config for chef-server /etc/logrotate.d/chef-server
/var/log/chef-server/**/*.log {
daily
missingok
rotate 52
compress
delaycompress
notifempty
create 640 root root
sharedscripts
copytruncate