Skip to content

Instantly share code, notes, and snippets.

@getmetorajesh
getmetorajesh / gists_to_dash_db.rb
Created November 25, 2017 09:01 — forked from voising/gists_to_dash_db.rb
Connect Gists with Dash (Code Snippet Manager)
#!/usr/bin/env ruby
if ARGV[0].nil? || ARGV[0].match(/-h/)
puts "Usage : #{$0} github_username dash_sqlite_db char_appended_to_keyword [no_comments]"
exit
end
require 'net/http'
require 'open-uri'
#require 'awesome_print'
@getmetorajesh
getmetorajesh / ubuntu_agnoster_install.md
Created October 8, 2017 13:26 — forked from renshuki/ubuntu_agnoster_install.md
Ubuntu 16.04 + Terminator + Oh My ZSH with Agnoster Theme

Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator

Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").

Install ZSH

@getmetorajesh
getmetorajesh / aws-sns-example.js
Created October 1, 2017 10:20 — forked from tmarshall/aws-sns-example.js
aws-sdk sns example, in Node.js
var AWS = require('aws-sdk');
AWS.config.update({
accessKeyId: '{AWS_KEY}',
secretAccessKey: '{AWS_SECRET}',
region: '{SNS_REGION}'
});
var sns = new AWS.SNS();
@getmetorajesh
getmetorajesh / AkkaHttpApiFollowingJsonApiSpec.scala
Created June 17, 2017 09:08 — forked from jeroenr/AkkaHttpApiFollowingJsonApiSpec.scala
simple Akka Http API including links according to JSON API spec http://jsonapi.org/
import akka.actor.ActorSystem
import akka.event.LoggingAdapter
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport._
import akka.http.scaladsl.marshalling.{ToEntityMarshaller, Marshaller}
import akka.http.scaladsl.model._
import akka.http.scaladsl.server.Directives._
import akka.stream.Materializer
import com.oxyme.monitoring.HealthChecker
import com.oxyme.monitoring.model.{Unhealthy, Healthy}
import com.typesafe.config.{ConfigFactory, Config}
@getmetorajesh
getmetorajesh / lopmonhoc.js.jsx
Last active August 29, 2015 14:27 — forked from revskill10/lopmonhoc.js.jsx
Integrate Datatable with React.js
/** @jsx React.DOM */
var LopMonHoc = React.createClass({
getInitialState: function(){
return {data: []}
},
loadData: function(){
$.ajax({
url: '/daotao/lops',
success: function(data){