- Unlock manual fan & overclock settings
sudo nvidia-xconfig -a --cool-bits=28 --allow-empty-initial-configuration
- Reboot system
- Create script
/usr/local/bin/gpu-fan-control.sh
#!/bin/bash
import datetime | |
import linecache | |
import os | |
import pynvml3 | |
import torch | |
print_tensor_sizes = True | |
last_tensor_sizes = set() | |
gpu_profile_fn = f'{datetime.datetime.now():%d-%b-%y-%H:%M:%S}-gpu_mem_prof.txt' |
from telethon import TelegramClient | |
from telethon.tl.functions.channels import GetParticipantsRequest | |
from telethon.tl.types import ChannelParticipantsRecent | |
from telethon.utils import get_input_peer | |
api_id = 123456 # Use your own values here. https://my.telegram.org | |
api_hash = '0123456789abcdef0123456789abcdef' | |
phone_number = '+34600000000' | |
client = TelegramClient('%sessionname%', api_id, api_hash) # feel free to edit %sessionname% as you want |
""" | |
Affine transforms implemented on torch tensors, and | |
only requiring one interpolation | |
Included: | |
- Affine() | |
- AffineCompose() | |
- Rotation() | |
- Translation() | |
- Shear() |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this: