Instantly share code, notes, and snippets.

View NewMW.md
Stderr output

<core_client_version>7.6.31</core_client_version>
<![CDATA[
<stderr_txt>
<search_application> milkyway_separation 1.46 Linux x86_64 double OpenCL </search_application>
View mw_build.sh
#!/bin/bash
mkdir /tmp/MW /tmp/MW/build
cd /tmp/MW
git clone --depth=10 https://github.com/Milkyway-at-home/milkywayathome_client
cd milkywayathome_client
git submodule init
git submodule update --recursive
cd ../build
cmake -DBUILD_32=OFF -DSEPARATION=ON -DNBODY=OFF -DSEPARATION_OPENCL=ON \
View telegraf.conf
# Telegraf Configuration
#
# Telegraf is entirely plugin driven. All metrics are gathered from the
# declared inputs, and sent to the declared outputs.
#
# Plugins must be declared in here to be active.
# To deactivate a plugin, comment out the name and any variables.
#
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config
# file would generate.
View amdgpu_setting.sh
#!/bin/sh
# ref: https://www.phoronix.com/scan.php?page=news_item&px=AMDGPU-Quick-WattMan-Cap-Test
echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level
echo 4 > /sys/class/drm/card0/device/pp_power_profile_mode
View quez.txt
Creating model...
Restoring weights...
Human: What Happens If Trump Wins His Bet on Demagoguery?
Alice: I'm sorry, Your Honor.
Human: How long can we go on like this?
Alice: Well, in that situation there was not an expectation of privacy that he would not have given notice of that event.
Human: Do your best to try to keep party labels out of the debate, because it’s really important, okay?
View .bashrc
# Alternatively, having a symlink of /usr/local/cuda points to installed cuda version
export PATH=/usr/local/cuda-10.0/bin:$PATH
export CUDA_HOME=/usr/local/cuda
View K8s.md
  • DNS mostly fails inside applicatin pods on brand new cluster
  • [KubeDNS not working inside of pod when its contaiers are on the same node with kube-dns containers][1]
  • [Architecture Overview of Kubernetes][2]
  • [Persistent Storage with Persistent Volumes][3] in Kubernetes
  • [K8s readthedocs][4]
  • [Install K8s in Ubuntu][5]
  • [Kubernetes Foundational][6]
View provision.sh
#!/bin/sh
apt-get update && apt-get dist-upgrade -yq
apt-get install -yq vim git apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
apt-get update && apt-get install -yq docker-ce
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list
apt-get update && apt-get install -yq kubelet kubeadm kubernetes-cni
View known.md

had i known

had I known the future,
would I cherish the present
without reminiscing the past?

had I known the end
with the fastest light path,
would I look for the other way?
View fix-routes.sh
#!/bin/sh
# reference: https://github.com/docker/libnetwork/issues/779#issuecomment-231727303
echo "Adding default route to $route_vpn_gateway with /0 mask..."
ip route add default via $route_vpn_gateway
echo "Removing /1 routes..."
ip route del 0.0.0.0/1 via $route_vpn_gateway
ip route del 128.0.0.0/1 via $route_vpn_gateway