Skip to content

Instantly share code, notes, and snippets.

View brunohq's full-sized avatar

Bruno Costa brunohq

View GitHub Profile
@brunohq
brunohq / keybase
Created September 17, 2019 14:06
keybase
### Keybase proof
I hereby claim:
* I am brunohq on github.
* I am brunohq (https://keybase.io/brunohq) on keybase.
* I have a public key ASDr-fYQZRnDXnpskRgXtKTdLkdvWRcD8i5F1e2RgQpU6Qo
To claim this, I am signing this object:
<template>
<div id="mail-app" class="columns">
<div class="column is-2 aside" style="overflow-y: auto;">
<vault-list
v-on:select-current-vault="switchCurrentVault"
v-on:create-vault="createNewVault" >
</vault-list>
<div>{{ user.username ? user.username : user.identityAddress }}</div>
</div>
@brunohq
brunohq / blockstack.txt
Created April 26, 2018 16:26
Blockstack Verification
Verifying my Blockstack ID is secured with the address 19fKbXNmJPRhrUY4oArsEQ1GVJv9zkDhTT https://explorer.blockstack.org/address/19fKbXNmJPRhrUY4oArsEQ1GVJv9zkDhTT
@brunohq
brunohq / delete-channel-messages.js
Created August 28, 2017 11:05 — forked from firatkucuk/delete-slack-messages.js
Deletes slack public/private channel messages.
var https = require('https');
// CONFIGURATION #######################################################################################################
var token = 'SLACK TOKEN';
var channel = 'CHANNEL ID';
var privateChannel = false;
var delay = 300; // delay between delete operations in millisecond
// GLOBALS #############################################################################################################
@brunohq
brunohq / copy-to-clipboard-bookmarklet.md
Created August 24, 2017 15:44 — forked from stefanmaric/copy-to-clipboard-bookmarklet.md
Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard

Copy-to-clipboard Bookmarklet

Create Bookmarklet (browser bookmark that executes Javsacript) to copy a given text to Clipboard.

This is the base javascript:

(function (text) {
  var node = document.createElement('textarea')
  var selection = document.getSelection()
@brunohq
brunohq / zapier_webhook_bookmarklet.js
Last active May 16, 2019 14:50
Bookmarklet to trigger a Zapier Webhook from any web age. The title and url of the current webpage go as parameters.
javascript:(function()
{
var iframe = document.createElement('iframe');
iframe.name = 'response';
iframe.style.visibility = 'hidden';
document.body.appendChild(iframe);
var form = document.createElement('form');
form.style.visibility = 'hidden';
form.method = 'post';
@brunohq
brunohq / index.php
Last active August 8, 2018 22:04
Geckboard Dashboard
<?php
date_default_timezone_set('Europe/London');
$now = date('F j, g:i:s a');
$entity = "Anonymous";
if(isset($_GET["entity"])) $entity = trim($_GET["entity"]);
$action = "visit";
if(isset($_GET["action"])) $action = trim($_GET["action"]);
$ip = $_SERVER['REMOTE_ADDR'];
@brunohq
brunohq / post-commit
Created May 11, 2012 14:37
git post-commit hook to update referenced task status in Asana with commit message
#!/bin/bash
apikey=$(git config user.asana-key)
if [ $apikey == '' ] ; then exit 0; fi
comment=$(git log --pretty=oneline -n1)
taskid_pattern='.*#([0-9]*).*'
if [[ $comment =~ $taskid_pattern ]]; then
taskid=${BASH_REMATCH[1]}
apikey=$(git config user.asanakey)