Skip to content

Instantly share code, notes, and snippets.

View zokeber's full-sized avatar
🏠
Working from home

Daniel Lopez Monagas zokeber

🏠
Working from home
View GitHub Profile
@zokeber
zokeber / post-to-slack.sh
Created March 24, 2025 20:34 — forked from stekhn/post-to-slack.sh
Post to Slack using curl on the command line. The incoming webhook for your Slack team needs to be created beforehand.
# Read more about Slack webhooks here: https://api.slack.com/messaging/webhooks
curl -X POST \
-H 'Content-type: application/json; charset=utf-8' \
--data '{ "channel": "#mychannel", "username": "superbot", "icon_emoji": ":bot:", "text": "Foo" }' \
https://hooks.slack.com/services/T00000000/B00000000/XXXXXXXXXXXXXXXXXXXXXXXX

Keybase proof

I hereby claim:

  • I am zokeber on github.
  • I am dlmonagas (https://keybase.io/dlmonagas) on keybase.
  • I have a public key ASC1aGC6Xy8x6GKb6CMWcgQP2N-suZQ9Dqvd-xycl5e4EQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am zokeber on github.
  • I am zokeber (https://keybase.io/zokeber) on keybase.
  • I have a public key whose fingerprint is F049 4971 2A82 00FD C5D2 401A 7960 1035 A0E8 632F

To claim this, I am signing this object:

#!/bin/bash
#
# Install Postgres 9.1, PostGIS and create PostGIS template on a clean Ubuntu 11.10 Oneiric Ocelot box
# http://wildfish.com
# add the ubuntu gis ppa
sudo apt-get -y install python-software-properties
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
@zokeber
zokeber / nginx-init
Created January 30, 2014 03:06
Nginx init CentOS 6
#!/bin/sh
#
# nginx Startup script for nginx
#
# chkconfig: - 85 15
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
# pidfile: /var/run/nginx.pid
# description: nginx is an HTTP and reverse proxy server
@zokeber
zokeber / nodejs
Last active January 4, 2016 13:09
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
SCRIPT="$(basename S0)"
/* Languages */
$('.languages-selector .languages-list').hide();
$('.languages-selector .languages-select').click(function(e) {
$('.languages-selector .languages-list').slideToggle();
e.stopPropagation();
e.preventDefault();
});
$(document).click(function() {
@zokeber
zokeber / emperor.sh
Created January 10, 2014 19:13 — forked from mariuz/emperor.sh
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: emperor
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi emperor app server
# Description: starts uwsgi emperor app server using start-stop-daemon
# On Vagrant Box
wget -c \
http://download.virtualbox.org/virtualbox/4.1.12/VBoxGuestAdditions_4.1.12.iso \
-O VBoxGuestAdditions_4.1.12.iso
sudo mount VBoxGuestAdditions_4.1.12.iso -o loop /mnt
sudo sh /mnt/VBoxLinuxAdditions.run --nox11
rm *.iso