Skip to content

Instantly share code, notes, and snippets.

View NIRVANALAN's full-sized avatar
🎯
Focusing

NIRVANALAN NIRVANALAN

🎯
Focusing
View GitHub Profile
@NIRVANALAN
NIRVANALAN / _readme.md
Created September 4, 2020 11:44 — forked from shime/_readme.md
installation script for tmux 1.9a

Having trouble installing the latest stable version of tmux?

I know, official package for your OS/distro is outdated and you just want the newest version of tmux.

Well, this script should save you some time with that.

Prerequisities

  • gcc
@NIRVANALAN
NIRVANALAN / tmux_local_install.sh
Created September 4, 2020 11:35 — forked from bxshi/ tmux_local_install.sh
Install tmux locally without root access
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $INSTALL_DIR/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=2.3
bcdboot C:\Windows
@NIRVANALAN
NIRVANALAN / gist:fd053d500273901a783c34a9910c14e6
Created June 18, 2019 13:57
Stable BCELogitsLoss using log-sum-exp trick
def stable_bce(input,target):
neg_abs = -input.abs()
return (input.clamp(min=0) - input * target + (1 + neg_abs.exp()).log())

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@NIRVANALAN
NIRVANALAN / pytorch_setup.sh
Created December 1, 2018 14:18 — forked from kylemcdonald/pytorch_setup.sh
Install CUDA 9.2, cuDNN 7.2.1, Anaconda and PyTorch on Ubuntu 16.04.
# tested on AWS p2.xlarge August 29, 2018
# install CUDA
sudo apt-get update && sudo apt-get install wget -y --no-install-recommends
CUDA_URL="https://developer.nvidia.com/compute/cuda/9.2/Prod2/local_installers/cuda-repo-ubuntu1604-9-2-local_9.2.148-1_amd64"
wget -c ${CUDA_URL} -O cuda.deb
sudo dpkg --install cuda.deb
sudo apt-key add /var/cuda-repo-9-2-local/7fa2af80.pub
sudo apt-get update
sudo apt-get install -y cuda