Skip to content

Instantly share code, notes, and snippets.

@nachokb
nachokb / as curl
Last active February 7, 2020 16:54
CloudFlare workers test
curl 'https://hooks.slack.com/services/xyz/xyz/xyz' -X POST -H 'Content-Type: text/plain;charset=UTF-8' --compressed
@nachokb
nachokb / graphiti-links.md
Last active September 20, 2019 01:29
Generating links with Graphiti
2019/02/26 19:33:06 [INFO] Rancher version v2.1.6 is starting
2019/02/26 19:33:06 [INFO] Rancher arguments {ACMEDomains:[k8s.XYZ.ABC] AddLocal:auto Embedded:false KubeConfig: HTTPListenPort:80 HTTPSListenPort:443 K8sMode:auto Debug:false NoCACerts:false ListenConfig:<nil> AuditLogPath:/var/log/auditlog/rancher-api-audit.log AuditLogMaxage:10 AuditLogMaxsize:100 AuditLogMaxbackup:10 AuditLevel:0}
2019/02/26 19:33:06 [INFO] Listening on /tmp/log.sock
2019/02/26 19:33:07 [INFO] Running etcd --peer-client-cert-auth --client-cert-auth --cert-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem --peer-cert-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1.pem --peer-key-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem --data-dir=/var/lib/rancher/etcd/ --peer-trusted-ca-file=/etc/kubernetes/ssl/kube-ca.pem --key-file=/etc/kubernetes/ssl/kube-etcd-127-0-0-1-key.pem --heartbeat-interval=500 --name=etcd-master --listen-peer-urls=https://0.0.0.0:2380 --initial-advertise-peer-urls=https://127.0.0.1:2380 --initial-cluster-stat
@nachokb
nachokb / gist:9f4f949a7fc6a7ed79acc5950b2523a3
Last active January 8, 2019 19:59
connectivity fibertel -> scaleway
#### FIBERTEL => SCALEWAY PAR1
nachokb@valinor👎 mtr -rw -o LDSR 212.47.231.123
Start: 2019-01-07T14:40:08-0300
HOST: valinor Loss% Drop Snt Rcv
1.|-- _gateway 0.0% 0 10 10
2.|-- ??? 100.0 10 10 0
3.|-- ??? 100.0 10 10 0
4.|-- ??? 100.0 10 10 0
5.|-- 150-165-89-200.fibertel.com.ar 0.0% 0 10 10
@nachokb
nachokb / Xorg.log
Created October 2, 2018 07:22
Xorg.log for failing "Gnome on Xorg" session
[ 17023.963] (--) Log file renamed from "/home/USER/.local/share/xorg/Xorg.pid-11696.log" to "/home/USER/.local/share/xorg/Xorg.0.log"
[ 17023.963]
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
[ 17023.963] Build Operating System: Linux 4.4.0-134-generic x86_64 Ubuntu
[ 17023.963] Current Operating System: Linux valinor 4.18.0-8-lowlatency #9-Ubuntu SMP PREEMPT Mon Sep 10 22:28:31 UTC 2018 x86_64
[ 17023.963] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-8-lowlatency root=UUID=06d5f09c-095f-48b5-b863-9932af30cf73 ro quiet splash vt.handoff=1
[ 17023.963] Build Date: 05 September 2018 11:13:19AM
[ 17023.963] xorg-server 2:1.20.1-1ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 17023.963] Current version of pixman: 0.34.0
@nachokb
nachokb / youtube.css
Created September 12, 2018 01:33
Youtube custom CSS
#masthead-container {
position: unset;
}
#page-manager.ytd-app {
margin-top: 0;
}
ytd-watch-flexy[theater] #player-theater-container.ytd-watch-flexy, ytd-watch-flexy[fullscreen] #player-theater-container.ytd-watch-flexy {
max-height: calc( 100vh - 20px ) ;
@nachokb
nachokb / numericality_blank.rb
Last active February 2, 2018 05:00
numericality validator blank string bug (https://github.com/rails/rails/issues/31870)
# frozen_string_literal: true
# rubocop:disable Documentation
begin
require 'bundler/inline'
rescue LoadError => e
$stderr.puts 'Bundler version 1.10 or later is required. Please update your\
Bundler'
raise e
@nachokb
nachokb / _add_title.xlsx.axlsx
Last active April 14, 2017 23:10
`axlsx-rails` gem bug: `invalid byte sequence in UTF-8`. The views are split into multiple files because that seems to help trigger the bug
sh.add_row ['Your message:']

Keybase proof

I hereby claim:

  • I am nachokb on github.
  • I am icarrera (https://keybase.io/icarrera) on keybase.
  • I have a public key ASDkdxSLvI2S5paYWtFSnT6Z-XTZRtTKKGg0H6Lpo__E4wo

To claim this, I am signing this object:

# rubocop:disable Style/DotPosition
# rubocop:disable Style/GlobalVars
# test Rails 5's ActiveRecord OR
system 'rm Gemfile' if File.exist?('Gemfile')
$ar_version = ENV['AR_VERSION']
$ar_version ||= '5.0.0.rc1'
$try_patch = ENV['TRY_PATCH'] == 'true'
$enable_byebug = false