Skip to content

Instantly share code, notes, and snippets.

View KavenTheriault's full-sized avatar

Kaven Thériault KavenTheriault

View GitHub Profile
@KavenTheriault
KavenTheriault / windows_in_grub.md
Last active February 16, 2019 14:03
Configure Windows partition in grub

Configure Windows partition in grub

List all devices

lsblk

Look at the UUID of your Windows 10 partition, for exemple:

sudo blkid /dev/sda2
@KavenTheriault
KavenTheriault / sshfs.md
Created August 20, 2017 22:12
Mount remote drive via SSH

Mount remote drive via SSH

sshfs -o allow_other {user}@{ip}:{remote_dir} {local_dir}

allow_other => Allow other users than the mounter (i.e. root) to access the share.

sudo mkdir /mnt/chicago_vps

sudo sshfs -o allow_other zoidqc@107.172.11.251:/ /mnt/chicago_vps

@KavenTheriault
KavenTheriault / Debian.md
Last active November 21, 2017 23:47
uwsgi+nginx+flask on Debian 8

Host flask api in Nginx using UWSGI

In this exemple of configuration. All communications sent to localhost/api will be sent to the uwsgi socket.

Dependencies

$ apt-get install python python-pip build-essential python-dev uwsgi-plugin-python
$ pip install uwsgi

Directories

@KavenTheriault
KavenTheriault / TracingWCF.md
Last active October 20, 2017 12:27
Enabling Tracing in Windows Communication Foundation

Add this to config file

Make sure the destination folder exist

  <configuration>  
     <system.diagnostics>  
        <sources>  
              <source name="System.ServiceModel"   

switchValue="Information, ActivityTracing"

@KavenTheriault
KavenTheriault / Nginx_Uwsgi.md
Last active November 23, 2021 23:28
ArchLinux nginx+uwsgi+flask

Dependencies

$ pacman -S python-pip nginx uwsgi-plugin-python uwsgi

Directories

$ /etc/nginx/ (nginx directory)
$ /etc/uwsgi/ (uwsgi directory)
$ /usr/share/nginx/uswgi_test/ (app directory)