Skip to content

Instantly share code, notes, and snippets.

Tuan T. Pham neofob

View GitHub Profile
View 01-my-network.yml
network:
version: 2
renderer: networkd
ethernets:
# your ethernet interface(s)
enp6s0:
# dhcp4: true
addresses:
- 192.168.1.42/24
gateway4: 192.168.1.1
View CrunchBox.md

CrunchBox

  • pcpartpicker link of AMD Threadripper based box (1 Radeon VII)
@neofob
neofob / temper.sh
Created Dec 23, 2018
Testing graphite metrics of temper USB sensor
View temper.sh
#!/usr/bin/env bash
# https://github.com/wiryonolau/temper/tree/patch-1
# __author__: tuan t. pham
METRIC_PREFIX=${METRIC_PREFIX:=$HOSTNAME}
METRIC_NAME=${METRIC_NAME:=ambient}
SEND=${SEND:=0}
GRAPHITE_HOST=${GRAPHITE_HOST:=localhost}
GRAPHITE_PORT=${GRAPHITE_PORT:=2003}
@neofob
neofob / NewMW.md
Created Dec 7, 2018
Old and new MW without and with correct Hawaii GPU detection
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>
@neofob
neofob / mw_build.sh
Last active Dec 9, 2018
milkyway at home opencl build
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 \
@neofob
neofob / telegraf.conf
Created Nov 27, 2018
telegraf config
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.
@neofob
neofob / amdgpu_setting.sh
Created Nov 26, 2018
Setting AMD power profile
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
@neofob
neofob / quez.txt
Created Nov 3, 2018
chatbot trained on supreme court oral arguments
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?
@neofob
neofob / .bashrc
Created Nov 1, 2018
tensorflow stuff
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
@neofob
neofob / K8s.md
Last active Oct 25, 2018
Kubernetes
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]
You can’t perform that action at this time.