Skip to content

Instantly share code, notes, and snippets.

View vanities's full-sized avatar
🏠
Mining from home

vanities

🏠
Mining from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vanities on github.
  • I am vanities (https://keybase.io/vanities) on keybase.
  • I have a public key ASAsHChXg9bSg1AH92U_EXOAvkiy-t1U73t4lzmY1WFR6wo

To claim this, I am signing this object:

@vanities
vanities / overclock
Created February 12, 2020 05:04
overclocking radeon vii
#!/bin/bash
MEM_CLK=1000
CORE_CLK=1801
CORE_VLT=1110
overclock() {
set -x
i=0
echo "manual" > /sys/class/drm/card$i/device/power_dpm_force_performance_level
echo "s 1 $CORE_CLK" > /sys/class/drm/card$i/device/pp_od_clk_voltage
@vanities
vanities / Verifying my Peepeth
Created August 21, 2018 22:37
Verifying my Peepeth
Verifying my identity on Peepeth.com 0x45b78bc14cf5e0ab1dc33d6731e65784f955545b
@vanities
vanities / watch2.sh
Last active May 9, 2018 03:26
watch coins
#!/bin/bash
new_config=0
old_config=0
remote_file="/home/ethos/remote.conf"
remote_url=$(cat $remote_file)
while true; do
new_config=$(wget -qO- $remote_url)
if [ "$new_config" != "$old_config" ] && [ "$old_config" != 0 ];
# https://wiki.manjaro.org/index.php/Restore_the_GRUB_Bootloader
# https://wiki.archlinux.org/index.php/GRUB#UEFI_systems
sudo su
lsblk -f
# mount rootfs to mnt, ext4
mount /dev/sda1 /mnt
cd /mnt/
Click bottom left icon and click LXTerminal
Enter commands:
Clones the repository
# mkdir git && git clone https://github.com/jaschaknack/PolarisBiosEditor && cd PolarisBiosEditor
Refreshes the sources list, so that when you download packages, you get the correct ips from the mirrors
# sudo apt-get-ubuntu update
@vanities
vanities / docker
Last active March 13, 2018 20:21
docker initialization
docker build -t python-docker .
docker run python-docker
@vanities
vanities / gist:e672d3d9363f18b3b7bb0dee818f23d7
Last active January 30, 2018 18:35
venv virtual environment for python3
Installing venv with python:
python3 -m venv name-your-environment-here
mac & linux
source your-environment-name-here/bin/activate
your-environment-name-here\Scripts\activate.bat
pip3 install keras tensorflow
@vanities
vanities / dd
Last active December 17, 2017 21:53
diskutil unmountDisk /dev/disk3
sudo newfs_msdos -F 16 /dev/disk3
sudo dd bs=32m if=/dev/rdisk3 of=raspbian.img