Skip to content

Instantly share code, notes, and snippets.

View funkytaco's full-sized avatar

Luis Gonzalez funkytaco

View GitHub Profile
import axios from 'axios'
function api(user, pass) {
return axios.create({
'X-User':user,
'X-Password':pass
})
}
@funkytaco
funkytaco / docker-compose.yml
Created April 11, 2018 22:48 — forked from slipo/docker-compose.yml
Super simple docker compose file giving you a private NEO network and neon-wallet-db ... see comments.
version: '3'
services:
neon-wallet-db:
container_name: "neon-wallet-db"
image: slipoh/neon-wallet-db:latest
environment:
- MONGOURL=mongodb:27017
- MONGOPASS=neo
- MONGOUSER=gas
- MONGOAPP=test
@funkytaco
funkytaco / amazon-rekognition.md
Created July 19, 2019 06:41 — forked from alexcasalboni/amazon-rekognition.md
Amazon Rekognition - Python Code Samples

Amazon Rekognition - Python Code Samples

  1. Labels Detection
  2. Faces Detection
  3. Faces Comparison
  4. Faces Indexing
  5. Faces Search
@funkytaco
funkytaco / tsconfig.json
Created October 24, 2019 05:55 — forked from wilk/tsconfig.json
tsconfig
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"lib": [
"es5",
@funkytaco
funkytaco / precommit.md
Created October 24, 2019 06:34 — forked from yungblud/precommit.md
Pre Commit

package.json

  "scripts": {
    "precommit": "npm run precommit:client && npm run precommit:server",
    "precommit:client": "cd client && npm run precommit",
    "precommit:server": "cd server && npm run precommit"
  },

server/package.json

@funkytaco
funkytaco / openshift-cheatsheet.md
Created October 28, 2019 02:31 — forked from shawon100/openshift-cheatsheet.md
My Openshift Cheatsheet
  • Binary Builds
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app 
  • Turn off/on DC triggers to do a batch of changes without spam many deployments
@funkytaco
funkytaco / kubectl.fish
Created November 8, 2019 20:49 — forked from terlar/kubectl.fish
Kubernetes fish completions
# kubernetes - is an open source system for managing containerized
# applications across multiple hosts, providing basic mechanisms for
# deployment, maintenance, and scaling of applications.
# See: https://kubernetes.io
function __kubectl_no_command
set -l cmd (commandline -poc)
if not set -q cmd[2]
return 0
end
@funkytaco
funkytaco / gist:0d48fb987673599fecd4a2e8cc3d53c6
Last active March 25, 2020 13:49 — forked from abutcher/gist:ad9271655e4fe63a2740
Openshift - Regenerate ose dns entries
#!/usr/bin/env oo-ruby
require "/var/www/openshift/broker/config/environment"
Rails.configuration.analytics[:enabled] = false
Mongoid.raise_not_found_error = false
class Regenerate
def self.run
entries = []
Application.all.each do |app|
---
- name: Create partitions on master
hosts: masters
become: yes
tasks:
- name: Create LVEtcd logical volume
lvol:
lv: LVEtcd
size: 10g
# A test to see if a route can bind to endpoints w/o a svc.
# Create an endpoints
apiVersion: v1
kind: Endpoints
metadata:
labels:
app: console
name: console-test
namespace: openshift-console