Skip to content

Instantly share code, notes, and snippets.

View aclowkey's full-sized avatar

Alex Chaplianka aclowkey

View GitHub Profile
@jeygeethan
jeygeethan / reinstall_docker.sh
Last active November 17, 2019 07:11
reinstall docker on any machine
#!/usr/sh
sudo service docker stop && sudo apt-get purge -y docker-engine && sudo apt-get autoremove --purge -y docker-engine && sudo rm -rf /var/lib/docker && sudo apt-get update && sudo apt-get install -y docker-engine && sudo service docker start && sudo docker run hello-world && sudo usermod -aG docker $USER
@jovianlin
jovianlin / get_available_gpus.py
Created October 3, 2016 09:58
Get List of Devices in TensorFlow
from tensorflow.python.client import device_lib
def get_available_gpus():
local_device_protos = device_lib.list_local_devices()
return [x.name for x in local_device_protos if x.device_type == 'GPU']
get_available_gpus()
@luidgigromat
luidgigromat / Enable soft-wrap for Visual Studio Code.txt
Last active June 3, 2024 14:05
Enable soft-wrap for Visual Studio Code
1. Open VS Code
2. Press Ctrl + Ship + P
3. Type "settings" and choose "Preference : Open settings (UI)"
4. Search the following settings : "word wrap"
5. Set "Editor: Word Wrap" to "ON"