Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Kamol Mavlonov kamoljan

View GitHub Profile
View marathon-recovery.sh
#!/bin/bash
#read user inputs
echo Git Username:
read GITNAME
echo Git Password:
read GITPASS
echo DCOS URL:
read DCOSURL
View gist:e73f5cb563a4e1d2184c
# build_args() {
# printf " --build-arg %s=%s" "$@"
# }
# sudo docker build $(build_args IMS_AD_PORT IMS_AD_PARSE_APP_ID IMS_AD_PARSE_JS_KEY IMS_AD_AWS_SQS_QUEUE) \
# -t kamoljan/ad:1.0 api
@kamoljan
kamoljan / gist:6407d388e669a8127cb4
Created Feb 17, 2016
how to install aws cli in harrow.io
View gist:6407d388e669a8127cb4
hfold install-awscli
if ! which aws >/dev/null; then
sudo apt-get -y install awscli
fi
hfold --end
View gist:48a71140ac61ed5d98e9
package main
import (
"image"
_ "image/jpeg"
_ "image/png"
"log"
"os"
"github.com/chai2010/webp"
View gist:e4fc31c40661eb3bc3ea
def solution(A):
l = len(A)
if not (0 < l <= 100000):
return -1
s_l = s_r = 0
s = sum(A)
for i in range(l):
@kamoljan
kamoljan / new_gist_file
Created Jan 29, 2014
How to use Go Channel
View new_gist_file
package main
import (
"fmt"
)
func print(i int) string {
if i%3 == 0 {
if i%5 == 0 {
return fmt.Sprintf("%d PipipiPopopo\n", i)
@kamoljan
kamoljan / 0_reuse_code.js
Created Jan 29, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.