Skip to content

Instantly share code, notes, and snippets.

View llxier's full-sized avatar

lalex llxier

  • userland
  • Mithi, Ierapetra, Greece
View GitHub Profile
@llxier
llxier / echo_nc.sh
Last active August 25, 2017 04:53 — forked from NapoleonWils0n/echo_nc.sh
bash: hex over tcp with netcat and echo
#!/bin/sh
#----------------------------------------------------------------------------------------#
# Hex over TCP with Echo and Netcat #
#----------------------------------------------------------------------------------------#
echo -n -e "\x01\x18\x03" | nc 192.168.1.4 80
# The -n supresses outputting the trailing newline.
# The -e enables the interpretation of backslash escapes -- allowing us to send hex codes.
@llxier
llxier / libfcgi-example.c
Created January 23, 2017 16:49 — forked from dermesser/libfcgi-example.c
In case anyone wants to see a multi-threaded FastCGI application written with the fcgiapp library.
# include <stdlib.h>
# include <stdio.h>
# include <sys/stat.h>
# include <pthread.h>
# include <fcgiapp.h>
const char* const sockpath = "/tmp/fcgicpp.sock";
@llxier
llxier / web-servers.md
Created February 26, 2016 09:03 — forked from willurd/web-servers.md
Big list of http static server one-liners

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.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@llxier
llxier / designer.html
Created April 15, 2015 05:18
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;