This interactive Neo4j graph tutorial covers entitlements and access control scenarios.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for x in `influx -execute 'show databases' | grep -v -e ^name -e --- -e ^_internal`;do printf "RETENTION POLICIES ON $x \n"; influx -execute "SHOW RETENTION POLICIES ON $x";done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
: ' | |
Example | |
$ ./print-param.sh 4 2 3 4 5 6 | |
4 2 3 4 5 6 | |
4 | |
2 | |
3 | |
4 | |
5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# assuming we want forward message published to exchange ams.* from broker A to broker B | |
# there is no any configuration update on broker A except credential needed by B to connect the upstream | |
# see https://www.rabbitmq.com/federation.html for details | |
# do these on broker B | |
# enable rabbitmq federation plugin | |
rabbitmq-plugins enable rabbitmq_federation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
# these action should be run with sudo level | |
# activate management plugin first | |
rabbitmq-plugins enable rabbitmq_management | |
# restart the rabbitmq-server | |
service rabbitmq-server restart | |
# download the rabbitmqadmin script locally |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y leafpad vim-gnome scribes gedit cream scite geany bluefish kwrite nedit tea | |
sudo apt-get install -y lyx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Proxy setting through jvm opts | |
-Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# push current branch into origin | |
git push origin `git status | grep branch | awk '{print $3}'` | |
# add all modified files | |
git status | grep modified | sed -re 's:^(.+\:)(.+):\2:' | xargs git add && git status | |
# list all project under specific group and grep the ssh url | |
curl --insecure -s "https://gitlab.com/api/v3/groups/oss?private_token=$GIT_TOKEN" | jq '.projects[].ssh_url_to_repo' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apps" : [{ | |
"name" : "sinopia", | |
"script" : "/home/achmad/.nvm/versions/node/v0.12.0/bin/sinopia", | |
"args" : [], | |
"watch" : false, | |
"node_args" : "", | |
"merge_logs" : true, | |
"env": { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple example | |
java -Dcom.sun.akuma.Daemon=daemonized -jar /app/softwares/jenkins-1.613.war --daemon | |
# tuned jvm settings | |
nohup /app/.jenv/candidates/java/1.8.0_60/bin/java -Xms3G -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow -Dcom.sun.akuma.Daemon=daemonized -jar /app/softwares/jenkins-1.613.war --daemon &> /dev/null & |
NewerOlder