Skip to content

Instantly share code, notes, and snippets.

2018-10-15 16:06:48,287 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,288 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,288 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,288 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,288 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,289 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,289 INFO [AsyncHBase I/O Worker #3] HBaseClient: Resolved IP address for host: basic04.wann.net is: 192.168.135.23
2018-10-15 16:06:48,289 INFO [AsyncHBase I/O Worker #3] HBaseClient: Re
@bwann
bwann / gist:cbe5775471cc554a788e23fa7053f461
Created September 4, 2018 23:15
Chef gem install rugged 0.27.0 failure
[root@cca47713 g1]# /opt/chef/embedded/bin/gem install /root/g1/rugged-0.27.0.gem -q --no-rdoc --no-ri
checking for pkg-config... yes
-- cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
@bwann
bwann / README.md
Last active March 19, 2024 00:43
Tunnelling SSH over SSL/TLS

How to tunnel SSH over SSL/TLS

laptop ssh -> laptop stunnel -> evil network -> internet -> your server -> your server ssh

Server (your shell server/home box/work box/whatever)

Sets up a stunnel process listening externally on port 2443/tcp, forwards to localhost 22/tcp

  • Install stunnel, e.g. yum install stunnel
  • Install server config snippet to /etc/stunnel/stunnel.conf
<mock-chroot> sh-4.3# cat fedora-release
Fedora release 26 (Rawhide)
<mock-chroot> sh-4.3# make -f Makefile.am install-buildrequires
srcdir="" && \
: ${srcdir:=.} && \
pkglist="$(grep ^BuildRequires: ${srcdir}/anaconda.spec.in | cut -d ' ' -f 2)" && \
if ! [[ $(uname -m) =~ s390x? ]]; then \
pkglist=$(echo "$pkglist" | grep -v s390utils) ; \
fi ; \
securityspy.earliest_video 1470546202 458.820833333 camera=kitchen
securityspy.camera_bytes 1470546202 7932361974 camera=kitchen type=motion
securityspy.camera_bytes 1470546202 6560247008 camera=kitchen type=capture
securityspy.camera_mbytes 1470546202 7564 camera=kitchen type=motion
securityspy.camera_mbytes 1470546202 6256 camera=kitchen type=capture
securityspy.earliest_video 1470546202 309.056111111 camera=catcam
securityspy.camera_bytes 1470546202 3524686937 camera=catcam type=motion
securityspy.camera_bytes 1470546202 55904854616 camera=catcam type=capture
securityspy.camera_mbytes 1470546202 3361 camera=catcam type=motion
securityspy.camera_mbytes 1470546202 53315 camera=catcam type=capture
18:34:35,606 INFO program: Running... grub-install --just-copy
18:34:35,813 DEBUG program: Return code: 0
18:34:35,816 INFO program: Running... grub --batch --no-floppy --device-map=/boot/grub/device.map
18:34:36,295 INFO program:
18:34:36,297 INFO program:
18:34:36,297 INFO program: GNU GRUB version 0.97 (640K lower / 3072K upper memory)
18:34:36,298 INFO program:
18:34:36,299 INFO program: [ Minimal BASH-like line editing is supported. For the first word, TAB
18:34:36,299 INFO program: lists possible command completions. Anywhere else TAB lists the possible
18:34:36,300 INFO program: completions of a device/filename.]
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: scribe
Version: 2.02
Release: 2%{?dist}
Summary: A server for aggregating log data streamed in real time
Group: Development/Libraries
License: ASL 2.0
URL: http://developers.facebook.com/scribe
@bwann
bwann / ks.cfg
Last active April 21, 2016 21:20
Kickstart %traceback scripts
# Can have multiple %traceback per kickstart
# Bash example:
%traceback
#
# traceback/common: custom traceback handler
#
echo "wann.net traceback handler firing"
ls -l /tmp/anaconda-tb*
echo "hello world!"
@bwann
bwann / scribe-kickstart.patch
Created January 18, 2016 12:40
Scribe logging support for anaconda
Python bindings sources (also provides a python /usr/bin/scribe_cat)
fb303-python-0.0-0.el6.20090505svn770888.x86_64.rpm
scribe-python-2.01-2.el6.x86_64.rpm
thrift-python-0.0-0.el6.20090505svn770888.x86_64.rpm
- extract with rpm2cpio
- move directories from python2.6/site-packages to python2.7/site-packages
@bwann
bwann / gist:bbc6819ac4069e847d64
Created June 9, 2015 21:39
RouterOS / Cloud Router Switch config, basic VLAN
This basically throws all 1GE/10GE ports and switch CPU interface onto the same VLAN 10.
The RouterOS config should be equivalent to this Cisco IOS example, with a software
virtual interface (SVI) on VLAN 10, and all switchports are set to access/edge on VLAN 10:
!
vlan 10
!
interface Vlan10
ip address 192.168.110.2 255.255.255.0