Skip to content

Instantly share code, notes, and snippets.

@dacci
dacci / buildspec.schema.json
Created January 20, 2023 03:36
JSON schema for AWS CodeBuild buildspec.
{
"$ref": "#/definitions/BuildSpec",
"definitions": {
"BuildSpec": {
"type": "object",
"required": [
"version"
],
"additionalProperties": false,
"properties": {
@tranquan
tranquan / xcode-keybindings-as-vscode.md
Last active July 22, 2025 22:05
Xcode KeyBindings as VSCode
@heiswayi
heiswayi / repo-reset.md
Created February 5, 2017 01:32
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A