Skip to content

Instantly share code, notes, and snippets.

@insdavm
insdavm / WireGuard-site-to-site.md
Last active May 3, 2024 21:19
Accessing a subnet that is behind a WireGuard client using a site-to-site setup

WireGuard Site-to-Site

Accessing a subnet that is behind a WireGuard client using a site-to-site setup

Problem Summary

We want to access a local subnet remotely, but it is behind a NAT firewall and we can't setup port forwarding. Outgoing connections work, but all incoming connections get DROPPED by the ISP's routing policy.

Solution Summary

@aksakalli
aksakalli / install-conda.yml
Created July 18, 2018 10:08
Installing Minicaonda/Anaconda from Ansible playbook for all
- name: Install Conda
block:
- name: Download Miniconda
get_url:
url: https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh
dest: /tmp/install-miniconda.sh
checksum: md5:a946ea1d0c4a642ddf0c3a26a18bb16d
mode: 0550
- name: Create conda folder
@mmaltsev
mmaltsev / finplan.html
Last active March 31, 2018 20:45
Fin Plan for Nitish
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="http://goo.gl/PkEcge" type="image/x-icon">
<title>Fin Plan</title>
<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<style>
body {
@mmaltsev
mmaltsev / table.html
Last active March 2, 2018 14:38
Linear Programming Table
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<style>
.tables-wrapper { display: flex; flex-direction: row; margin: 15px; }
.table-column { display: flex; flex-direction: column; }
.table-input-false { width: 80px; border: 0; height: 20px; padding: 0; background-color: inherit; }
.table-input-true { width: 40px; border: 0; height: 20px; padding: 0; background-color: inherit; }
.table-input-true:nth-child(even) { border-left: 1px solid lightgray; }
.side-tables { margin-top: 4px; }
@omoindrot
omoindrot / tensorflow_finetune.py
Last active February 25, 2024 15:00
Example TensorFlow script for fine-tuning a VGG model (uses tf.contrib.data)
"""
Example TensorFlow script for finetuning a VGG model on your own data.
Uses tf.contrib.data module which is in release v1.2
Based on PyTorch example from Justin Johnson
(https://gist.github.com/jcjohnson/6e41e8512c17eae5da50aebef3378a4c)
Required packages: tensorflow (v1.2)
Download the weights trained on ImageNet for VGG:
```
wget http://download.tensorflow.org/models/vgg_16_2016_08_28.tar.gz
@vespakoen
vespakoen / install_steam
Created April 21, 2015 22:03
install steam & age of empires 2 HD on ubuntu 14.04
# install wine 1.7
add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.7
# download steam
curl -o ~/Downloads/SteamSetup.exe http://media.steampowered.com/client/installer/SteamSetup.exe
# install some tricks
winetricks vcrun2010
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 3, 2024 19:09
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname