Skip to content

Instantly share code, notes, and snippets.

package main
import (
"crypto/cipher"
"crypto/rand"
"fmt"
"io"
"log"
"os"
"strings"
@ykcab
ykcab / ioreaderwriter-stream.go
Created August 8, 2020 15:51
CAUTION: not tested in production
package main
import (
"compress/gzip"
"io"
"log"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
@ykcab
ykcab / san.conf
Created April 29, 2019 18:24
openssl san csr request
[ req ]
default_bits = 4096
prompt = no
encrypt_key = yes
default_md = sha256
distinguished_name = dn
req_extensions = req_ext
[ dn ]
CN = <fqdn>
@ykcab
ykcab / FeodoIPTracker.txt
Last active September 6, 2018 20:52
A wrap-up list of know malicious IP. as provided by Feodo
##########################################################################
# Feodo IP Blocklist #
# Generated on 2018-09-06 16:13:34 UTC #
# #
# For questions please refer to https://feodotracker.abuse.ch/blocklist/ #
##########################################################################
# START
1.178.179.217
1.179.170.7
1.93.0.224
@ykcab
ykcab / rsyslog.conf
Created June 18, 2018 20:34 — forked from kenshinx/rsyslog.conf
rsyslog configure sample
# rsyslog configuration file
# note that most of this config file uses old-style format,
# because it is well-known AND quite suitable for simple cases
# like we have with the default config. For more advanced
# things, RainerScript configuration is suggested.
# For more information see /usr/share/doc/rsyslog-*/rsyslog_conf.html
# If you experience problems, see http://www.rsyslog.com/doc/troubleshoot.html
#### MODULES ####
@ykcab
ykcab / LICENCE SUBLIME TEXT
Created January 14, 2017 23:14
Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07