Skip to content

Instantly share code, notes, and snippets.

View sloppylopez's full-sized avatar
:octocat:

Sloppy Lopez sloppylopez

:octocat:
View GitHub Profile
@sloppylopez
sloppylopez / prerequisites_install.sh
Last active August 29, 2015 14:21
sloppylopez/docker_elk_stack pre-requisites boiler plate
#!/bin/bash
#Pre-requisites
#sudo apt-get install -y -qq build-essential TODO check if mandatory
sudo apt-get install -y -qq nodejs npm wget curl git python ruby-full
#Install travis-cli command line to be able to encrypt api_keys in the Travis build
sudo gem install travis
#Encrypt your code climate key for Travis build and add it automatically to your .travis.yml
#remember explicitly declare this variables in
#https://travis-ci.org/<YOUR_GIT_USER>/<YOUR_GIT_PROJECT_NAME>/settings/env_vars
alias dcub='docker-compose up --build'
alias dcu='docker-compose up'
alias stopContainers='docker stop $(docker ps -a -q)'
alias removeContainers='docker rm $(docker ps -a -q)'
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
@sloppylopez
sloppylopez / livereload.conf
Created October 30, 2017 09:46 — forked from kengoldfarb/livereload.conf
livereload nginx reverse proxy settings
location /livereload {
proxy_pass http://localhost:35729;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
pragma solidity ^0.4.21;
contract TimesheetContract {
string timesheetHash = '';
address owner;
function TimesheetContract() {
owner = msg.sender;
}
@sloppylopez
sloppylopez / whoListenAt.fish
Created April 6, 2019 23:34
Find a process listening on targte port
function whoListenAt
echo -e "Checking who is listening at" $argv[1] '🎳' | colorStuff
lsof -nP -i4TCP:$argv[1] | grep LISTEN
end
@sloppylopez
sloppylopez / lsa.fish
Created April 6, 2019 23:35
ls -thrall
function lsa
echo "Listing 'ls -trhall' 🍺" | colorStuff
ls -thrall
end
@sloppylopez
sloppylopez / findByName.fish
Created April 6, 2019 23:35
sudo find $argv[1] -name $argv[2]
function findByName
echo 'Finding by name' $argv[2] '@' $argv[1] '🍿' | colorStuff
sudo find $argv[1] -name $argv[2] | colorStuff
end
@sloppylopez
sloppylopez / dps.fish
Created April 6, 2019 23:35
docker ps -a
function dps
echo -e "Listing Docker Containers 🐳" | colorStuff
docker ps $argv
end