First, you have to run Powershell as administrator. Then type the following:
Set-ExecutionPolicy Unrestricted
Accept to continue.
Then we install Chocolatey:
www.mysite.com, mysite.com { | |
proxy / webapp:3000 { | |
proxy_header Host {host} | |
proxy_header X-Real-IP {remote} | |
proxy_header X-Forwarded-Proto {scheme} | |
} | |
gzip | |
tls your@email.com | |
} |
# Create empty branch. | |
git checkout --orphan review | |
git rm -rf . | |
git commit --allow-empty -m "Create empty branch" | |
git push --set-upstream origin review | |
# Create `project` branch from `master` current state. | |
git checkout -b project | |
git merge master --allow-unrelated-histories | |
git push --set-upstream origin project |
Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew-cask
brew install caskroom/cask/brew-cask
/** Action identifiers. */ | |
export const WEBHOOKS_EVENTS = [ | |
"user.created", | |
"user.updated", | |
// ... | |
] as const; | |
/** Action types. */ | |
export type WebhookEvent = typeof WEBHOOKS_EVENTS[number]; |
import React, { useReducer, useContext, Dispatch } from "react"; | |
import "./styles.css"; | |
// Local types, example: box, product, venue, etc | |
type MyItem = { | |
id: number; | |
name: string; | |
}; | |
// Reducer types |
import { clsx } from "clsx" | |
export function UserFieldset({ disabled, className, ...props } : React.ComponentProps<fieldset>) { | |
// fieldset has built-in disabled management for inputs and buttons inside of it. | |
return ( | |
<fieldset className={clsx("grid grid-cols-1 gap-4", className)} disabled={disabled} {...props}> | |
<div className="col-span-1"> | |
<label htmlFor="name">Name</label/> | |
<input id="name" name="name" className={clsx("input input-4 sm:input-3 input-blue", "w-full mt-1")} /> | |
</div> |
import git | |
def clone(cls, directory, url, depth=3): | |
return git.Repo.clone_from(url, directory, depth=depth) | |
{ | |
"shell": true, | |
"cmd": ["mcs $file ; mono $file_base_name.exe"], | |
"selector": "source.cs" | |
} |