Skip to content

Instantly share code, notes, and snippets.

Chetan Sachdev cksachdev

Block or report user

Report or block cksachdev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cksachdev
cksachdev / setup.md
Last active Sep 23, 2019 — 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
@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. -->
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 / 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 / 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:

@cksachdev
cksachdev / z-automator.png
Created Dec 8, 2015 — forked from lrytz/z-automator.png
Shortcut for Syntax Highlighting in Keynote
View z-automator.png
View browserify_for_webpack_users.markdown

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

You can’t perform that action at this time.