Skip to content

Instantly share code, notes, and snippets.

@dfd
dfd / lenovo-z13-voidlinux-install.md
Created June 17, 2024 05:39 — forked from adamarbour/lenovo-z13-voidlinux-install.md
Lenovo z13 Void Linux Field Notes

Void Linux Field Notes (Lenovo z13 Edition)

This contains the notes from my installation of Void Linux onto my Lenovo z13 (gen1) laptop1 with the following specs:

  • AMD Ryzen™ 7 PRO 6860Z
  • 13.3" 2.8K (2880 x 1800) OLED
  • 32 GB LPDDR5 6400MHz
  • Integrated AMD Radeon™ 680M Graphic
  • WiFi 6E 802.11AX
  • WWAN Fibocom L860-GL-16 4G CAT16

Footnotes

  1. https://download.lenovo.com/pccbbs/mobiles_pdf/z13_z16_gen1_hmm_en.pdf

@dfd
dfd / pg-pong.py
Created December 5, 2016 22:12 — forked from karpathy/pg-pong.py
Training a Neural Network ATARI Pong agent with Policy Gradients from raw pixels
""" Trains an agent with (stochastic) Policy Gradients on Pong. Uses OpenAI Gym. """
import numpy as np
import cPickle as pickle
import gym
# hyperparameters
H = 200 # number of hidden layer neurons
batch_size = 10 # every how many episodes to do a param update?
learning_rate = 1e-4
gamma = 0.99 # discount factor for reward
@dfd
dfd / model.stan
Created October 17, 2016 02:21 — forked from MatsuuraKentaro/model.stan
Tweedie distribution in Stan
data {
int N;
int M;
real<lower=0> Y[N];
}
parameters {
real<lower=0> mu;
real<lower=0> phi;
real<lower=1, upper=2> theta;
# The scenario for this script is that I have a home server that crashed.
# The server used some duplication and balancing of data across 4 disk drives,
# 3 of which were still working. The files from all three were copied
# to seperate directories on a NAS, named HPSERVER1, HPSERVER2, and HPSERVER3.
# The directory structure on each disk mirrored each other, except empty folders
# were missing.
# This script was run to move the files and folders from all three disk drives
# into one consolidated folder (HPSERVER1). I manually deleted the other two
# after checking the result