Skip to content

Instantly share code, notes, and snippets.

@joshuawootonn
joshuawootonn / README.md
Last active July 18, 2018 03:53
Sending Credentials between processes in Electron/React

IPC with Electron/React

These are some helpful snippets for sending credentials between processes in a React and Electron setup. Note I am using electron-settings.

VSCode Settings

Here are my vscode settings, complete with integrated shell,custom title bar, and other theme related conventions

@joshuawootonn
joshuawootonn / GlobalPathsWithTypeScriptCRA.md
Last active January 24, 2019 21:16
Global Paths with TypeScript

Global Paths with TypeScript and CRA

sudo apt-get update
sudo apt-get upgrade
#install chrome
sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome*.deb
# install node with the n package
sudo npm cache clean -f
using Microsoft.AspNetCore.Authorization;
using System.Collections.Generic;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
namespace asdf.Infrastructure
{
public class HasPermissionHandler : AuthorizationHandler<HasAuthorizationRequirement>
{
{"lastUpload":"2021-04-02T01:04:37.917Z","extensionVersion":"v3.4.3"}
Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Agnoster
function prune-them-boys() {
git checkout master; git remote update origin --prune; git branch -vv | Select-String -Pattern ": gone]" | % { $_.toString().Trim().Split(" ")[0]} | % {git branch -D $_}
}
@joshuawootonn
joshuawootonn / terminal profile
Last active April 17, 2021 01:17
terminal profile
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"copyOnSelect": false,
"copyFormatting": false,
"profiles": {
"defaults": {
"fontFace": "Fira Code",
"fontSize": 10,
"colorScheme": "nord",
@joshuawootonn
joshuawootonn / keybase.md
Created August 26, 2020 11:07
keybase.md

Keybase proof

I hereby claim:

  • I am joshuawootonn on github.
  • I am joshuawootonn (https://keybase.io/joshuawootonn) on keybase.
  • I have a public key ASAcxXJJ059p9tO6nOeZQckPj7Q0Sk7R1-bgA_0RkNCBzQo

To claim this, I am signing this object:

@joshuawootonn
joshuawootonn / gist:6cc7fbdcb68042757eb974dfe72f32d6
Created January 27, 2021 21:00
Using Forego to use env file for cmd lined
forego run -e ../conductor/reznor-dev.env ____command that needs this context____
// https://github.com/ddollar/forego