Skip to content

Instantly share code, notes, and snippets.

View cecilemuller's full-sized avatar

Cecile Muller cecilemuller

View GitHub Profile
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active April 15, 2025 14:53
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@cecilemuller
cecilemuller / launch.json
Last active April 4, 2025 13:08
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
@cecilemuller
cecilemuller / VSCode.reg
Last active April 24, 2018 16:42
Adds a "Open Folder in VSCode" command in Windows Explorer
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open folder in VSCode"
"Icon"="C:\\Program Files\\Microsoft VS Code\\resources\\app\\resources\\win32\\code_file.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""
@cecilemuller
cecilemuller / filetype.reg
Created November 19, 2017 15:04
Windows Registry: filetype icon, name & context menu actions (for Windows 10)
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.myext]
[HKEY_CLASSES_ROOT\.myext\OpenWithProgids]
"MYAPP.myext"=""
[HKEY_CLASSES_ROOT\MYAPP.myext]
@="MyApp Example File"
@cecilemuller
cecilemuller / externproto.js
Last active August 23, 2017 08:38
VRMLScript: calculate the EXTERNPROTO of an undocumented node type
function getExternproto(nodeType){
var code = '';
var created = Browser.createVrmlFromString(nodeType + '{}');
if (created.length == 1){
var node = created[0];
var nodeType = node.getType();
code += 'EXTERNPROTO ' + nodeType + ' [\n';
var count = node.getNumFields();
for (var i = 0; i < count; i++){
var infos = node.getFieldInfo(i);
@cecilemuller
cecilemuller / proto.PixelSensor.wrl
Last active June 18, 2017 05:56
VRML helper to calculate pixel-sensitive sizes without PixelLayer3D
#VRML V2.0 utf8
PROTO PixelSensor [
# Distance to Parallel
# e.g. for z=0 in a Layer3D that uses Viewpoint{position 0 0 10}
field SFFloat distance 10
# FOV of the Layer3D viewpoint
field SFFloat fieldOfView 0.785398
@cecilemuller
cecilemuller / tsconfig.json
Last active April 30, 2017 20:57
Flow-style linting and Intellisense (using Typescript) for Javascript
{
"compilerOptions": {
"noEmit": true,
"allowJs": true,
"checkJs": true,
"moduleResolution": "Node"
},
"include": [
"./src/"
]
@briansmith
briansmith / how-to-generate-and-use-private-keys-with-openssl-tool.md
Last active March 21, 2025 11:43
How to generate & use private keys using the OpenSSL command line tool

How to Generate & Use Private Keys using OpenSSL's Command Line Tool

These commands generate and use private keys in unencrypted binary (not Base64 “PEM”) PKCS#8 format. The PKCS#8 format is used here because it is the most interoperable format when dealing with software that isn't based on OpenSSL.

OpenSSL has a variety of commands that can be used to operate on private key files, some of which are specific to RSA (e.g. openssl rsa and openssl genrsa) or which have other limitations. Here we always use

@cecilemuller
cecilemuller / readme.md
Last active March 14, 2022 17:53
Using Three.js "examples" (e.g. OrbitControls) with Webpack 2

Javascript files from the examples folder (such as OrbitControls) are not CommonJS or ES Modules, but they can still be used in Webpack bundles:

In package.json:

"dependencies": {
	"three": "0.84.0",
	"webpack": "2.4.1"
}
@cecilemuller
cecilemuller / settings.json
Last active May 25, 2017 23:39
My Visual Studio Code settings
{
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 16,
"editor.lineHeight": 24,
"editor.insertSpaces": false,
"editor.detectIndentation": false,
"editor.mouseWheelZoom": true,
"editor.renderWhitespace": "boundary",
"window.title": "${dirty}${activeEditorShort}${separator}${rootName}",