Skip to content

Instantly share code, notes, and snippets.

View ghostbar's full-sized avatar

Jose-Luis Rivas ghostbar

View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

modify_file() {
sed -i "s/title/date\: $2T00:00:00-04:00\ntitle/" "$1"
}
for item in *.md; do
exists="$(grep "^date: " "$item")"
if [ -z "$exists" ]; then
echo "$item"
what_date="$(echo "$item" | cut -c 1-10)"
modify_file "$item" "$what_date"
#!/usr/bin/env bash
declare versions="versions/armv7l/resnullius-edge/options"
push() {
[[ "$NO_PUSH" ]] && return 0
declare build_files="$1"
for file in $build_files; do
(
#!/usr/bin/env bash
# vim: ft=sh
declare SSH_HOST="${SSH_HOST:-myserver.com}"
declare SSH_USER="${SSH_USER:-uploader}"
declare SSH_PORT="${SSH_PORT:-22}"
declare TAGS="${TAGS:-resnullius/alpine-armv7l:latest resnullius/alpine-armv7l:3.3 resnullius/alpine-armv7l:edge}"
for tag in $TAGS
@ghostbar
ghostbar / a.js
Last active January 31, 2016 05:19
var ee = new (require('events').EventEmitter)()
function init () {
console.log('initialize this function on require')
setTimeout(function () {
ee.emit('init', 'got called!')
}, 2000)
}
init()
var timeoutIds = []
function newTimeout (fn, time) {
return setTimeout(fn, time)
}
function toBeSent () {
console.log('I\'m being called! Timeout!', Date.now())
console.log(timeoutIds)
}
a="google.com
www.facebook.com
www.tunnelbear.com
pastebin.com
pbs.twimg.com/media/Bgyr0dcIQAEbWIX.jpg
www.ntn24.com
www.clarin.com
pastehtml.com
aguacateverde.com
analisis24.com
@ghostbar
ghostbar / loggly.service
Created March 26, 2015 22:57
loggly.service
[Unit]
Description=Loggly Forwarder
[Service]
ExecStart=/bin/sh -c "journalctl -o short -f | awk '{ print \"\<34\>1\", $0; fflush(); }' | awk '{ print $0, \"[your-consumer-token-from-loggly@41058 tag='deis']\" }' | ncat --ssl logs-01.loggly.com 6514"
[Install]
WantedBy=multi-user.target
[X-Fleet]

Keybase proof

I hereby claim:

  • I am ghostbar on github.
  • I am ghostbar (https://keybase.io/ghostbar) on keybase.
  • I have a public key whose fingerprint is D278 F9C1 5E54 61AA 3C1E 2FCD 13EC 43EE B9AC 8C43

To claim this, I am signing this object:

@ghostbar
ghostbar / LICENSE
Last active November 11, 2022 18:30
Copyright © 2014 Jose Luis Rivas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in