- Compile the program in gcc with debug symbols enabled (
-g
) - Do NOT strip the binary
- To generate assembly code using gcc use the -S option:
gcc -S hello.c
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
#!/bin/bash | |
distros="karmic lucid maverick natty oneiric precise quantal raring saucy trusty utopic vivid wily xenial yakkety zesty artful bionic cosmic disco eoan focal groovy hirsute" | |
cmd="apt install " | |
for d in $distros; do | |
echo "Downloading $d" | |
cmd="${cmd} ubuntu-wallpapers-${d}" | |
done |
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
SUBDIRS = src doc whatever | |
.PHONY: all clean | |
all clean: | |
for dir in $(SUBDIRS); do \ | |
$(MAKE) -C $$dir -f Makefile $@; \ | |
done |
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
/* | |
* Dumps memory to stdout | |
*/ | |
void dump_mem(void *addr, size_t len) { | |
int i; | |
unsigned char *p = addr; | |
for (i=0; i<len; i++) { | |
if (i % 16 == 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
import logging | |
logging.basicConfig(level=logging.INFO, format='[%(asctime)s %(levelname)s] %(message)s', datefmt='%Y %b %d %H:%M:%S') |
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
{ | |
"brand": "kvm", | |
"vcpus": 1, | |
"autoboot": false, | |
"ram": 1024, | |
"resolvers": ["208.67.222.222", "208.67.220.220"], | |
"disks": [ | |
{ | |
"boot": true, | |
"model": "virtio", |
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
# Makefile for the wrapper | |
# The wrapper target is going to prompt you for your root password | |
# so don't run this if you are set to do stuff non-interactively. | |
THIS_DIR = $(shell pwd) | |
DEFINES=-DPING_AGENT_PATH="\"$(THIS_DIR)\"" | |
wrapper: wrapper.o | |
gcc -o wrapper wrapper.c $(DEFINES) | |
sudo chown root wrapper |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: GnuPG v2 | |
mQENBFjapy4BCADfiGBLezvJoH963Tjf4JWVNtEkV7rtabQkfnvO85cSs0XwSUYk | |
KpjxwDO7ZVV6r+kppEzy12sKO8j2fe3yY+oJmNUU+d5sKkubyFSdbafIdq6rvCJC | |
stXxnGxKcDtUQIBioGXPBElk8IC3RncyMJ/QSZrmxV8M0eVRpAgKTamzHpATvO+A | |
bEYMvDn8fWUIZW1QBjryWksGDdIy997yfFtsw1ruK0ZBQxZ/22KZJx+x2FDWH91s | |
mehQ4q4vhJ04WXgK4HDfK2H4EOwknkvtWdSP4vvKrZDAgTkYBuSRIqW49OBWxQaw | |
YSLYha3TaWSTcydMEldJy1XVMh4PZp8ymlI1ABEBAAG0J0F1c3RpbiBLZWVsZXkg | |
PGF1c3Rpbi5rZWVsZXlAZ21haWwuY29tPokBPQQTAQgAJwIbAwULCQgHAgYVCAkK |
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
#!/bin/sh | |
# Ugh... I have to download all 3 programs? psssh... | |
ELASTICSEARCH_VERSION="1.7.1" | |
LOGSTASH_VERSION="1.5.3" | |
KIBANA_VERSION="3.1.3" | |
curl -L "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-$ELASTICSEARCH_VERSION.tar.gz" -o "elasticsearch-$ELASTICSEARCH_VERSION.tar.gz" | |
curl -L "https://download.elastic.co/logstash/logstash/logstash-$LOGSTASH_VERSION.tar.gz" -o "logstash-$LOGSTASH_VERSION.tar.gz" | |
curl -L "https://download.elastic.co/kibana/kibana/kibana-$KIBANA_VERSION.tar.gz" -o "kibana-$KIBANA_VERSION.tar.gz" |
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
/*! | |
* Grunt | |
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev | |
*/ | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
// Sass |
NewerOlder