Skip to content

Instantly share code, notes, and snippets.

View cecilemuller's full-sized avatar

Cecile Muller cecilemuller

View GitHub Profile
@cecilemuller
cecilemuller / keybindings.json
Last active May 4, 2017 22:50
My Visual Studio Code key bindings
[
{
"key": "ctrl+shift+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
@cecilemuller
cecilemuller / .travis.yml
Last active September 1, 2019 18:27
Travis CI config to run headless Node tests via Xvfb
language: node_js
node_js:
- '6.9.1'
- '7.0.0'
sudo: false
addons:
apt:
packages:
- xvfb
@cecilemuller
cecilemuller / tests.js
Last active December 3, 2016 19:06
Preact: setState without Enzyme
'use strict';
/* eslint-env mocha, browser */
const assert = require('assert');
const {h, render, Component} = require('preact');
class TestableComponent extends Component {
componentDidMount(){
if (this.props.testable){
this.props.testable(this);
@cecilemuller
cecilemuller / index.html
Last active January 4, 2023 16:04
Record three.js to WebM video using CCapture.js
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Record WebGL to WebM (Chrome only)</title>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css" charset="utf-8">
</head>
<body>
<div class="buttons">
@cecilemuller
cecilemuller / OpenPowershellHere.reg
Created July 12, 2016 07:29
Add a "Open Powershell Here" right-click menu item in Windows Explorer
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\powershell]
@="Open PowerShell Here"
[HKEY_CLASSES_ROOT\Directory\shell\powershell\command]
@="C:\\\\Windows\\\\system32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%L'"
@MoOx
MoOx / install-flow-windows.md
Last active November 22, 2022 08:59
Unofficial Flow Windows binary
@cecilemuller
cecilemuller / collapse_transforms.wrl
Created June 22, 2016 13:32
VRML: Merge transforms
#VRML V2.0 utf8
Viewpoint{
description "Default"
}
DEF tr1 Transform {
rotation 0.5 0.4 0.1 2
children Transform {
@cecilemuller
cecilemuller / letsencrypt_2020.md
Last active January 9, 2025 12:22
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files:

@cecilemuller
cecilemuller / projection.wrl
Created February 19, 2016 12:56
VRML: Texture projection
#VRML V2.0 utf8
###############################################################################
# Projection
###############################################################################
PROTO Projection [
field SFVec3f position 0 0 10
field SFRotation orientation 0 1 0 0
@cecilemuller
cecilemuller / Default.sublime-keymap
Created February 9, 2016 13:52
Sublime Text 3 key mappings
[
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" },
{ "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }
]