Skip to content

Instantly share code, notes, and snippets.

View kawaii's full-sized avatar
mediocre programmer

Kane Valentine kawaii

mediocre programmer
View GitHub Profile
@Xliff
Xliff / AddingDefaultsToMAIN.md
Last active October 30, 2020 09:35
Adding default values to your USAGE in Raku

Here's a little trick that will allow you to add your default values to the usage message in Raku. Unfortunately, this has to be done by example.

sub USAGE {
  my $u = $*USAGE;

  for &MAIN.signature.params -> $p {
    given $p.name {
 when '$port' {
@bom-d-van
bom-d-van / ddos.txt
Created February 12, 2017 11:46
Detecting and Mitigating DDOS Attacks
Detecting and Mitigating DDOS Attacks
#List all Finish (FIN) packets
machine1 : sudo /usr/sbin/tcpdump -Nnn -i any -s0 'tcp[13] & 1 != 0'
#List all SYN and SYN-ACK packets
machine1 : sudo /usr/sbin/tcpdump -Nnn -i any -s0 'tcp[13] & 2 != 0'
@magnetikonline
magnetikonline / README.md
Last active April 30, 2024 00:45
Setting Nginx FastCGI response buffer sizes.