Skip to content

Instantly share code, notes, and snippets.

@carmark
carmark / index.html
Created March 9, 2019 11:29
Login form shake effect
<div class="login-form">
<h1>Vini</h1>
<div class="form-group ">
<input type="text" class="form-control" placeholder="Username " id="UserName">
<i class="fa fa-user"></i>
</div>
<div class="form-group log-status">
<input type="password" class="form-control" placeholder="Password" id="Passwod">
<i class="fa fa-lock"></i>
</div>
diff --git a/ml-pipeline/deploy.sh b/ml-pipeline/deploy.sh
index c6310d0..c3fcc3f 100755
--- a/ml-pipeline/deploy.sh
+++ b/ml-pipeline/deploy.sh
@@ -21,10 +21,10 @@ NAMESPACE=kubeflow
APP_DIR=ml-pipeline-app
# Kubeflow directory
-KF_DIR=/kf-app
+KF_DIR=/tmp/kf-app

Get file attributes.

Similar to stat().  The `st_dev` and `st_blksize` fields are ignored. The `st_ino` field is ignored except if the 'use_ino' mount option is given. In that case it is passed to userspace, but libfuse and the kernel will still assign a different inode for internal use (called the "nodeid").

`fi` will always be NULL if the file is not currenly open, but may also be NULL if the file is open.
int (*getattr) (const char *, struct stat *, struct fuse_file_info *fi);

##Read the target of a symbolic link The buffer should be filled with a null terminated string. The buffer size argument includes the space for the terminating null character. If the linkname is too long to fit in the buffer, it should be truncated. The return value should be 0 for success.

package main
import (
"fmt"
"os"
"strings"
"github.com/hyperhq/hyper-api-router/pkg/auth"
"github.com/hyperhq/hyper-api-router/pkg/cell"
package main

import (
	"fmt"
	"os"

	"github.com/hyperhq/hyper-api-router/pkg/auth"

	"github.com/golang/glog"
Yes
docker compose hyper compose detail
build
@carmark
carmark / gist:4aa32cacd4d041448c39ad8deb87135f
Last active March 7, 2024 02:03
A sample Docker workflow with Nginx, Node.js and Redis

For this example, I have a very simple Node.js applications that increments a counter stored on Redis. I want to run Redis and the node application independently as I want to have the ability to scale the node application depending on the load. To start off, I have 3 instances of the node server running the application. I have an Nginx server in front of node for load balancing the node instances.

Let’s now talk in terms of containers, specifically Docker containers. Simple; 1 container for each service/process!

  • 1 Redis container
  • 3 Node containers
  • 1 Nginx container So, the overall picture looks something like this:

Command

compose help

hyper --host=tcp://147.75.195.39:6443 compose --help

Usage:	hyper compose [OPTIONS] <COMMAND>

Commands:
 create Creates containers for a service
1 mbabineau/cfn-bootstrap 1 10M+ https://hub.docker.com/r/mbabineau/cfn-bootstrap/
2 google/cadvisor 144 10M+ https://hub.docker.com/r/google/cadvisor/
3 nginx 2.6K 10M+ https://hub.docker.com/_/nginx/
4 busybox 623 10M+ https://hub.docker.com/_/busybox/
5 openshift/hello-openshift 9 10M+ https://hub.docker.com/r/openshift/hello-openshift/
6 newrelic/nrsysmond 17 10M+ https://hub.docker.com/r/newrelic/nrsysmond/
7 ubuntu 3.7K 10M+ https://hub.docker.com/_/ubuntu/
8 gliderlabs/registrator

Install the follow plugins

  • GIT plugin
  • Git client plugin
  • Git Parameter Plug-In
  • Git server plugin
  • Github Authentication plugin
  • GitHub Pull Request Plugin
  • GitHub pull requests builder
  • SCM Sync Configuration Plugin