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| #!/bin/bash | |
| # The script does automatic checking on a Go package and its sub-packages, including: | |
| # 1. gofmt (http://golang.org/cmd/gofmt/) | |
| # 2. goimports (http://godoc.org/golang.org/x/tools/cmd/goimports) | |
| # 3. golint (https://github.com/golang/lint) | |
| # 4. go vet (http://golang.org/cmd/vet) | |
| # 5. race detector (http://blog.golang.org/race-detector) | |
| # 6. test coverage (http://blog.golang.org/cover) |
| 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) { |
| # Install ARCH Linux with encrypted file-system and UEFI | |
| # The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
| # Download the archiso image from https://www.archlinux.org/ | |
| # Copy to a usb-drive | |
| dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
| # Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
| # Set swedish keymap |
| // 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