Skip to content

Instantly share code, notes, and snippets.

@jonaskirch
jonaskirch / make_certs.sh
Created July 5, 2022 17:51 — forked from mediaupstream/make_certs.sh
extract ca-certs, key, and crt from a pfx file
#!/bin/bash
#
# Usage:
# ./make_certs.sh test.example.com
#
# The required input to make_certs.sh is the path to your pfx file without the .pfx prefix
#
# test.example.com.key
# test.example.com.crt (includes ca-certs)
@jonaskirch
jonaskirch / node-typescript.txt
Last active March 2, 2022 20:08
node typescript
# ADD TYPESCRIPT
yarn add typescript -D
yarn tsc --init
# its possible change configs in tsconfig.json
# ADD AUTOMATIC TRANSPILER TO DEV
yarn add ts-node-dev -D
# change package.json
"scripts": {
yarn add eslint -D
yarn eslint --init
remove packages-lock.json
yarn
yarn add prettier eslint-config-prettier eslint-plugin-prettier -D
.eslintrc.js:
module.exports = {
@jonaskirch
jonaskirch / reactnative-root-importer.txt
Last active March 2, 2020 17:43
reactnative-root-importer
STEP 1
yarn add babel-plugin-root-import -D
edit file babel.config.js and add:
plugins: [
['babel-plugin-root-import',
{
rootPathSuffix: 'src',
}]
]
@jonaskirch
jonaskirch / react-root-importer.txt
Last active September 11, 2022 10:39
react root importer
STEP 1 (override webpack generated default by create-react-app and to add babel-plugin-root-import):
yarn add customize-cra react-app-rewired -D
yarn add babel-plugin-root-import -D
add file config-overrides.js:
const { addBabelPlugin, override } = require('customize-cra');
module.exports = override(
addBabelPlugin([
'babel-plugin-root-import',
@jonaskirch
jonaskirch / react-eslint-prettier.txt
Last active August 16, 2021 14:24
Reac: eslint + prettier
remove .eslintrc.js of project
yarn add eslint -D
yarn eslint --init
remove packages-lock.json
yarn
#IF TYPESCRIPT
yarn add -D eslint-plugin-import @typescript-eslint/parser eslint-import-resolver-typescript
yarn add prettier eslint-config-prettier eslint-plugin-prettier babel-eslint -D
@jonaskirch
jonaskirch / cloudSettings
Last active May 26, 2022 20:27 — forked from joaostroher/cloudSettings
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-09-09T17:02:28.858Z","extensionVersion":"v3.4.3"}