Skip to content

Instantly share code, notes, and snippets.

Avatar

Joakim Repomaa repomaa

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am repomaa on github.
  • I am repomaa (https://keybase.io/repomaa) on keybase.
  • I have a public key ASDI5hL8d_ibNHlzfqtjCYIFwlQ0AjW_8TMr9raBrg232Ao

To claim this, I am signing this object:

View play.cr
class AError < Exception
getter foo
def initialize(@foo : String, message)
super(message)
end
end
class BError < Exception
getter foo
def initialize(@foo : String, message)
View play.cr
OPERATIONS_ORDER = %i[crop scale grayscale]
alias CropTuple = NamedTuple(x_coord: Int32, y_coord: Int32, width: Int32, height: Int32)
abstract struct Operation
end
struct Crop < Operation
getter x_coord : Int32, y_coord : Int32, width : Int32, height : Int32
def initialize(**args)
View gist:10485cd4cc04d6d5b2c13528bea05363
# Generated by iptables-save v1.6.1 on Tue Feb 6 12:36:16 2018
*nat
:PREROUTING ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [152:12393]
:POSTROUTING ACCEPT [152:12393]
-A POSTROUTING -s 10.8.0.0/24 -o ens3 -j MASQUERADE
COMMIT
# Completed on Tue Feb 6 12:36:16 2018
# Generated by iptables-save v1.6.1 on Tue Feb 6 12:36:16 2018
View netscan
##########################################################################
# Netscan detected from host 94.130.183.208 #
##########################################################################
time protocol src_ip src_port dest_ip dest_port
---------------------------------------------------------------------------
Mon Feb 5 19:01:11 2018 TCP 94.130.183.208 4001 => 10.1.3.172 55780
Mon Feb 5 19:01:13 2018 TCP 94.130.183.208 4001 => 10.1.3.172 55780
Mon Feb 5 19:01:17 2018 TCP 94.130.183.208 4001 => 10.1.3.172 55780
Mon Feb 5 19:00:24 2018 TCP 94.130.183.208 4001 => 10.240.0.11 44269
View gist:f8a95ca1b4e14a24c61f0f579c839b48
# Generated by ferm 2.4.1 on Sun Jan 28 17:59:33 2018
*filter
:OUTPUT ACCEPT [0:0]
-A OUTPUT --out-interface ens3 --match owner --uid-owner ipfs --destination 10.0.0.0/8 --jump DROP
-A OUTPUT --out-interface ens3 --match owner --uid-owner ipfs --destination 192.168.0.0/8 --jump DROP
-A OUTPUT --out-interface ens3 --match owner --uid-owner ipfs --destination 172.16.0.0/24 --jump DROP
COMMIT
View gist:c15e0f939a767572e1847e37181f0a25
##########################################################################
# Netscan detected from host 94.130.183.208 #
##########################################################################
time protocol src_ip src_port dest_ip dest_port
---------------------------------------------------------------------------
Sun Jan 28 12:57:52 2018 TCP 94.130.183.208 1024 => 172.16.9.111 43864
Sun Jan 28 12:57:53 2018 TCP 94.130.183.208 1024 => 172.16.9.111 43864
Sun Jan 28 12:57:55 2018 TCP 94.130.183.208 1024 => 172.16.9.111 43864
Sun Jan 28 12:57:59 2018 TCP 94.130.183.208 1024 => 172.16.9.111 43864
View -
[root@rescue /]# lvcreate -L 15G vg0 -n root
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
/dev/vg0/root: not found: device not cleared
Aborting. Failed to wipe start of new LV.
View -
[root@rescue /]# pvs -v
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Wiping internal VG cache
Wiping cache of LVM-capable devices
PV VG Fmt Attr PSize PFree DevSize PV UUID
/dev/sda3 volgroup00 lvm2 a-- 91.36g 91.36g <91.37g 6nHngZ-a84D-l7Ti-ZQ0v-BJki-eCwS-ou2nOR
View -
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Wiping internal VG cache
Wiping cache of LVM-capable devices
PV VG Fmt Attr PSize PFree DevSize PV UUID
/dev/sda3 volgroup00 lvm2 a-- 91.36g 91.36g <91.37g 6nHngZ-a84D-l7Ti-ZQ0v-BJki-eCwS-ou2nOR
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
VG Attr Ext #PV #LV #SN VSize VFree VG UUID VProfile
volgroup00 wz--n- 4.00m 1 0 0 91.36g 91.36g vx000K-uXDM-mdeU-A27a-e27P-Qkec-EKNM20
WARNING: Failed to connect to lvmetad. Falling back to device scanning.