Skip to content

Instantly share code, notes, and snippets.

View jfschaff's full-sized avatar

Jean-François Schaff jfschaff

View GitHub Profile
@jfschaff
jfschaff / default
Created March 19, 2020 21:14
Default nginx configuration
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@jfschaff
jfschaff / multiple_ssh_setting.md
Last active December 11, 2018 10:29 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for multiple GitHub accounts

Multiple SSH keys for multiple GitHub accounts

This is assuming that you already have a main git identity configured and a corresponding ssh key pair in ~/.ssh/ (on linux)

$ cd ~/.ssh/
$ ls
$ config  id_rsa  id_rsa.pub  known_hosts

If you are not there yet, refer to this GitHub howto.

@jfschaff
jfschaff / adapters.application.js
Last active April 19, 2018 15:53
nested belongsTo
import Adapter from "ember-data/adapters/rest";
export default Adapter.extend();
@jfschaff
jfschaff / 40-libinput.conf
Last active January 29, 2018 16:27
libinput configuration file on Lenovo T470s with Ubuntu 16.04 LTS
# /etc/X11/xorg.conf.d/40-libinput.conf
# run
# systemctl restart lightdm.service
# after changing this file to restart X server
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"