This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can export a Copilot Chat session in Visual Studio Code | |
# to a JSON file via `Ctrl+Shift+P | Chat: Export Session...` | |
# or by choosing `View > Command Palette | Chat: Export Session...` | |
# Inspired by https://github.com/Marijn-Bergman/copilot-chat-export-formatter | |
import sys | |
import json | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function insertImage() { | |
let sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); | |
let lastRow = sheet.getLastRow(); | |
for (let i = 0; i < lastRow-1; i++) { | |
let url = sheet.getRange(2+i,1).getValue(); | |
let image = SpreadsheetApp.newCellImage().setSourceUrl(url); | |
sheet.getRange(2+i,2).setValue(image); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
"""Convert a music .cue file into a label file. | |
This module will accept an optional string attribute that specifies the input | |
.cue file. If this file is not provided in the call then file-select box will | |
be presented to the user. Output is a .txt file of labels that can be input | |
into Audacity. | |
Examples: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
var firebaseConfig = { | |
// your firebase credentials | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker run -it \ | |
# -v /tmp/.X11-unix:/tmp/.X11-unix \ | |
# -v $HOME:/workspace \ | |
# -e DISPLAY=$DISPLAY \ | |
# --privileged | |
# photoshop | |
# | |
FROM jess/wine | |
MAINTAINER Jonathan Gautheron <jgautheron@neverblend.in> |
openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar
openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar