Skip to content

Instantly share code, notes, and snippets.

0xe1f02fCc48c1C686a777C02C2df6A841226dBF71
@fforbeck
fforbeck / clean-up-boot-partition-ubuntu.md
Created September 6, 2018 01:06 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@fforbeck
fforbeck / PLEDGE AGREEMENT.txt
Last active May 4, 2018 21:45
- Fixed \centered tag using additional line break - Fixed signature form - Fixed apostrophe issue
\centered **PLEDGE AGREEMENT**
This PLEDGE AGREEMENT (this "**Agreement**") is made as of July 14, 2010, by and between DESERT HAWK GOLD CORP., a Nevada corporation (the "**Pledgor**"), and DMRJ GROUP I, LLC, a Delaware limited liability company, or its successors and assigns (the "**Secured Party**").
\centered **RECITALS**
^A. Contemporaneously with the execution and delivery hereof, the Pledgor and the Secured Party entered into that certain Investment Agreement, dated as of the date hereof, pursuant to which the Secured Party agreed to make available to the Pledgor a senior secured term loan credit facility of up to $6,500,000 for the purpose of, among other things, providing capital to the Secured Party for the conduct of certain mining activities (as the same may be amended, modified, supplemented, renewed, restated, extended or replaced, the "**Investment Agreement**").
^B. Pledgor is the owner of 2,713,636 shares of common stock, par value $0.001 per share, of Blue Fin Capital, Inc., a Utah corp
@fforbeck
fforbeck / gist:cad4cc5049c19d2958b6464b7a88e15c
Created February 2, 2018 16:15 — forked from mmdemirbas/gist:3656288
Aggresive MySql Stored Procedure Debugging
DECLARE E INT DEFAULT 0;
DECLARE M TEXT DEFAULT NULL;
DECLARE CONTINUE HANDLER FOR 1000 SET E='1000', M="hashchk";
DECLARE CONTINUE HANDLER FOR 1001 SET E='1001', M="isamchk";
DECLARE CONTINUE HANDLER FOR 1002 SET E='1002', M="NO";
DECLARE CONTINUE HANDLER FOR 1003 SET E='1003', M="YES";
DECLARE CONTINUE HANDLER FOR 1004 SET E='1004', M="Can't create file '%s' (errno: %d)";
DECLARE CONTINUE HANDLER FOR 1005 SET E='1005', M="Can't create table '%s' (errno: %d)";
DECLARE CONTINUE HANDLER FOR 1006 SET E='1006', M="Can't create database '%s' (errno: %d)";
@fforbeck
fforbeck / wt-wttr-in.js
Last active November 3, 2017 18:34
Simple webtask I created to retrieve the current weather from Slack with command: `/wt wttr-in <city-name>`.
const got = require('got');
module.exports = (ctx, cb) => {
var weatherForCity = 'http://api.openweathermap.org/data/2.5/weather?&units=metric&APPID=8b49f82415341963f8768cce938de042&q=' + ctx.body.text;
got(weatherForCity)
.then(response => {
var json = JSON.parse(response.body);
var weather = json.weather[0].description + ', ' + json.main.temp + ' celcius';
cb(null, { text: weather});
})
@fforbeck
fforbeck / keybase.md
Created November 27, 2016 23:33
keybase

Keybase proof

I hereby claim:

  • I am fforbeck on github.
  • I am fforbeck (https://keybase.io/fforbeck) on keybase.
  • I have a public key ASCsk2AV2WsPAhosHTW23A9I0NuwzfIHdSzpSnKYRaCUUgo

To claim this, I am signing this object:

@fforbeck
fforbeck / hashtag_filter.json
Created July 13, 2016 18:42
ES Template config to preserve hashtag and mentions from tweets, so they can be queried.
"settings": {
"analysis": {
"filter": {
"hashtag_filter": {
"type": "word_delimiter",
"type_table": [
"# => ALPHA",
"@ => ALPHA"
]
}
@fforbeck
fforbeck / set_msg_size_policy.sh
Created June 7, 2016 21:43
Increase RabbitMQ message size for a queue using policy
sudo rabbitmqctl set_policy -p host --apply-to queues max-msg-size "^queue.name.pattern$" '{"max-length-bytes":100000000}'
@fforbeck
fforbeck / csr_conf.template
Last active May 24, 2016 18:30
Script to generate csr, key and crt
[ req ]
distinguished_name="req_distinguished_name"
prompt="no"
[ req_distinguished_name ]
C="<country>"
ST="<state>"
L="1234"
O="1234"
CN="{DOMAIN}"
@fforbeck
fforbeck / purge_queue.sh
Last active March 8, 2016 16:26
RabbitMQ - Purge Queue
rabbitmqctl purge_queue "<target.queue>" -p <vhost>