Below you will find pages that utilize the taxonomy term “Misc”
Post
Trump
Trump owes millions to state-owned bank in China https://www.salon.com/2020/04/24/newly-revealed-financial-records-show-trump-owes-millions-to-state-owned-bank-in-china-report/
trump will rip off anyone even if he says he’ll pay https://www.independent.co.uk/news/world/americas/i-sold-trump-100000-worth-of-pianos-then-he-stiffed-me-a7335951.html
Post
Pinterest invades google
Pinterest is awful.
This has been growing for years. Here is the typical situation I think more people run into than you think. When you are looking for an image on google image search and find what you are looking for by thumbnail, and click through just to be taken to pinterest.com. Once you land here, you do not see any fragment of what you came for. Instead, you are confronted with a sign up page.
bash
I have been a bash hacker since I started with computers. That being said, I probably have some old habits on this page. This page primarily serves as short snippets of bash recipes I often want to re-use.
A lot of this bash is old and wrong, because I learned bash so long ago (1998?). Refer to http://mywiki.wooledge.org/BashGuide for proper rules.
Simple Logging Redirect Human Size Simple Logging Redirect If you have a bash script you wish to add logging to a simple approach is to use exec and redirect the output to a file.
Post
why use the go programming language?
I have been a go programmer before go 1.0 was released, I think that brings me back to beginning writing go code around 2011. as en exercise I wrote a simple daemon to handle some backend work where concurrency was key and have enjoyed developing it for quite some time. It replaced a python process where many actors needed to operate on a workqueue. This daemon is actually still in produciton today =P
Post
random musings
Would you rather fight 100 duck sized horses or one horse sized duck? Bill Murray weights in https://www.youtube.com/watch?v=THUGHEJjjGc
Notes
interesting tech
Table of Contents
2023 Jan 2018 Oct 2016 hitless haproxy reload go jira http2 keylog xo teleport sftp server library in go toasteroid httpcache Feb 2016 Jan 2016 Nov 2015 Jan 2015 Index Feb 2019 Link Description https://landscape.cncf.io/ the CNCF landscape makes me want to cry Jan 2018 Link Description https://github.com/lewish/asciiflow2 and http://asciiflow.com/ ascii art draw tool. https://github.com/benhoyt/goawk awk fully implemented in go and passes ’the awk test' Oct 2016 gmx - similar to jmx but for go https://github.
Post
golang FAQ
Sections
Network Programming in go Installing golang tools Errors are values Network programming in Go http://whispering-gophers.appspot.com/talk.slide#1
installing golang tools is there any way i could install my go binaries wherever i want using go tools?
answer
typical solution is to install tools in a different GOPATH
export GOPATH="$HOME/go" export PATH="$GOPATH/bin:$PATH" go get -u golang.org/x/tools/cmd/goimports The only portions you should add to your shell environment (ie ~/.bash_profile) is just the PATH portion.
Post
hitler uses docker
video
https://www.youtube.com/watch?v=PivpCKEiQOQ
transcript ------------------------------- we pushed the images to dockerhub, then used docker-compose to deploy to the cluster we mounted data volumes on these nodes and linked app container here finally we've updated the DNS records hitler: so we're running 20 containers on every node now. when can we get rid of the excess servers? mein fuhrer... the kernel... A 3rd party container caused a panic... we've lost 70% of the cluster and the data volumes .
Post
enlightenment
Update: August 2019 I have switched to i3wm (for some time now) exclusively due to its speed and lightweight. I’ll have to write a post about that experience some time.
e20 enlightenment has been my window manager of choice for a very long time maintly because of its speed. I used to run window maker and then fluxbox before I made the switch to enlightenment (0.16 at the time iirc).
keybase
my keybase profile is https://keybase.io/sigmonsays
keybase proof for this site here https://sigmonsays.github.io/keybase.txt
my public key can be downloaded from https://keybase.io/sigmonsays/key.asc or copied and pasted below:
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: Keybase OpenPGP v2.0.49 Comment: https://keybase.io/crypto xsFNBFa1E6kBEADVYWauiTCPmd3cSkim7aRu7Vpl1PLo07KZp/SavvxBNoyKGRMs 8xkpd8kN2LZS2YmjLDCxLmk+UZ3d+FsJTKcpZyBW5lzLsbp/9+l1fF6YmC3fAYk6 9EmnyH6BBr98ECCSuqtGHo6EKHtkWYqI0cTvZhZkFKj1AigmAUS+zWdEYAWriayM rtYPLA+RNXkc4C8+0V1wvmV2RJYGzwCUyvs1QoMrJWSh7H8WB5Zhaw8UPAO5LaKI bx1nD7Jv9jQ//YCUOJ9u/yoGRjrX2Bo/GbTLl+9iOmt3llx/8NS4E7BdcXMm8idP 7ZkIYau31renLyn61Oa63eGPgJQWQbJTHC5lSo6lzcV9nIXeIk3p6kw9cYq/WS6V nmr0SNNK3FY0bzgb8+CifpWFLYxK/qxe+6rWeNBRJyAagZlJcKnxQ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P1u8MdtgqjkbTbNOxkSylMIXY7zDV/ia7OPAN64cy3q9XhhFtu3gXygy 2TIxmivPIofKbh8m2VQxT3wlLKSan3CG0QZ1l7MdPnlDGuj9OBzAabvYWqi0SuIF T4NRKhAAr4peRa9bENapPI73MqljkGsLdAKc7tlNhK42UYW/rY1XXRmUMVdUoJ8+ /+AonDhpa42if1T5qBtWYXcR1QWZ3QKsG++YM4mHNvNhGHYk0jCBRQ461S1NlwZL 6qLSwy6TioYbiG6HXcx6hwATe+2dEpdPzKL7J74IJCQaoMYHius7ttNHU0TfreWy JtNd6L0EN2LxJ13yzGyBImS7f+SEKDwN9GSSJi0oAlr+eNHdCPy5kdVWYilRqKbf uvdZkEHQmSCF1GpT2y2t+yeqiMHxpEEu1MMkUOMwPqtJnKqs5aohHBfcrVfAWlMQ 9GOr8zX8hrhAo1SE946Lapt+aVB2CbH//q21myK+m3NT+NlANxzA4XO3ZzVNofE2 p2uQzcHd2PEfw28uhTsCZbUattjAy5L1qBvkLS4Zo/bGD8iCGiqZLVubtMLjEVMg ycgtEMx5fl2tBeK+xp2fHim3eiCvgIyVizgXpAzVEs2FB6SsGtyymxaZpOGY3QUt eqbj823NhUkuFG7QXAz2W4Z88AgSIstaMcRA8v5H1esVVe1NyxAt82fnICow12pv Bkx4itma/FlbMX7W1dOywiAUJMNc1j+YbqZIzmaR4YX2dJxFs3x+eEHGvlaKHsoX HVyxl75S/iTac90KCKTj+j+lThPJu5m3W31KkMoFF2uAMf6nIso= =5/I3 -----END PGP PUBLIC KEY BLOCK-----
Post
convenient cli tookit using python
python is a incredibly useful language and has a powerful type system which can be pretty convenient. I’ve written python for many years now and when I need a quick tool, most the time I write it in python.
These tools have built up over time and i’ve been collecting them organically into a python startup file as a set of libraries and functions.
create a file in $HOME/.pythonstartup and cherry pick anything below that you find useful.
Post
Google Owned
Ever think about how much information google has collected about you?
Apart from services there are additional things going on that you might not be aware of
Table of Contents
Data Collection Location Services Services Photos Phone Sensors Degoogle Resources Data Collection Data collected is often uploaded to google servers
IMEI, hardware serial number, Wifi MAC address
AndroidID, Google Ad ID
[1] https://www.scss.tcd.ie/Doug.Leith/Android_privacy_report.pdf
Location Services In addition to GPS tracking, there is a service that runs on android phones and looks at available wifi networks to determine your location.
Post
go powered databases
bolt - https://github.com/boltdb/bolt ledis - http://ledisdb.com/ tiedot - https://github.com/HouzuoGuo/tiedot cockroachdb - https://github.com/cockroachdb/cockroach bolt pure go key-value datastore
ledis redis like database written in go
attractive to embed redis like features directly into your application which will reduce operational complexity.
tiedot JSON document database
cockrochdb A Scalable, Geo-Replicated, Transactional Datastore
design document https://docs.google.com/document/d/11k2EmhLGSbViBvi6_zFEiKzuXxYF49ZuuDJLe6O8gBU/edit
feature summary
ACID transactional semantics versioned values primary design goal is consistency and survivability aims to tolerate disk, server, rack and datacenter failures related technologies
Post
ban systemd
updates Nov2014 - an exploit in systemd resolver - https://news.ycombinator.com/item?id=8595335
Just another reason to do one thing well and not try to do too much. C’mon systemd, focus. Please help me understand why a init.d replacement needs to provide a resolver. some gems from this thread “I find the design of systemd-resolved to be very strange. It uses dbus to talk to glibc, and it seems to be a new, from-scratch implementation of a DNS resolver.
Notes
firewall
Just a nasty little adhoc firewall script I use to quickly secure a box for any ports it has open.
Only specific networks are allowed.
#!/bin/bash #set -x iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT iptables -F INPUT #iptables -F FORWARD #iptables -F OUTPUT function clean_networks { grep -v ^# | awk '{print $1}' |grep -v ^$ } # Quick and dirty iptables firewall # We want to drop traffic for any open port if its not in the allowed list of IP addresses # function list_allowed_networks { # the 1918 subnets cat << EOF | clean_networks 10.
Post
building packages with docker
This is a simple idea I had while waiting for a build to complete.
The background Its common to use dpkg-buildpackage inside of a chroot managed by pdebuild. The pdebuild script takes a minimal base image tarball and installs all dependencies in it required to build your package.
The build dependencies come from debian/control Build-Depends section. The package being built is a python application using virtualenv. A lot of the packages come from apt however.
Post
docker wishlist
things I find that I wish docker supported
dockerfile store build context with the image
provides ability to change original dockerfile for images you download saves dockerfile and other build artifacts similar in concept to a “source package” support for variables
There is very little that the dockerfile actually supports beyond basic static directives.
If dockerfile supported templates and variables, we could allow repetitive lines to be reduced to the bare minimum.