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 / 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 / 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 / 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:

@cksachdev
cksachdev / z-automator.png
Created December 8, 2015 13:53 — forked from lrytz/z-automator.png
Shortcut for Syntax Highlighting in Keynote
@cksachdev
cksachdev / browserify_for_webpack_users.markdown
Created October 19, 2015 09:31
browserify for webpack users

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and