Skip to content

Instantly share code, notes, and snippets.

@arpitjalan
arpitjalan / -
Last active July 23, 2017 10:00 — forked from anonymous/-
System info
System: Host: linuxapj Kernel: 4.10.0-27-generic x86_64 (64 bit gcc: 5.4.0)
Desktop: Cinnamon 3.4.4 (Gtk 3.18.9-1ubuntu3.3) dm: lightdm Distro: Linux Mint 18.2 Sonya
Machine: System: Gigabyte product: Z270X-Ultra Gaming v: Default string
Mobo: Gigabyte model: Z270X-Ultra Gaming-CF v: x.x
Bios: American Megatrends v: F4 date: 02/10/2017
Chassis: Default string type: 3 v: Default string
CPU: Quad core Intel Core i7-7700K (-HT-MCP-) cache: 8192 KB
flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 33600
clock speeds: min/max: 800/4500 MHz 1: 799 MHz 2: 799 MHz 3: 799 MHz 4: 799 MHz 5: 799 MHz
6: 799 MHz 7: 799 MHz 8: 799 MHz
@arpitjalan
arpitjalan / GIF-Screencast-OSX.md
Created December 17, 2015 15:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
#!/usr/bin/env ruby -w
# brew-services(1) - Easily start and stop formulas via launchctl
# ===============================================================
#
# ## SYNOPSIS
#
# [<sudo>] `brew services` `list`<br>
# [<sudo>] `brew services` `restart` <formula><br>
# [<sudo>] `brew services` `start` <formula> [<plist>]<br>
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
https://speakerdeck.com/tomdale/emberconf-2014-keynote
https://speakerdeck.com/machty/emberconf-2014-mr-router-embraces-the-controller-alex-matchneer
https://machty.s3.amazonaws.com/emberconf/fun.html
https://speakerdeck.com/coderberry/the-unofficial-official-ember-testing-guide
https://github.com/rpflorence/ember-qunit
https://speakerdeck.com/cmeiklejohn/divergent
@arpitjalan
arpitjalan / deploy.rb
Created February 21, 2014 03:07 — forked from jbonney/deploy.rb
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'
# Usually mina focuses on deploying to one host and the deploy options are therefore simple.
# In our case, there is a number of possible servers to deploy to, it is therefore necessary to
# specify the host that we are targeting.
server = ENV['server']
# Since the same host can have multiple applications running in parallel, it is necessary to