Skip to content

Instantly share code, notes, and snippets.

View RavenZZ's full-sized avatar
🎯
Focusing

Raven RavenZZ

🎯
Focusing
View GitHub Profile
@RavenZZ
RavenZZ / install golang on ubuntu.md
Created November 14, 2016 14:44
install golang on ubuntu

How to Install Go 1.6 on Ubuntu 16.04

link

Prerequisites

This tutorial assumes that you have access to an Ubuntu 16.04 system, configured with a non-root user with sudo privileges as described in Initial Server Setup with Ubuntu 16.04.

Step 1 — Installing Go

@RavenZZ
RavenZZ / check_redis.py
Created February 17, 2017 08:30 — forked from samuel/check_redis.py
Redis health and memory check for Nagios
#!/usr/bin/python
#
# LICENSE: MIT
#
# Copyright (C) 2014 Samuel Stauffer
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation
@RavenZZ
RavenZZ / BrewBindInstallAndSetupMacOSX10_10.sh
Created March 16, 2017 07:34 — forked from mpaskalev/BrewBindInstallAndSetupMacOSX10_10.sh
Install and setup bind (named) on Mac OS X 10.10.1 with brew 0.9.5
#!/bin/bash
# Run as root or sudo the commands that need it as you go.
# brew version 0.9.5
# Mac OS X 10.10.1
# A little bit changed version of this:
# http://stackoverflow.com/questions/19538118/osx-mavericks-bind-no-longer-installed-how-to-get-local-dns-server-working
@RavenZZ
RavenZZ / .sh
Created March 20, 2017 03:37
change permition
sudo chown -R $(whoami):admin /usr/local
@RavenZZ
RavenZZ / bubble_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/bubble_sort.go
Bubble Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
bubbleSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / selection_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/selection_sort.go
Selection Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
selectionSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / insertion_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/insertion_sort.go
Insertion Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
insertionSort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / shellsort.go
Created July 12, 2017 03:29 — forked from RichardKnop/shellsort.go
Shellsort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
shellshort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / comb_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/comb_sort.go
Comb Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
combsort(items)
fmt.Println(items)
@RavenZZ
RavenZZ / merge_sort.go
Created July 12, 2017 03:29 — forked from RichardKnop/merge_sort.go
Merge Sort
package main
import (
"fmt"
)
func main() {
items := []int{4, 202, 3, 9, 6, 5, 1, 43, 506, 2, 0, 8, 7, 100, 25, 4, 5, 97, 1000, 27}
sortedItems := mergeSort(items)
fmt.Println(sortedItems)