Skip to content

Instantly share code, notes, and snippets.

View aranajhonny's full-sized avatar
🏠
Working from home

Jhonny aranajhonny

🏠
Working from home
  • Sky
  • 02:07 (UTC -04:00)
View GitHub Profile
streamer -f jpeg -o out.jpeg -q
@aranajhonny
aranajhonny / knex.js
Last active June 19, 2019 23:13
temp
export const getOrCreateUser = async (email, authId, name) => {
const users = await dbSql.table("user").where("email", email);
if (users.length === 0) {
try {
const result = await dbSql
.transaction(function(trx) {
const id = genId("usr");
dbSql
.table("user")
.transacting(trx)
@aranajhonny
aranajhonny / jest.json
Created May 13, 2019 22:08
jest problem membrane monorepo
"scripts": {
"test": "jest --detectOpenHandles --forceExit --useStderr",
"test:util": "jest --detectOpenHandles --forceExit --useStderr packages/util",
"test:common": "jest --detectOpenHandles --forceExit --useStderr packages/common",
"test:node": "jest --detectOpenHandles --forceExit --useStderr packages/node"
},
https://archivosartesudg.wordpress.com/2012/04/02/carta-de-inconformidad-de-calificacion/
https://es.scribd.com/document/279765279/Carta-de-Reclamo-Universidad#
https://es.slideshare.net/FEUDG/carta-de-inconformidad-de-calificacin
@aranajhonny
aranajhonny / gist:12ee8f39703f91f723a98600b3dc4deb
Created April 12, 2019 16:28
install minikube guide for membrane
install minikube, helm, kubctl, etc
https://docs.bitnami.com/kubernetes/get-started-kubernetes/
for setup tiller
https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-init/
sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b2c9db058043 k8s.gcr.io/pause:3.1 "/pause" 4 minutes ago Up 3 minutes k8s_POD_rethink-0_default_76d26ffa-5d23-11e9-896e-0023ae7a4e21_0
b0c5cfcc2667 k8s.gcr.io/pause:3.1 "/pause" 4 minutes ago Up 3 minutes k8s_POD_fakes3-0_default_74e1e732-5d23-11e9-896e-0023ae7a4e21_0
6bd6aeae5114 k8s.gcr.io/pause:3.1 "/pause" 4 minutes ago Up 3 minutes k8s_POD_rabbit-0_default_7632488d-5d23-11e9-896e-0023ae7a4e21_0
896fe37b94d8 k8s.gcr.io/pause:3.1 "/pause" 4 minutes ago Up 3 minutes k8s_POD_code-0_default_74baf544-5d23-11e9-896e-0023ae7a4e21_0
e22671f41ae5 k8s.gcr.io/pause:3.1 "/pause"
38m Warning Failed pod/node-9986d4cff-xrff9 Error: ImagePullBackOff
86m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-gpp66
76m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-vhrl2
52m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-mgw9v
46m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-9cdkn
39m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-xrff9
32m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-p6wcf
16m Normal SuccessfulCreate replicaset/node-9986d4cff Created pod: node-9986d4cff-dhn2x
86m Normal ScalingReplicaSet
@aranajhonny
aranajhonny / script.sh
Created April 10, 2019 13:47
install minukube in progress
#!/bin/bash
ARCH=$(uname | awk '{print tolower($0)}')
TARGET_VERSION="v0.15.0"
MINIKUBE_URL="https://storage.googleapis.com/minikube/releases/${TARGET_VERSION}/minikube-${ARCH}-amd64"
KUBECTL_VER="v1.5.1"
KUBECTL_URL="http://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VER}/bin/${ARCH}/amd64/kubectl"
echo "installing latest kubectl..."
@aranajhonny
aranajhonny / gist:08ded538d100ade55c3b2d5ee5672d90
Last active April 16, 2019 17:16
links to install helm, minikube, k8s
try https://www.hpe.com/us/en/insights/articles/how-to-learn-kubernetes-with-minikube-1812.html
https://docs.bitnami.com/kubernetes/get-started-kubernetes/#k8_tutorial_step4
https://rancher.com/docs/rancher/v2.x/en/installation/ha/helm-init/
https://docs.bitnami.com/kubernetes/how-to/create-your-first-helm-chart/
https://banzaicloud.com/blog/creating-helm-charts/
@aranajhonny
aranajhonny / gist:8acacf875ae84c0d7fb5b3084b4e9dae
Created March 7, 2019 10:41
start/stop transmission-daemon
sudo systemctl stop transmission-daemon