Skip to content

Instantly share code, notes, and snippets.

View sakishum's full-sized avatar
🎯
Focusing

Sakishum sakishum

🎯
Focusing
View GitHub Profile
@sakishum
sakishum / awesomeProject_.idea_awesomeProject.iml
Created September 11, 2018 15:46
Nginx Log Parser By Golang
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
@sakishum
sakishum / mongo-docker.bash
Created January 12, 2019 09:02 — forked from davideicardi/mongo-docker.bash
Running mongodb inside a docker container (with mongodb authentication)
# Create a container from the mongo image,
# run is as a daemon (-d), expose the port 27017 (-p),
# set it to auto start (--restart)
# and with mongo authentication (--auth)
# Image used is https://hub.docker.com/_/mongo/
docker pull mongo
docker run --name YOURCONTAINERNAME --restart=always -d -p 27017:27017 mongo mongod --auth
# Using the mongo "localhost exception" (https://docs.mongodb.org/v3.0/core/security-users/#localhost-exception)
# add a root user
@sakishum
sakishum / html
Created January 17, 2019 02:32
first vue demo
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<!--这是我们的View-->
@sakishum
sakishum / rsyncprogress.py
Created March 7, 2019 02:30 — forked from JohannesBuchner/rsyncprogress.py
Progress bar for rsync
"""
Progress bar for rsync
========================
Shows file progress and total progress as a progress bar.
Usage
---------
Run rsync with -P and pipe into this program. Example::
@sakishum
sakishum / redis_connection_string.go
Created July 3, 2022 06:16 — forked from peterhellberg/redis_connection_string.go
Parsing a Redis connection string for use with go-workers
package main
import (
"fmt"
"net/url"
"strings"
)
func main() {
s := "redis://username:[email protected]:6389/4?pool=25&process=2"