Skip to content

Instantly share code, notes, and snippets.

View cecilemuller's full-sized avatar

Cecile Muller cecilemuller

View GitHub Profile
@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 February 29, 2024 05:47
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}",
@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