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
# now you can do | |
# alias docker="limactl shell docker docker" | |
# and run | |
# docker run --rm ubuntu | |
# port forwarding and volume mounting would work out out of the box | |
# docker run --rm -p 8080:80 -v `pwd`:/usr/share/nginx/html nginx |
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
module example.com/envoy-cp | |
go 1.14 | |
require ( | |
github.com/envoyproxy/go-control-plane v0.9.5 | |
github.com/golang/protobuf v1.3.2 | |
google.golang.org/grpc v1.25.1 | |
) |
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
require 'thread' | |
class Test | |
def initialize(queue) | |
@queue = queue | |
end | |
def run | |
value = nil | |
while value = @queue.pop |
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
# rails new app_name -d mysql --skip-bundle -m path/to/this/template.rb | |
comment_lines 'Gemfile', "gem 'turbolinks'" | |
comment_lines 'Gemfile', "gem 'jbuilder'" | |
comment_lines 'Gemfile', "gem 'sass-rails'" | |
comment_lines 'Gemfile', "gem 'coffee-rails'" | |
comment_lines 'Gemfile', "gem 'uglifier'" | |
comment_lines 'Gemfile', "gem 'sdoc'" | |
gsub_file 'Gemfile', "gem 'mysql2'", "gem 'mysql2', '~> 0.3.20'" |
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
SIGABRT: abort | |
PC=0x5fb6c8 | |
goroutine 308297 [syscall, 4433 minutes]: | |
syscall.Syscall6(0x3d, 0x10a0c, 0xc2084e3aec, 0x0, 0xc2084b86c0, 0x0, 0x0, 0xc208433400, 0x347, 0x3b7) | |
/usr/local/go/src/syscall/asm_linux_amd64.s:46 +0x5 fp=0xc2084e3a50 sp=0xc2084e3a48 | |
syscall.wait4(0x10a0c, 0xc2084e3aec, 0x0, 0xc2084b86c0, 0x90, 0x0, 0x0) | |
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:124 +0x79 fp=0xc2084e3ab0 sp=0xc2084e3a50 | |
syscall.Wait4(0x10a0c, 0xc2084e3b34, 0x0, 0xc2084b86c0, 0x0, 0x0, 0x0) | |
/usr/local/go/src/syscall/syscall_linux.go:224 +0x60 fp=0xc2084e3af8 sp=0xc2084e3ab0 |
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
node->pod (works) | |
Taken from node: | |
[root@w1 ~]# tcpdump -vv -i flannel.1 | |
tcpdump: listening on flannel.1, link-type EN10MB (Ethernet), capture size 262144 bytes | |
08:50:29.430554 IP (tos 0x0, ttl 64, id 24079, offset 0, flags [DF], proto TCP (6), length 60) | |
w1.49866 > 10.2.58.2.http: Flags [S], cksum 0x7234 (incorrect -> 0xdab7), seq 1767611758, win 28200, options [mss 1410,sackOK,TS val 443233 ecr 0,nop,wscale 7], length 0 | |
08:50:29.431862 IP (tos 0x0, ttl 63, id 0, offset 0, flags [DF], proto TCP (6), length 60) | |
10.2.58.2.http > w1.49866: Flags [S.], cksum 0x03c1 (correct), seq 3687243300, ack 1767611759, win 27960, options [mss 1410,sackOK,TS val 400868 ecr 443233,nop,wscale 7], length 0 |
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
struct S; | |
impl S { | |
fn a(&self) { | |
println!("a"); | |
} | |
fn b(&self) { | |
println!("b"); | |
} | |
} |
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
HOMEBREW_VERSION: 0.9.4 | |
ORIGIN: https://github.com/mxcl/homebrew | |
HEAD: e76ae4e896d12e3fde7fd0c06eafe846e9160ea2 | |
HOMEBREW_PREFIX: /usr/local | |
HOMEBREW_CELLAR: /usr/local/Cellar | |
CPU: quad-core 64-bit sandybridge | |
OS X: 10.8.4-x86_64 | |
Xcode: 4.6.3 | |
CLT: 4.6.0.0.1.1365549073 | |
GCC-4.2: build 5666 |
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
~/Projects/pa1 2 (master *) $ make | |
clang -g -std=c++11 -stdlib=libc++ -Wall -o pptoken pptoken.cpp | |
Undefined symbols for architecture x86_64: | |
"std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from: | |
std::__1::vector<std::__1::pair<int, int>, std::__1::allocator<std::__1::pair<int, int> > >::allocate(unsigned long) in pptoken-azXFj1.o | |
"std::__1::__basic_string_common<true>::__throw_length_error() const", referenced from: | |
__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initIPcEENS_9enable_ifIXsr21__is_forward_iteratorIT_EE5valueEvE4typeES9_S9_ in pptoken-azXFj1.o | |
"std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from: | |
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::operator<< <std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*) in pptoken-azXFj1.o | |
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::endl<char, std::__1:: |
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
diff --git a/Makefile b/Makefile | |
index 186ef46..84c8dfd 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -2,7 +2,7 @@ all: pptoken | |
# build pptoken application | |
pptoken: pptoken.cpp IPPTokenStream.h DebugPPTokenStream.h | |
- g++ -g -std=gnu++11 -Wall -o pptoken pptoken.cpp | |
+ clang++ -g -std=c++11 -stdlib=libc++ -Wall -o pptoken pptoken.cpp |
NewerOlder