Skip to content

Instantly share code, notes, and snippets.

Lee Packham leepa

Block or report user

Report or block leepa

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
@miglen
miglen / aws-certification.md
Last active Oct 8, 2019
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams
View aws-certification.md


AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.
View psqlrc
\pset null 'NULL'
\set PROMPT1 '%n@%m %/%R%x%# '
\set PROMPT2 '%n@%m %/%R%x%# '
\set AUTOCOMMIT off
\set ON_ERROR_ROLLBACK interactive
\encoding UNICODE
\timing
\x auto
---
@agleyzer
agleyzer / DnsCluster.scala
Created Oct 9, 2013
A Finagle Cluster that uses DNS, based on ZookeeperServerSetCluster.
View DnsCluster.scala
import com.twitter.concurrent.Spool
import com.twitter.finagle.builder.Cluster
import com.twitter.finagle.util.DefaultTimer
import com.twitter.logging.Logger
import com.twitter.util.FuturePool
import com.twitter.util.{Duration, Future, JavaTimer, Promise, Return, Time, Timer}
import java.net.InetAddress
import java.net.UnknownHostException
import java.net.{InetSocketAddress, SocketAddress}
import java.security.Security
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@stringfellow
stringfellow / spine_modelresource.py
Created May 18, 2012
Spinejs - django-tastypie integration base ModelResource class
View spine_modelresource.py
#!/usr/bin/env python
# -*- coding: iso-8859-15 -*-
from tastypie.resources import ModelResource
class SpineFrontedResource(ModelResource):
"""A base model resource for spine-fronted models.
* Bins the 'id' that spine sends.
* Removes 'meta' from the list, returns only objects.
@conikeec
conikeec / avgkvsz.scala
Created Mar 30, 2012 — forked from tsuna/avgkvsz.scala
Get average size of a KeyValue from HBase using asynchbase in Scala with the Finagle compatibility layer
View avgkvsz.scala
import java.util.ArrayList
import scala.collection.JavaConversions._
import com.stumbleupon.async.{Callback, Deferred}
import org.hbase.async.{HBaseClient, KeyValue, Scanner}
import com.twitter.util.{Future, Promise, Return, Throw}
/** Converts a Deferred into a Future. */
implicit def futureFromDeferred[A](d: Deferred[A]): Future[A] = {
val promise = new Promise[A]
View Solarized Dark.xml
<?xml version="1.0" encoding="UTF-8"?>
<scheme name="Solarized Dark" version="1" parent_scheme="Default">
<option name="LINE_SPACING" value="1.0" />
<option name="EDITOR_FONT_SIZE" value="14" />
<option name="EDITOR_FONT_NAME" value="Consolas" />
<colors>
<option name="ADDED_LINES_COLOR" value="" />
<option name="ANNOTATIONS_COLOR" value="2b36" />
<option name="ANNOTATIONS_MERGED_COLOR" value="" />
<option name="CARET_COLOR" value="dc322f" />
@zenlor
zenlor / Backbone.reqwest.js
Created Sep 21, 2011
Backbone.js Sync method for reqwest.js and Ender.js
View Backbone.reqwest.js
(function (reqwest, Backbone) {
var methodMap, getUrl;
methodMap = {
'create': 'POST',
'update': 'PUT',
'delete': 'DELETE',
'read' : 'GET'
};
getUrl = function(object) {
@rubiojr
rubiojr / mr_status_bar_app.rb
Created Nov 30, 2009
MacRuby StatusBar Application
View mr_status_bar_app.rb
#
# Initialize the stuff
#
# We build the status bar item menu
def setupMenu
menu = NSMenu.new
menu.initWithTitle 'FooApp'
mi = NSMenuItem.new
mi.title = 'Hellow from MacRuby!'
mi.action = 'sayHello:'
You can’t perform that action at this time.