Skip to content

Instantly share code, notes, and snippets.

Avatar

Chetan Sachdev cksachdev

  • Bangalore, Karnataka, India
View GitHub Profile
@cksachdev
cksachdev / links
Created Sep 23, 2019
[Canvas related repos]
View links
@cksachdev
cksachdev / html-head-boilerplate.html
Created Jul 12, 2019 — forked from nunosans/html-head-boilerplate.html
HTML Head Boilerplate & Reference
View html-head-boilerplate.html
<!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 Feb 25, 2020 — forked from nunosans/setup.md
Fresh macOS setup.
View setup.md

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 Aug 19, 2019 — forked from dlerm/dev-box.sh
A simple bash script to install common dev tools
View dev-box.sh
#!/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
View zeit-now-g-suite-setup.md

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 — 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
View merge-mp4.sh
#!/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 Mar 11, 2019
VSCode's Settings - Syncing
View extensions.json
[
{
"id": "aaron-bond.better-comments",
"name": "better-comments",
"publisher": "aaron-bond",
"version": "2.0.3"
},
{
"id": "alefragnani.Bookmarks",
"name": "Bookmarks",
@cksachdev
cksachdev / cloudSettings
Created Jun 11, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-04-20T16:20:08.292Z","extensionVersion":"v2.9.0"}
@cksachdev
cksachdev / tree structure in markdown.md
Last active Jul 19, 2018
Generate a tree structure from the Terminal to use in Markdown document
View tree structure in markdown.md
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 Dec 8, 2015 — forked from jimbojsb/gist:1630790
Code highlighting for Keynote presentations
View gist:3069db0b66f26c237b5e

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: