Skip to content

Instantly share code, notes, and snippets.

View psftw's full-sized avatar
👽

Peter Salvatore psftw

👽
View GitHub Profile
$ sctl cat iptables-store
# /usr/lib64/systemd/system/iptables-store.service
[Unit]
Description=Store iptables firewall rules
Before=shutdown.target
DefaultDependencies=No
[Service]
Type=oneshot
ExecStart=/bin/sh -c "/sbin/iptables-save --counters > /var/lib/iptables/rules-save"
@psftw
psftw / keybase.md
Created November 13, 2015 23:53
keybase

Keybase proof

I hereby claim:

  • I am psftw on github.
  • I am psftw (https://keybase.io/psftw) on keybase.
  • I have a public key whose fingerprint is 682A A7DD 56C1 8C1B 71D8 0080 B7F4 2464 6B5A FBF8

To claim this, I am signing this object:

$ sudo emerge -av yubikey-neo-manager
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ~] sys-auth/libyubikey-1.13::gentoo USE="-static-libs" 340 KiB
[ebuild N ] dev-libs/libzip-1.0.1::gentoo USE="-static-libs" 440 KiB
[ebuild N ] dev-qt/qtxmlpatterns-4.8.6-r1:4::gentoo USE="(-aqua) -debug -pch" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild N ] dev-qt/qttest-4.8.6-r1:4::gentoo USE="exceptions (-aqua) -debug -pch" ABI_X86="32 (64) (-x32)" 0 KiB
[ebuild R ] dev-libs/libxml2-2.9.2-r1:2::gentoo USE="ipv6 python readline -debug -examples -icu* -lzma -static-libs {-test}" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_3 (-python3_5)" 0 KiB
$ sudo emerge -av opam
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N ] dev-ml/ocaml-autoconf-1.1::gentoo 11 KiB
[ebuild N ~] dev-lang/ocaml-4.02.3:0/4.02.3::gentoo USE="X ncurses ocamlopt -emacs -latex -xemacs" 2,013 KiB
[ebuild N ~] dev-ml/findlib-1.5.5-r1::gentoo USE="ocamlopt -doc -tk" 235 KiB
[ebuild N ~] dev-ml/camlp4-4.02.1_p3:0/4.02.1_p3::gentoo USE="ocamlopt" 632 KiB
[ebuild N ] dev-ml/xml-light-2.2-r3:0/2.2::gentoo USE="ocamlopt -doc" 22 KiB
@psftw
psftw / gist:99136ae4477c156f6b64
Created October 6, 2015 03:04
debian-based official image vs alpine
$ docker images java
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
java 8-alpine f4391b4a4d9a 56 seconds ago 106.2 MB
java 7-alpine 8eddccde9863 5 minutes ago 119.3 MB
java 8-jre 81f1a5272622 3 weeks ago 487.9 MB
java 7-jre 3360f01309dd 3 weeks ago 334.7 MB
--- a/docker/5.1-all-in-one/Dockerfile
+++ b/docker/5.1-all-in-one/Dockerfile
@@ -1,11 +1,16 @@
-FROM java:7
+FROM java:7-jre
+
+ENV SPAGOBI_DIRECTORY /home/SpagoBI
+ENV MYSQL_SCRIPT_DIRECTORY /home/MySQL
ENV SPAGOBI_VERSION=5.1.0-r24688
$ ./bashbrew/bashbrew.sh list --all --uniq
aerospike:3.5.15
alpine:edge
alpine:3.2
alpine:3.1
alpine:2.7
alpine:2.6
arangodb:2.5.5
arangodb:2.6
buildpack-deps:jessie-curl
@psftw
psftw / gist:1a1c648430776a6362f3
Created July 7, 2015 20:33
/home/db2inst1/sqllib/db2dump/db2diag.log - not sure if these errors are a problem?
2015-07-07-20.15.01.206378+000 I110932E884 LEVEL: Error
PID : 607 TID : 140141263931136 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000 DB : SAMPLE
APPID : *LOCAL.db2inst1.150707201224
HOSTNAME: babcf03bb0ae
FUNCTION: DB2 UDB, database application extension for utilities, sysinstallobjects, probe:100
DATA #1 : String, 6 bytes
POLICY
DATA #2 : signed integer, 4 bytes
1
@psftw
psftw / gist:36b0b08dfc604429a1f3
Created July 7, 2015 18:47
db2express build error
DB2 Setup log file started at: Tue Jul 07 06:42:42 PM 2015 UTC
============================================================
Operating system information: Linux 3.13.0-52-generic.#86-Ubuntu SMP Mon May 4 04:32:59 UTC 2015 x86_64
Product to install: DB2 Express-C
Previously Installed Components:
Selected Components:
@psftw
psftw / gist:762d30f3b9ff570684e3
Created July 6, 2015 14:36
Upgrading computer fun....

Original system had both Windows7 and Gentoo Linux (on separate hard drives). Windows booted the first time on the new system and I only needed to install a few device drivers from the manufacturer. Linux was a trip and went something like:

  1. attempt to boot Gentoo on the new system without any changes - kernel panic and couldn't find anything useful in Google
  2. boot non-UEFI Gentoo USB and chroot in to recompile kernel w/ the new device drivers (I needed to do it anyway)
  3. boot to non-UEFI Arch install on a separate disk - similar kernel panic
  4. verify hardware is good (played 3D games in Windows, memtest, inspect dmesg, ran other diagnostics)
  5. read about BIOS emulation on X99 being a problem for Linux, so decided to switch to UEFI boot (and I didn't have any other great ideas to pursue)
  6. since original install was one big partition on the disk -- split this into a 2M boot partition (for grub2), 128M UEFI boot partition (for my mobo), and the rest -- involved dd'ing the partition to a file