Skip to content

Instantly share code, notes, and snippets.

$ for i in {51..59}; do ssh ghc$i 'hostname'; done
bash: /afs/andrew.cmu.edu/usr9/areece/.bashrc: Permission denied
ghc51.ghc.andrew.cmu.edu
bash: /afs/andrew.cmu.edu/usr9/areece/.bashrc: Permission denied
ghc52.ghc.andrew.cmu.edu
bash: /afs/andrew.cmu.edu/usr9/areece/.bashrc: Permission denied
ghc53.ghc.andrew.cmu.edu
ssh: connect to host ghc54 port 22: No route to host
bash: /afs/andrew.cmu.edu/usr9/areece/.bashrc: Permission denied
ghc55.ghc.andrew.cmu.edu
Making all in utils
make -f /Users/areece/Developer/bap/djgraph/utils/../ocaml/OCamlMakefile subprojs SUBTARGET=nc
ocamlfind ocamldep -I /Users/areece/.opam/4.00.1+annot/lib/ocaml/camlp4 -I /Users/areece/Developer/bap/djgraph/utils/../ocaml -I /Users/areece/Developer/bap/djgraph/utils/../zarith-1.0 -I /Users/areece/Developer/bap/djgraph/utils/../batteries/_build/src -I /Users/areece/Developer/bap/djgraph/utils/../ounit/_build/src -I /Users/areece/Developer/bap/djgraph/utils/../pcre-ocaml/lib -I /Users/areece/Developer/bap/djgraph/utils/../ocamlgraph-1.8 -I /Users/areece/Developer/bap/djgraph/utils/../objsize-0.16 -I /Users/areece/Developer/bap/djgraph/utils/../libtracewrap/libtrace/src/ocaml -I /Users/areece/Developer/bap/djgraph/utils/../ocaml toil.ml > ._d/toil.d
ocamlfind ocamlopt -package camlidl,bigarray,str,num,unix,camomile,piqi.lib, -c -I /Users/areece/.opam/4.00.1+annot/lib/ocaml/camlp4 -I /Users/areece/Developer/bap/djgraph/utils/../ocaml -I /Users/areece/Developer/bap/djgraph/utils/../zarith-1.0 -I
Found package cvxopt-1.1.5.p0 in spkg/standard/cvxopt-1.1.5.p0.spkg
cvxopt-1.1.5.p0
====================================================
Extracting package /usr/local/sage-5.6/spkg/standard/cvxopt-1.1.5.p0.spkg
-rw-r--r--@ 1 areece staff 3176205 Jan 21 16:17 /usr/local/sage-5.6/spkg/standard/cvxopt-1.1.5.p0.spkg
Finished extraction
****************************************************
Host system:
Darwin areece-laptop.wv.cc.cmu.edu 12.2.1 Darwin Kernel Version 12.2.1: Thu Oct 18 16:32:48 PDT 2012; root:xnu-2050.20.9~2/RELEASE_X86_64 x86_64
****************************************************
variable=hello
env_variable=world
# Make env_variable an environment variable
export env_variable
echo $variable
echo $env_variable
bash
@awreece
awreece / timer.bash
Last active December 13, 2015 20:28
#!/bin/bash
# Modify these if you want.
num_threads=6
# These things should stay the same.
num_cities=17
program_name=wsp_openmp
num_iterations=3
@awreece
awreece / error
Last active December 12, 2015 07:18
cc -I/usr/local/Cellar/tcl/8.5.13/include -I/usr/X11/include -g -O2 -o modulecmd modulecmd-ModuleCmd_Avail.o modulecmd-ModuleCmd_Clear.o modulecmd-ModuleCmd_Display.o modulecmd-ModuleCmd_Help.o modulecmd-ModuleCmd_Init.o modulecmd-ModuleCmd_List.o modulecmd-ModuleCmd_Load.o modulecmd-ModuleCmd_Purge.o modulecmd-ModuleCmd_Switch.o modulecmd-ModuleCmd_Update.o modulecmd-ModuleCmd_Use.o modulecmd-ModuleCmd_Whatis.o modulecmd-ModuleCmd_Refresh.o modulecmd-cmdAlias.o modulecmd-cmdConflict.o modulecmd-cmdIsLoaded.o modulecmd-cmdInfo.o modulecmd-cmdMisc.o modulecmd-cmdModule.o modulecmd-cmdPath.o modulecmd-cmdSetenv.o modulecmd-cmdUname.o modulecmd-cmdXResource.o modulecmd-cmdUlvl.o modulecmd-cmdLog.o modulecmd-cmdChdir.o modulecmd-cmdTrace.o modulecmd-cmdVersion.o modulecmd-cmdVerbose.o modulecmd-cmdWhatis.o modulecmd-init.o modulecmd-locate_module.o modulecmd-utility.o modulecmd-main.o modulecmd-error.o modulecmd-getopt.o modulecmd-version.o -L/usr/local/Cellar/tcl/8.5.13/lib -ltcl8.5 -L/usr/X11/lib -lX11 -l
g++ -I../include -I../src/traces -I/Users/areece/Developer/bap/ocaml4/VEX/pub -g -O2 -L/usr/local/lib -L/usr/local/lib/x86_64/ -o print-ir print-ir.o ir_printer.o /Users/areece/Developer/bap/ocaml4/libasmir/src/libasmir.a /Users/areece/Developer/bap/ocaml4/VEX/libvex.a -lbfd -ldl -lopcodes -lz -lpcre -liberty -lbfd
Undefined symbols for architecture x86_64:
"_libintl_dgettext", referenced from:
_parse_arm_disassembler_option in libopcodes.a(arm-dis.o)
_print_arm_disassembler_options in libopcodes.a(arm-dis.o)
_print_insn_coprocessor in libopcodes.a(arm-dis.o)
_bfd_elf_string_from_elf_section in libbfd.a(elf.o)
_bfd_elf_get_elf_syms in libbfd.a(elf.o)
__bfd_elf_setup_sections in libbfd.a(elf.o)
__bfd_elf_make_section_from_shdr in libbfd.a(elf.o)
pretty: $(SRCS)
@# Check to make sure we have the proper version of indent.
$(if $(findstring GNU,$(shell indent --version 2>/dev/null)),, $(error Install GNU indent))
@echo "Running GNU indent on source files"
@# Note - If we have any typedefs, we need to explicitly tell indent
@# about our typedefs via
@# -T type_t
@indent \
-T word_entry_t \
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ -I/Users/areece/.opam/4.00.1+annot/lib/camlidl -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -m32 -MT generated_message_util.lo -MD -MP -MF .deps/generated_message_util.Tpo -c -o generated_message_util.lo `test -f 'google/protobuf/generated_message_util.cc' || echo './'`google/protobuf/generated_message_util.cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include/ -I/Users/areece/.opam/4.00.1+annot/lib/camlidl -D_THREAD_SAFE -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare -m32 -MT generated_message_util.lo -MD -MP -MF .deps/generated_message_util.Tpo -c google/protobuf/generated_message_util.cc -fno-common -DPIC -o .libs/generated_message_util.o
In file included from google/protobuf/generated_message_util.cc:37:0:
/usr/local/Cellar/gcc/4.7.2/gcc/lib/gcc/x86_64-apple-darwin12.2.1/4.7.2/../../../../include/c++/4.7.2/limits:1405:35: error: template argu
% pprof --disas=thread_scan a.out a.out.prof
Using local file a.out.
Using local file a.out.prof.
Removing _L_unlock_16 from all stack traces.
ROUTINE ====================== thread_scan
199 1087 samples (flat, cumulative) 103.4% of total
-------------------- .../andrew.cmu.edu/usr9/areece/15-418/profiling/try_perf.c
. . 60: void* thread_scan(void* void_arg) {
. . 400869: push %rbp
. . 40086a: mov %rsp,%rbp