cd zk-multiple-kafka-multiple/
docker-compose down
docker-compose up -d
docker ps | grep zkmultiplekafka
# should apply this config if pod could not ping outside internet | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: kube-dns | |
namespace: kube-system | |
data: | |
upstreamNameservers: | | |
["8.8.8.8", "8.8.4.4"] |
# Production ready docker configuration | |
version: '2.0' | |
services: | |
proxy: | |
image: nginx | |
volumes: | |
- /data/jv-console/nginx/nginx.conf:/etc/nginx/nginx.conf | |
- /data/jv-console/nginx/.htpasswd:/etc/nginx/.htpasswd | |
ports: | |
#- "5000:5000" |
#!/bin/sh | |
docker rm -f $(docker ps -qa) | |
docker volume rm $(docker volume ls -q) | |
cleanupdirs="/var/lib/etcd /etc/kubernetes /etc/cni /opt/cni /var/lib/cni /var/run/calico" | |
for dir in $cleanupdirs; do | |
echo "Removing $dir" | |
rm -rf $dir | |
done |
Cian Johnston, July 2017
A couple of weeks ago, I decided I should put my gaming rig to work crypto mining. I did not expect to make any significant profit on this, it was more of a fun project to set up. However, there were a large number of tutorials and guides already out there, and many were more than a year out of date.
This guide assumes the reader already has a crypto wallet set up, is comfortable with Linux and the command line, and knows how to use Google if they run into problems.
The end result is an Ubuntu 16.04 LTS headless server running CUDA ethminer via systemd.
location ~* \.(txt|log|xml|css|js)$ { | |
add_header X-Robots-Tag noindex; | |
} |
location ~* \.(txt|log|xml|css|js)$ { | |
add_header X-Robots-Tag noindex; | |
} |
package components | |
import ( | |
"crypto/rsa" | |
jwt "github.com/dgrijalva/jwt-go" | |
"io/ioutil" | |
"log" | |
"time" | |
) |
/* ======= Desktops and laptops ======= */ | |
@media only screen and (min-width : 1224px) { | |
/*------------ Styles go here ------------- */ | |
} | |
/* ======= Large screens ======= */ | |
@media only screen and (min-width : 1824px) { | |
/*------------ Styles go here ------------- */ | |
} |
// source:http://www.onextrapixel.com/2012/10/12/5-code-snippets-for-interacting-with-wordpress-post-content-effectively/ | |
function auto_nofollow($content) { | |
//return stripslashes(wp_rel_nofollow($content)); | |
return preg_replace_callback('/<a>]+/', 'auto_nofollow_callback', $content); | |
} | |
add_filter('comment_text', 'auto_nofollow'); | |
function auto_nofollow_callback($matches) { | |
$link = $matches[0]; | |
$site_link = get_bloginfo('url'); | |
if (strpos($link, 'rel') === false) { |