Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
package main | |
import ( | |
"image" | |
"image/color" | |
"log" | |
"github.com/mewkiz/pkg/imgutil" | |
) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
int main(int argc, char **argv) { | |
int lsock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); | |
if(lsock == -1) { | |
fprintf(stderr, "socket() failed.\n"); |
// nested is a tool which generates C programs with a given number of nested if- | |
// statements. These programs are intended to stress test the implementations of | |
// various decompilation components and give an approximation of their time | |
// complexity. | |
// | |
// Example output for n=2: | |
// | |
// int main(int argc, char **argv) { | |
// int x = 0; | |
// if (x < 1) { |
// Based on https://github.com/PuerkitoBio/gocrawl/blob/master/examples_test.go | |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
#!/usr/bin/ruby | |
# Convert a Markdown README to HTML with Github Flavored Markdown | |
# Github and Pygments styles are included in the output | |
# | |
# Requirements: json gem (`gem install json`) | |
# | |
# Input: STDIN or filename | |
# Output: STDOUT | |
# Arguments: "-c" to copy to clipboard (or "| pbcopy"), or "> filename.html" to output to a file | |
# cat README.md | flavor > README.html |
digraph { | |
rankdir=LR | |
{rank=same; binary unpacker upx} | |
nodesep=0.5 | |
/* input and output formats */ | |
"Mach-O Universal static library" [fillcolor=limegreen style=filled] | |
archive [fillcolor=limegreen style=filled] | |
elf [fillcolor=limegreen style=filled] | |
pe [fillcolor=limegreen style=filled] |
pkgname=physfs-git | |
pkgver=12 | |
pkgrel=1 | |
pkgdesc="A library to provide abstract access to various archives" | |
arch=('x86_64') | |
url="https://github.com/dgengin/physfs" | |
license=('ZLIB') | |
depends=('zlib') | |
makedepends=('git' 'cmake' 'doxygen') | |
provides=("physfs") |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#LLDB Basics
A basic overview of lldb for personal reference.
Official documentation can be found here here.
##Command Structure General syntax
<noun> <verb> [-options [option-value]] [argument [argument...]]
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sys/types.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <pthread.h> | |
void * f(void *data) { | |
struct timespec start; | |
clock_gettime(CLOCK_REALTIME, &start); |