Skip to content

Instantly share code, notes, and snippets.

@asears
asears / pytorch.ps1
Last active January 15, 2020 07:59
Pytorch Install with Conda
conda update -n base -c defaults conda
conda install -c anaconda mkl
# pytorch install requires -c
# https://github.com/pytorch/pytorch/issues/4827
conda install mkl=2019
conda install pytorch torchvision -c pytorch
# chamfer requires VS C++ 14.0 build tools for visual studio
@asears
asears / netdata.txt
Last active January 8, 2020 06:15
Netdata
--- Installing netdata... ---
[/tmp/netdata-kickstart-dfDcja/netdata-v1.19.0-258-g2c0df253]# ./netdata-installer.sh --auto-update
^
|.-. .-. .-. .-. . netdata
| '-' '-' '-' '-' real-time performance monitoring, done right!
+----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+--->
You are about to build and install netdata to your system.
@asears
asears / my_conda.yml
Created January 5, 2020 11:13
Current list of "global" python packages using for multiple scenarios
name: my_conda
channels:
- conda-forge
- anaconda
- defaults
dependencies:
- _pytorch_select=1.1.0
- _tflow_select=2.1.0
- absl-py=0.8.1
- asn1crypto=1.2.0
@asears
asears / README.md
Created January 4, 2020 13:39 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@asears
asears / gist:e9f022ecb56895981199811ee5fd9dda
Created January 4, 2020 13:39 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@asears
asears / monitorgpu.sh
Created January 4, 2020 11:17
Tensorflow - Monitor GPU memory usage
#!/bin/bash
nvcc -V
conda list
watch nvidia-smi
@asears
asears / install-apps.sh
Last active January 30, 2020 02:18
Ubuntu Installs for wsl
#!/bin/bash
# VS Code Server
code
# This script should not be run, for reference only
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# Install Vim profile from repo
# Setup Git
@asears
asears / Install-PythonDeps.ps1
Last active January 3, 2020 11:35
Python Installs
# https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exelocal
# this is not required if tensorflow-gpu installed. pkgs/main/win-64/cudatoolkit, cudnn, tensorflow-gpu installed
# Move this to environment.yaml with versioning once frozen for base environment
conda install -c conda-forge pywin32
conda install -c anaconda jupyter_client
conda install -c conda-forge jupyter_core
conda install nltk
conda install beautifulsoup4
conda install -c conda-forge markovify
conda install matplotlib
@asears
asears / InstallMyTwitterModule.ps1
Last active January 1, 2020 14:16
InstallMyTwitterModule.ps1 - Updates to fix wildcard error with static version number
$webclient = New-Object System.Net.WebClient
$url = "https://github.com/asears/MyTwitter/archive/master.zip"
Write-Host "Downloading latest version of MyTwitter from $url" -ForegroundColor Cyan
$file = "$($env:TEMP)\MyTwitter.zip"
$webclient.DownloadFile($url,$file)
Write-Host "File saved to $file" -ForegroundColor Green
$targetondisk = "$($env:USERPROFILE)\Documents\WindowsPowerShell\Modules"
New-Item -ItemType Directory -Force -Path $targetondisk | out-null
$shell_app=new-object -com shell.application
$zip_file = $shell_app.namespace($file)
@asears
asears / Install-Apps.ps1
Last active February 26, 2024 13:37
Chocolatey Installs for a new Windows PC build (2020) - Don't run this, reference only.
# Run as Administrator in Powershell prompt
# Or better yet, don't do that
# https://chocolatey.org/
# Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Restart shell as administrator
# Restart pc after each install requiring restart.
choco feature enable -n allowGlobalConfirmation
# Sudo for Windows (Run as Administrator in command prompt)
# Chocolatey installs are run as admin