Skip to content

Instantly share code, notes, and snippets.

View cksachdev's full-sized avatar

Chetan Sachdev cksachdev

  • Bangalore, Karnataka, India
View GitHub Profile
@cksachdev
cksachdev / links
Created September 23, 2019 17:27
[Canvas related repos]
@cksachdev
cksachdev / html-head-boilerplate.html
Created July 12, 2019 17:13 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
<!doctype html>
<html>
<head>
<!-- Priority tags. These must come first. -->
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge; chrome=1"> <!-- Render Chrome if available or using latest version of Internet Explorer (Recommended). -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<!-- Document Title -->
<title>Page Title</title>
<!-- Allows control over where resources are loaded from. Place as early in the document as possible, only applies to content below this tag. -->
@cksachdev
cksachdev / setup.md
Last active February 25, 2020 15:54 — forked from nunosans/setup.md
Fresh macOS setup.

Install Development Tools

Install Xcode Development Tools

xcode-select --install

Setup the Xcode colour theme

  1. Download the Space Gray colour theme
@cksachdev
cksachdev / dev-box.sh
Last active August 19, 2019 11:25 — forked from dlerm/dev-box.sh
A simple bash script to install common dev tools
#!/usr/bin/env bash
# http://chetansachdev.com
# http://www.sirwinston.org/
# Install Xcode
# Install Homebrew
# Install Node
# Install Yarn
# Install Gulp
# Install Bower
# Install Linters

Run each of the following lines, replacing yourdomain.com and AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA with your details:

export NOW_DOMAIN=yourdomain.com
export GOOGLE_VERIFICATION=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
now dns add "$NOW_DOMAIN" @ TXT "google-site-verification=$GOOGLE_VERIFICATION"
now dns add "$NOW_DOMAIN" @ MX ASPMX.L.GOOGLE.COM 1
now dns add "$NOW_DOMAIN" @ MX ALT1.ASPMX.L.GOOGLE.COM 5
now dns add "$NOW_DOMAIN" @ MX ALT2.ASPMX.L.GOOGLE.COM 5
now dns add "$NOW_DOMAIN" @ MX ALT3.ASPMX.L.GOOGLE.COM 10
@cksachdev
cksachdev / merge-mp4.sh
Created May 11, 2019 04:01 — forked from palaniraja/merge-mp4.sh
Bash script to merge all mp4 videos in current directory (recursively 2 levels). It also updates the chapter marks to retain the folder/filename of source dir
#!/bin/bash
## Script to merge all mp4 videos in current directory (recursively 2 levels)
## And update chapter marks to retain the folder/filename
## Script for merging videos
filename=`basename pwd`
current=`pwd`
@cksachdev
cksachdev / extensions.json
Last active March 11, 2019 17:58
VSCode's Settings - Syncing
[
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.0.3"
},
{
"id": "alefragnani.Bookmarks",
"name": "Bookmarks",
@cksachdev
cksachdev / cloudSettings
Created June 11, 2018 17:21
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-04-20T16:20:08.292Z","extensionVersion":"v2.9.0"}
@cksachdev
cksachdev / tree structure in markdown.md
Last active July 19, 2018 17:06
Generate a tree structure from the Terminal to use in Markdown document
tree --dirsfirst --noreport -I README.md |
sed '1s/^/```'"$(printf '\n')"'/;$s/$/'"$(printf '\n')"'```/' > README.md

If tree is not available, install it via

brew install tree
@cksachdev
cksachdev / gist:3069db0b66f26c237b5e
Created December 8, 2015 13:54 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: