Skip to content

Instantly share code, notes, and snippets.

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:

class AError < Exception
getter foo
def initialize(@foo : String, message)
super(message)
end
end
class BError < Exception
getter foo
def initialize(@foo : String, message)
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)
# 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
##########################################################################
# 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
# 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
##########################################################################
# 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
@repomaa
repomaa / -
Created January 8, 2018 19:56
[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.
@repomaa
repomaa / -
Created January 8, 2018 19:51
[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
@repomaa
repomaa / -
Created January 8, 2018 19:31
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.