Skip to content

Instantly share code, notes, and snippets.

@jakesylvestre
jakesylvestre / verify_certificate.go
Created January 10, 2021 17:06 — forked from devtdeng/verify_certificate.go
Verify a certificate with chain with golang crypto library
package main
import (
"crypto/x509"
"encoding/pem"
"io/ioutil"
"log"
"os"
)
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
@jakesylvestre
jakesylvestre / rescuetime.md
Last active July 7, 2020 13:33
Rescuetime Post-commit hook setup

Enabling global rescuetime commit hooks

  1. Enable git templates: git config --global init.templatedir '~/.git-templates'
  2. Create a directory for global hooks: mkdir -p ~/.git-templates/hooks
  3. Download your post commit hook from here
  4. Move the commit hook: mv /path/to/post-commit ~/.git-templates/hooks/.
  5. Make sure your system has permission to execute the file: chmod -R a+x ~/.git-templates/hooks

Wasabi: b768041f25b9e37b547f84029fb2536fc3b094ca8db59088fce44903db269ea6 Wasabi: 6f757373191bbf2a375d99d09150b4b098cd2c7586036deb1310467aaefe34b6 Wasabi: b994a9cbdc20e971207bde4f800b9ce99dba35478a2a997bc48e7f9f80bd2d02 Basic transaction: 2f17c08654e518f3ee46dd1438b58ef52b772e8cbc446b96b123d680a80bc3f7 Address reuse: 0f7bf562c8768454077f9b5c6fe0c4c55c9a34786ad7380e00c2d8d00ebf779d Block reward: 2157b554dcfda405233906e461ee593875ae4b1b97615872db6a25130ecc1dd6 Input merges + address reuse: b527350146e2a37aff219a63bbf9b8e10f9ba12ab32aa4a70d680742917a281f Aggregation: e979d30a933c8c3e4e512b3812a74f483a9073957e860236ff103b819a1eaf15

@jakesylvestre
jakesylvestre / keybase.md
Last active March 4, 2020 12:25
keybase.md

Keybase proof

I hereby claim:

  • I am jakesyl on github.
  • I am jakesyl (https://keybase.io/jakesyl) on keybase.
  • I have a public key whose fingerprint is 47F5 21AA A8C0 4F8C 5BF0 E33A F715 0134 F53E 357C

To claim this, I am signing this object:

@jakesylvestre
jakesylvestre / vultr-coreos-bootstrap.sh
Created October 16, 2019 00:42 — forked from janeczku/vultr-coreos-bootstrap.sh
Cloud-config for CoreOS IPXE deployment on Vultr. Provisioning etcd, fleet, private network and docker compatible firewall. #tags: foo, bar
#!/bin/bash
# Cloud-config for CoreOS IPXE deployment on Vultr
##################################################
# This cloud-config bootstraps CoreOS on /dev/vda and provisions:
# - private ip-address on eth1
# - etcd on private network
# - fleet on private network
# - basic firewall (docker compatible)
# - SSHd security hardening
##################################################
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ git checkout patch-1
Branch 'patch-1' set up to track remote branch 'patch-1' from 'origin'.
Switched to a new branch 'patch-1'
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ git pull
Already up to date.
Jakes-MacBook-Pro:DefinitelyTyped jakesylvestre$ npm run test
> definitely-typed@0.0.3 test /private/tmp/DefinitelyTyped
> node node_modules/types-publisher/bin/tester/test.js --run-from-definitely-typed
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
import {
createDropdown,
addToolbarToDropdown
} from '@ckeditor/ckeditor5-ui/src/dropdown/utils';
export default class MergeFields extends Plugin {
static get pluginName() {
return 'mergeFields';
}
gistup
gistup