Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Luis Gonzalez funkytaco

🎯
Focusing
Block or report user

Report or block funkytaco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@funkytaco
funkytaco / kubectl.fish
Created Nov 8, 2019 — forked from terlar/kubectl.fish
Kubernetes fish completions
View kubectl.fish
# 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 / README.md
Last active Nov 5, 2019
prometheusoperator.0.27.0 YAML
View README.md

So I found this by googling for prometheusoperator.0.27.0

Found it in Google's cache: https://webcache.googleusercontent.com/search?q=cache:u0dOwNTOWH0J:https://github.com/operator-framework/community-operators/blob/master/upstream-community-operators/prometheus/prometheusoperator.0.27.0.clusterserviceversion.yaml+&cd=1&hl=en&ct=clnk&gl=us

It looks like there was a 0.32.0 version added to OperatorHub 8 days ago, but maybe it's not published yet. https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/prometheus

So just create a new project my-prometheus, update metadata.namespace from 'placeholder' to 'my-prometheus'

View openshift-cheatsheet.md
  • 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
View precommit.md

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

View tsconfig.json
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"lib": [
"es5",
@funkytaco
funkytaco / amazon-rekognition.md
Created Jul 19, 2019 — forked from alexcasalboni/amazon-rekognition.md
Amazon Rekognition - Python Code Samples
View amazon-rekognition.md

Amazon Rekognition - Python Code Samples

  1. Labels Detection
  2. Faces Detection
  3. Faces Comparison
  4. Faces Indexing
  5. Faces Search
@funkytaco
funkytaco / docker-compose.yml
Created Apr 11, 2018 — forked from slipo/docker-compose.yml
Super simple docker compose file giving you a private NEO network and neon-wallet-db ... see comments.
View docker-compose.yml
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 / gist:3102cd8d97c8b9d5a34cc79af19e5586
Last active Oct 14, 2017
unwrap couchdb _all_docs for vuetable-2
View gist:3102cd8d97c8b9d5a34cc79af19e5586
{
total_rows: 5,
offset: 0,
rows: [
{
id: 'b2303bd3712c4894922f3bd04900bb03',
key: 'b2303bd3712c4894922f3bd04900bb03',
value: {
rev: '1-3b717529ff0f515c2c5d8aa52a2c03ab',
},
View headerscalls.js
import axios from 'axios'
function api(user, pass) {
return axios.create({
'X-User':user,
'X-Password':pass
})
}
View headerscalls.js
import axios from 'axios'
function api(user, pass) {
return axios.create({
'X-User':user,
'X-Password':pass
})
}
You can’t perform that action at this time.