Skip to content

Instantly share code, notes, and snippets.

View aatizghimire's full-sized avatar
🎯
Focusing

Aatiz Ghimiré aatizghimire

🎯
Focusing
View GitHub Profile
@zerolab
zerolab / mkdocs-to-netlify-action.yml
Last active October 28, 2023 15:06
Deploy your mkdocs to NETLIFY
name: Publish docs to Netlify
on:
push:
branches:
- master
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
@andreinechaev
andreinechaev / colab_cuda_install.sh
Last active August 10, 2023 11:23
Installing CUDA (nvcc) on Google Colab
/opt/bin/nvidia-smi
wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb 2> /dev/null
apt-key add /var/cuda-repo-8-0-local-ga2/7fa2af80.pub
apt-get update
apt-get install -qq cuda gcc-5 g++-5 -y
ln -s /usr/bin/gcc-5 /usr/local/cuda/bin/gcc
ln -s /usr/bin/g++-5 /usr/local/cuda/bin/g++
/usr/local/cuda/bin/nvcc --version
@ErikAndreas
ErikAndreas / page.md
Created May 3, 2017 12:43
https via Cloudflare with github pages on custom domain with redirect to www
  1. assuming you already have your domain, will use domain.com as example and you have your github pages, will use username.github.io as example
  2. register for cloudflare account
  3. get cloudflare nameservers for your domain, e.g xxx.ns.cloudflare.com and yyy.ns.cloudflare.com
  4. update dns settings for your domain with the cloudflare nameservers and check status (might take a while)
  5. cloudflare dns settings -> add 2 A records; name: domain.com, value 192.30.252.153 and value 192.30.252.154 as per github pages instructions
  6. cloudflare dns settings -> add cname record; name www, value (is an alias of) username.github.io
  7. cloudflare page rules -> domain.com/* forwarding URL https://www.domain.com/$1 301 permanent redirect
  8. cloudflare page rules -> http://www.domain.com/* Always use https
  9. settings on your github pages repo -> custom domain 'www.domain.com'
@Aschen
Aschen / tutorial_softether_client.md
Last active July 15, 2024 19:30
Tutorial SoftEther Client (Ubuntu)

SoftEther Client

Download and install

Go to http://www.softether-download.com/files/softether and download SoftEther Client for the right architecture.

> cd /tmp
> wget http://www.softether-download.com/files/softether/v4.18-9570-rtm-2015.07.26-tree/Linux/SoftEther_VPN_Client/64bit_-_Intel_x64_or_AMD64/softether-vpnclient-v4.18-9570-rtm-2015.07.26-linux-x64-64bit.tar.gz
> tar xf softether-vpnclient-v4.18-9570-rtm-2015.07.26-linux-x64-64bit.tar.gz