Skip to content

Instantly share code, notes, and snippets.

View amezin's full-sized avatar

Aleksandr Mezin amezin

View GitHub Profile
INFO global: Vagrant version: 2.4.7
INFO global: Ruby version: 3.4.4
INFO global: RubyGems version: 3.6.7
INFO global: VAGRANT_DISABLE_STRICT_DEPENDENCY_ENFORCEMENT="1"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/gems/vagrant-2.4.7/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_LOG="debug"
WARN global: vagrant ssl helper was not found, continuing...
DEBUG: No dangling containers to remove
INFO: Repository started
{
"renovateVersion": "32.194.3"
}
DEBUG: Using localDir: /mnt/renovate/gh/ddterm/gnome-shell-extension-ddterm
DEBUG: PackageFiles.clear() - Package files deleted
{
"baseBranches": []
}
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Core(TM) i7-7820X CPU @ 3.60GHz
CPU Family: 0x6
@amezin
amezin / installkernel
Created May 3, 2019 03:50 — forked from andyleejordan/installkernel
Arch Linux development kernel installation script
# Arch Linux development installkernel script
# Andrew Schwartzmeyer <andrew@schwartzmeyer.com>
# See `Documentation/kbuild/kbuild.txt`
# Copy to `/sbin/installkernel`
# Use with `sudo make install`
# Copy the kernel image
cp -v $2 $4/vmlinuz-linux-$1
# Make initial RAM disk
@amezin
amezin / post-commit
Created October 3, 2018 20:56
Linux Kernel post-commit hook (Arch)
exec git show --format=email HEAD | ./scripts/checkpatch.pl --strict --codespell --codespellfile=$(python -c "import site; print(site.getsitepackages()[0])")/codespell_lib/data/dictionary.txt
@amezin
amezin / kv_cache.cpp
Created August 31, 2018 06:03
kv_cache.cpp
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <shared_mutex>
struct i_db
{
bool begin_transaction();
bool commit_transaction();
bool abort_transaction();
@amezin
amezin / gist:3b9aacdee160bb8f2fbd5f895137205f
Created July 30, 2018 20:31
Sapphire Vega 64 default fan control table
[ 2.922936] table->FanMaximumRpm = 3300
[ 2.922937] table->FanThrottlingRpm = 2400
[ 2.922937] table->FanAcousticLimitRpm = 1500
[ 2.922938] table->FanTargetTemperature = 70
[ 2.922948] table->FanPwmMin = 71
[ 2.922949] table->FanTargetGfxclk = 852
[ 2.922949] table->FanGainEdge = 400
[ 2.922949] table->FanGainHotspot = 400
[ 2.922950] table->FanGainLiquid = 400
[ 2.922950] table->FanGainVrVddc = 400
@amezin
amezin / vega64_oc.xml
Last active October 3, 2018 22:39
Sapphire Vega 64 Nitro+ Overclock Profile
<?xml version="1.0" encoding="UTF-8"?>
<GPU DevID="687F" RevID="C1">
<PPW Value="3"/>
<FEATURE ID="4" Enabled="True">
<STATES>
<STATE ID="0" Enabled="True" Value="852"/>
<STATE ID="1" Enabled="True" Value="991"/>
<STATE ID="2" Enabled="True" Value="1084"/>
<STATE ID="3" Enabled="True" Value="1138"/>
<STATE ID="4" Enabled="True" Value="1200"/>
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
import argparse
import time
import zmq
def run_benchmark(endpoint):
c = zmq.Context()
s = c.socket(zmq.PULL)
s.connect(endpoint)