Skip to content

Instantly share code, notes, and snippets.

@prasincs
prasincs / xmonad.hs
Last active October 23, 2017 07:32
Learning to walk again, I believe I have waited long enough... where do I begin?
module Main where
import XMonad
import XMonad.Config.Gnome
import XMonad.Util.EZConfig
import XMonad.Hooks.DynamicLog
import XMonad.Hooks.EwmhDesktops
import XMonad.Hooks.ManageHelpers
import XMonad.Layout.Fullscreen
package main
import (
"encoding/json"
"fmt"
"log"
"os"
"github.com/aws/aws-sdk-go/aws/ec2metadata"
"github.com/aws/aws-sdk-go/aws/session"
@prasincs
prasincs / notes.org
Created October 9, 2017 15:57
Notes on installing Ubuntu with GNOME on Lenovo Thinkpad X1 (Gen 5)

Installing the OS

  • Had a lot of trouble with the defaults in Debian when I tried dual booting
  • Installed Ubuntu with full disk encryption and it’s still pretty fast

Installing GNOME and getting rid of Unity

  • apt-get install ubuntu-gnome-desktop
  • Restart
  • You have to uninstall unity too for a full switch. Don’t bother with purge
  • apt-get remove unity
@prasincs
prasincs / stl.md
Last active September 30, 2017 20:12
STL plans

Friday

[X] 9-9:50 -> Keynote on “Measuring and Optimizing Tail Latency”, Theater

[X] 10:10 - 10:50 -> The Biological Path Towards Strong AI, Midland States Bank

[ ] 11:10 - 11:50 -> The hows and whys of a distributed SQL database, Theater

[X] 11:10 - 11:50 -> Running Programs In Reverse for Deeper A.I.

package main
import (
"fmt"
"io/ioutil"
"net/http"
"net/url"
"os"
"golang.org/x/net/proxy"
package main
import (
"flag"
"fmt"
"log"
"sort"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
import "github.com/nsd20463/numeralsort"
func (c SortImageIds) Len() int { return len(c) }
func (c SortImageIds) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
func (c SortImageIds) Less(i, j int) bool {
//fmt.Println(*c[i].ImageTag, *c[j].ImageTag)
if c[i].ImageTag == nil {
return true
}
@prasincs
prasincs / ecr_list_images.go
Last active May 14, 2017 04:04
ECR list images
package aws
import (
"fmt"
"sort"
"strings"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ecr"
@prasincs
prasincs / README.md
Last active March 26, 2017 21:12
Sentry Server

You have to run the following

docker compose -f docker-compose-sentry.yml up

I'm running this from a test directory, so docker-compose prefixes everything with test_

docker run -it --rm -e SENTRY_SECRET_KEY=verysecret --link tests_redis_1:redis --link tests_postgres_1:postgres sentry upgrade