Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
| cd fonts | |
| mv *.ttf /usr/share/fonts/truetype | |
| cd /usr/share/fonts/truetype | |
| mkfontscale | |
| mkfontdir | |
| fc-cache | |
| xset fp rehash |
| package main | |
| import ( | |
| "bytes" | |
| "compress/gzip" | |
| "encoding/gob" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" |
Note: these instructions are for pre-Sierra MacOS. Sierra (10.12) and newer users see https://gist.github.com/gravitylow/fb595186ce6068537a6e9da6d8b5b96d by @gravitylow
If you are getting this in gdb on OSX while trying to run a program:
Read this first: http://akrl.sdf.org/gccemacs.html
For that you need to compile gcc (duh). I edited Homebrew's gcc formula:
wget https://cmake.org/files/v3.12/cmake-3.12.3.tar.gz
tar zxvf cmake-3.*
| py_binary( | |
| name = 'generate_compile_command', | |
| srcs = [ | |
| 'generate_compile_command.py', | |
| ], | |
| deps = [ | |
| '//third_party/bazel:extra_actions_proto_py', | |
| ], | |
| ) |
| We are going to use buildroot to download, configure and compile the kernel. | |
| First, download and uncompress buildroot: https://buildroot.org/download.html | |
| Go to the directory and: | |
| make qemu_x86_defconfig | |
| make menuconfig |
| class Node(object): | |
| ''' | |
| Base node object. | |
| Each node stores keys and values. Keys are not unique to each value, and | |
| as such values are stored as a list under each key. | |
| Attributes: | |
| order (int): The maximum number of keys each node can hold. | |
| ''' |
| git config --global alias.lola "log --graph --decorate --pretty=oneline --abbrev-commit --all" |
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |