Skip to content

Instantly share code, notes, and snippets.

View funkytaco's full-sized avatar

Luis Gonzalez funkytaco

View GitHub Profile
@funkytaco
funkytaco / gist:3f1354fc553a0538b2f2
Created June 17, 2015 18:59
reddit alternatives
http://voat.co/
More reddit alternatives that didn't get the same love as voat:
Digg - http://digg.com/
Boing Boing! - http://boingboing.net/
Snapzu http://snapzu.com/list/ - Excellent content and community. Has a bit of a learning curve because of some of the unique functionality they provide, but worth it.
Empeopled http://empeopled.com/ - Gives you more influence based on the amount of up-votes you've received. Use influence to steer future of the site.
The Needs http://theneeds.com/ - Good content but a lot of it looks automated, possibly using bots. No discussion so you lose a lot of that community feel.
'use strict';
/*
* Defining the Package
*/
var Module = require('meanio').Module;
var Registration = new Module('registration');
/*
@funkytaco
funkytaco / gist:87fd34b5ef863ebbc120
Created August 8, 2015 20:58
Example PHP-MVC controller
<?php
namespace Main\Controllers;
use \Klein\Request;
use \Klein\Response;
use \Main\Renderer\Renderer;
//use \Main\PDO;
use \Main\Mock\PDO;
@funkytaco
funkytaco / destroy_docker_images.sh
Created September 8, 2015 20:53
Destructive Docker cleanup
#!/bin/sh
# Destroy all Docker containers
docker rm $(docker ps -a -q)
# Destroy all Docker images
docker rmi $(docker images -q)
@funkytaco
funkytaco / gist:0aea055e0d036944af20
Created September 12, 2015 23:07
Dev Talk Funhouse
<?php
namespace FunHouse;
Class Person {
var $name = 'Ellen';
}
namespace FunHouse\Rooms;
@funkytaco
funkytaco / _etc_consul.d_consul.json
Last active October 22, 2015 20:45 — forked from ianunruh/consul.sh
Install Consul on CentOS 7 AMD64
{
"server": true,
"rejoin_after_leave": true,
"enable_syslog": false,
"syslog_facility": "local5",
"data_dir": "/var/consul/data",
"ui_dir": "/var/consul/ui",
"datacenter": "dc1",
"statsd_addr": "<some IP>:8125",
"recursor": "<some IP>"
@funkytaco
funkytaco / Query-Registry.ps1
Created October 14, 2015 20:36 — forked from so0k/Query-Registry.ps1
Query a docker registry v2/_catalog endpoint from powershell
[CmdletBinding()]
Param(
[Parameter(Mandatory=$True,Position=1)]
$Filter=".*",
#TODO: handle https & no basic auth as well..
$RegistryEndpoint = "registry.mysite.com",
$UserName = "user",
$Password = "password"
)
@funkytaco
funkytaco / Cases.sql
Created October 14, 2015 21:28
Remedy Oracle Backend Case Statements
case status
when 0 then 'New'
when 1 then 'Assigned'
when 2 then 'In Progress'
when 3 then 'Pending'
when 4 then 'Resolved'
when 5 then 'Closed'
when 6 then 'Cancelled'
else to_char(status)
end status
@funkytaco
funkytaco / SendRemedyIncidentEmail.vbs
Created October 14, 2015 21:30 — forked from MyITGuy/SendRemedyIncidentEmail.vbs
Used to send an email using Remedy contents
Sub SendRemedyIncidentEmail()
Const adUseClient = 3
Const adOpenStatic = 3
Const adLockPessimistic = 2
' Remedy User Name
Const AR_SYSTEM_ODBC_DRIVER_UID = ""
' Password for Remedy User Name (AR_SYSTEM_ODBC_DRIVER_UID)
Const AR_SYSTEM_ODBC_DRIVER_PWD = ""
' Port used by the Remedy server
@funkytaco
funkytaco / sample-remedy-connector-usage
Created October 14, 2015 21:31 — forked from adrianhsieh/sample-remedy-connector-usage
Sample code of using the MuleSoft BMC Remedy Connector
<enricher doc:name="Message Enricher" source="#[payload]" target="#[flowVars['itsm-event-data']]">
<remedy:get-single username="${remedy.read.username}" password="${remedy.read.password}" config-ref="RemedyConnection" id="#[message.outboundProperties['remedy_event_id']]" type="${remedy.outbound.table}" idBased="#[true]" doc:name="get-event-details"/>
</enricher>
<set-payload value="#[message.outboundProperties['remedy_form_id']]" doc:name="Set Payload"/>
<choice doc:name="Choice">
<when expression="#[message.outboundProperties['remedy_form'] == '${helpdesk.form}']">
<remedy:query username="${remedy.read.username}" password="${remedy.read.password}" config-ref="RemedyConnection" query="('Incident Number' = &quot;#[payload]&quot;)" type="${helpdesk.form}" idBased="#[true]" doc:name="query-helpdesk-form"/>
<set-payload value="#[payload.get(0)]" doc:name="Get first entry"/>
</when>
<otherwise>