Skip to content

Instantly share code, notes, and snippets.

View vasanthaganeshk's full-sized avatar

Vasantha Ganesh Kanniappan vasanthaganeshk

View GitHub Profile
@octocat
octocat / .gitignore
Created February 27, 2014 19:38
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@brenopolanski
brenopolanski / install-popcorn-time.md
Created June 24, 2014 23:59
Install Popcorn Time in Ubuntu / Linux Mint / Debian via PPA

via: http://www.webupd8.org/2014/05/install-popcorn-time-in-ubuntu-or.html

To add the WebUpd8 Popcorn Time PPA and install the app in Ubuntu / Linux Mint (and elementary OS along with Ubuntu derivatives: Xubuntu, Kubuntu, etc.), use the following commands:

$ [sudo] add-apt-repository ppa:webupd8team/popcorntime
$ [sudo] apt-get update
$ [sudo] apt-get install popcorn-time
@nauhygon
nauhygon / Build Emacs for Windows 64bit with Native Compilation.md
Last active June 13, 2024 01:29
Step-by-step instructions to build Emacs for Windows 64 bit with MSYS2 and MinGW-w64. Now `native-comp` supported.

Build Emacs-w64 with MSYS2/MinGW-w64 with Native Compilation

Instructions are modified from emacs-w64 Wiki page by zklhp. Many thanks for sharing!

  1. Download the latest MSYS2 from this download page.

  2. Install MSYS2 to, for example, C:\msys2 (make sure no space in path to avoid unwanted problems).

  3. Optionally prettify the MSYS2 console mintty with ~/.minttyrc to make it more pleasing to eyes. Thanks to this awesome theme!

@chrisdone
chrisdone / AnIntro.md
Last active March 24, 2024 21:13
Statically Typed Lisp

Basic unit type:

λ> replTy "()"
() :: ()

Basic functions:

@abhin4v
abhin4v / dfs.hs
Last active December 22, 2020 12:16
Implementation of depth first search in Haskell
module DepthFirstSearch where
import Data.Foldable (asum)
import Data.List ((\\))
dfs :: (Eq a) => (a -> [a]) -> a -> a -> Maybe [a]
dfs next start goal = dfs' [] start
where dfs' path current
| current == goal = Just . reverse $ goal : path
| null nexts = Nothing
@elsonrodriguez
elsonrodriguez / README.md
Last active June 3, 2021 09:32
Ceph Ansible Quickstart Guide

Quick and Dirty Ceph Cluster

This is a bare-bones guide on how to setup a Ceph cluster using ceph-ansible

This guide assumes:

  • Ansible is installed on your local machine
  • Eight Centos 7.2 nodes are provisioned and formatted with XFS
  • You have ssh and sudo access to your nodes

Ansible Setup

@stevewithington
stevewithington / find-replace-sed.md
Last active June 27, 2024 15:19
Find & Replace within an Entire Directory or Git Repo with sed

Find & Replace within an Entire Directory or Git Repo with sed

If replacing within a directory:

grep -rl 'apples' /dir_to_search_under | xargs sed -i 's/apples/oranges/g'

Or, within an entire git repository:

@gullyn
gullyn / flappy.html
Last active May 4, 2024 15:35
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>