Skip to content

Instantly share code, notes, and snippets.

View paulomcnally's full-sized avatar
:octocat:
JS

Paulo McNally paulomcnally

:octocat:
JS
View GitHub Profile
{ fileName: 'FacturaNo.94605',
date: '8/8/2014',
clientName: 'UNIVERSIDAD POLITECNICA ( UPOLI)',
addess: 'VILLA RUBEN DARIO',
documentNumber: '0000094605',
phoneNumber: '',
sellerName: 'Neyra Vanessa Jiron ',
rows:
[ { units: '10.00',
code: '115020116.00',
<div class="pricing-tables">
<h1 id="detached-wide">
Detached - Wide
</h1>
<div class="row">
<div class="col-sm-4 col-md-4">
<div class="plan">
(function(window, angular, undefined) {'use strict';
var urlBase = "/api";
/**
* @ngdoc overview
* @name lbServices
* @module
* @description
*
@paulomcnally
paulomcnally / spud.middleware.js
Created September 3, 2014 06:17
convert file.properties to file.js with object for krakenjs
var path = require('path');
var fs = require('fs');
var wait = require('wait.for');
var spud = require('localizr/node_modules/spud');
var parseLangTag = function (str) {
var pair, tuple;
if (typeof str === 'object') {
return str;
@paulomcnally
paulomcnally / main.js
Last active August 29, 2015 14:06
Group list from Kannel
var fs = require('fs');
var result = [];
function uniq(a) {
var seen = {};
return a.filter(function(item) {
return seen.hasOwnProperty(item) ? false : (seen[item] = true);
});
}
# Remove all images
docker rmi $(docker images -q)
# Remove all images except "centos" and "my-image"
docker rmi $(docker images | awk '$1!~/centos|my-image/ && NR>1 {print $3}')
# Remove all untagged images
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
# Remove all containers
@paulomcnally
paulomcnally / memcached.stats.pl
Created September 25, 2014 23:05
perl memcached.stats.pl [port]
$port=$ARGV[0];
if ($port eq '') {
print "Message: Can't find \"port\" argument.\n";
exit 1; }
$arg1="echo \"stats\" \| nc 192.168.59.103";
$cmd1=${arg1}.' '.${port};
$arg2="echo \"stats\" \| netcat 192.168.59.103";
$cmd2=${arg2}.' '.${port};
$cmd=${cmd1}.' || '.${cmd2};
@out=`$cmd`;
#!/bin/sh
curl -O https://raw.githubusercontent.com/tjluoma/bash-fix/master/bash-fix.sh
chmod 755 bash-fix.sh
sh bash-fix.sh
@paulomcnally
paulomcnally / proxy.sh
Last active August 29, 2015 14:07
Set proxy on mac
#!/bin/sh
echo '' >>~/.bash_profile
echo '# tor proxy settings' >>~/.bash_profile
echo 'export TOR_PROXY_HOST=192.168.59.103' >>~/.bash_profile
echo 'export TOR_PROXY_PORT=8118' >>~/.bash_profile
echo 'export {http,https,ftp}_proxy="http://$TOR_PROXY_HOST:$TOR_PROXY_PORT"' >>~/.bash_profile
@paulomcnally
paulomcnally / git-flow.sh
Created October 28, 2014 05:56
Git Flow command line
#!/bin/sh
git log --all --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit