This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:1.6-onbuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@lambda-registry:~# ps -aux | |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND | |
root 1 0.0 0.5 33480 2796 ? Ss 11:22 0:02 /sbin/init | |
root 2 0.0 0.0 0 0 ? S 11:22 0:00 [kthreadd] | |
root 3 0.0 0.0 0 0 ? S 11:22 0:01 [ksoftirqd/0] | |
root 5 0.0 0.0 0 0 ? S< 11:22 0:00 [kworker/0:0H] | |
root 6 0.0 0.0 0 0 ? S 11:22 0:00 [kworker/u2:0] | |
root 7 0.0 0.0 0 0 ? S 11:22 0:00 [rcu_sched] | |
root 8 0.0 0.0 0 0 ? S 11:22 0:00 [rcuos/0] | |
root 9 0.0 0.0 0 0 ? S 11:22 0:00 [rcu_bh] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set tags=tags;/ | |
" tabbing | |
set expandtab | |
set tabstop=4 | |
set backspace=2 | |
filetype indent on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
RUN mkdir /usr/microblaze | |
RUN mkdir /usr/microblaze/src | |
RUN mkdir /usr/microblaze/tmp | |
RUN mkdir /usr/microblaze/tmp/binutils-build | |
RUN mkdir /usr/microblaze/tmp/gcc-build | |
RUN apt-get update -y | |
RUN apt-get install -y wget |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for bash color run this: | |
curl https://raw.githubusercontent.com/mavnn/mintty-colors-solarized/master/.minttyrc.dark > ~/.mintty | |
Modify the .mintty file to liking | |
then reload cygwin | |
for the matching vim color scheme: | |
curl https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim > ~/.vim/colors/solarized.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:+1: | |
:-1: | |
:100: | |
:1234: | |
:8ball: | |
:a: | |
:ab: | |
:abc: | |
:abcd: | |
:accept: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!"; | |
my $max = -1; | |
my $count = -1; | |
while(<$fd>) { | |
$count++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
#get file in | |
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!"; | |
#iterate over each line to find max | |
my $maxArea = -1; | |
my $minArea = 9223372036854775806; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!"; | |
my $max = -1; | |
my $count = -1; | |
while(<$fd>) { | |
$count++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
#get file in | |
open(my $fd, "<", $ARGV[0]) or die "cannot open file $!"; | |
#iterate over each line to find max | |
my $max = -1; | |
my $count = -1; |
NewerOlder