Skip to content

Instantly share code, notes, and snippets.

@akaak
akaak / if-you-use-vscode-then-use-gistpad.md
Last active January 11, 2025 17:42
vscode extension gistpad to manage your gists

If you are a developer and use Visual Studio Code (VSCode), then I recommend that you use GistPad

https://aka.ms/gistpad

Super helpful to view and work with your gists right within VSCode

Does automatic sync with your github and use VSCode interface to view, write and udpate your gists.

Build your own workflow to take notes, build knowledge base that is your own!

@akaak
akaak / run-http-server.md
Last active January 6, 2025 16:17
Local HTTP server on a mac(book)

How to run http server on your local?

as of Jan 2025, Option (1) still is my preferred way of running http server on my macbook!

1) Using Python

Python comes pre-installed on macOS and provides a simple way to start a local server:

  1. For Python 3:
@akaak
akaak / us-states.json
Created January 6, 2025 16:13
US States in JSON
{
"AL": "Alabama",
"AK": "Alaska",
"AS": "American Samoa",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
"DE": "Delaware",
@akaak
akaak / git-push-alias.txt
Last active January 1, 2025 14:26
shell alias to push to git
# suggested by https://x.com/ky__zo/status/1872641995703046246
gp() {
git add .
git commit -m "$1"
git push
}

shared accounts have scaling limits

each dept has their own account does not always work well

  • issues with reorgs and reassignment of projects

accounts around apps or micro services -->

make sure that the governance mechanisms do not slow you down and not let you move faster

embrace the genius of the AND.

@akaak
akaak / git-multiple-accounts.md
Last active September 19, 2017 02:24
Use Git with multiple accounts
@akaak
akaak / test.json
Created March 24, 2017 23:08
toml-json
{
"title": "TOML Example",
"owner": {
"name": "Tom Preston-Werner",
"organization": "GitHub",
"bio": "GitHub Cofounder & CEO\n\tLikes \"tater tots\" and beer and backslashes: \\",
"dob": "1979-05-27T07:32:00.000Z"
},
"database": {
"server": "192.168.1.1",
@akaak
akaak / simple-page.html
Created December 4, 2016 01:25
Simple HTML page with bootstrap css
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
@akaak
akaak / aws-js-sdk-sample.html
Last active November 20, 2016 01:13
AWS Javascript SDK Sample
<!---
Sample.html file used with the AWS example located at: https://aws.amazon.com/developers/getting-started/browser/
Working sample with facebook app integration.
--->
<!DOCTYPE html>
<html>
<head>
@akaak
akaak / pip-scripts.md
Created November 19, 2016 20:23
PIP related

if an install using pip is giving errors/exceptions then

$ sudo pip install PACKAGE_NAME --ignore-installed six should work