Skip to content

Instantly share code, notes, and snippets.

View duhruh's full-sized avatar
👽
Storming Area 51

David Rivera duhruh

👽
Storming Area 51
View GitHub Profile
func quickSort(ar []int) []int{
pivot := ar[rand.Intn(len(ar))]
less := []int{}
equal := []int{}
more := []int{}
for i := range ar {
#!/bin/sh
set -e
curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
docker-compose --version
@duhruh
duhruh / dhcpcd.conf
Last active February 23, 2019 21:02
router
# A sample configuration for dhcpcd.
# See dhcpcd.conf(5) for details.
# Allow users of this group to interact with dhcpcd via the control socket.
#controlgroup wheel
# Inform the DHCP server of our hostname for DDNS.
hostname
# Use the hardware address of the interface for the Client ID.
<html>
<head>
<style>
.ribbon-list{
list-style: none;
}
.ribbon-list > li {
float: left;
margin-right: 20px;
nettop -p com.docker.vpnk -x
@duhruh
duhruh / main.go
Created March 26, 2019 04:20
findMedianSortedArrays
func findMedianSortedArrays(nums1 []int, nums2 []int) float64 {
i := 0
j := 0
combined := []int{}
for {
if i == len(nums1) || j == len(nums2) {
break
}
@duhruh
duhruh / Dockerfile
Created July 10, 2019 00:07
Gui run in docker
# docker build -t gui .
FROM debian
RUN apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get install -y xserver-xorg xorg jwm
ENTRYPOINT ["startx"]