Skip to content

Instantly share code, notes, and snippets.

@electricintel
electricintel / HttpServer.cs
Created September 30, 2021 00:03 — forked from define-private-public/HttpServer.cs
A Simple HTTP server in C#
// Filename: HttpServer.cs
// Author: Benjamin N. Summerton <define-private-public>
// License: Unlicense (http://unlicense.org/)
using System;
using System.IO;
using System.Text;
using System.Net;
using System.Threading.Tasks;
@electricintel
electricintel / README.md
Created December 10, 2020 03:07 — forked from hasanbayatme/README.md
Easy to use Bash Script to Install LAMP stack on Ubuntu.

Installation

Automatic

Run the below command in terminal:

wget --no-cache -O - https://gist.github.com/EmpireWorld/737fbb9f403d4dd66dee1364d866ba7e/raw/install-lamp.sh | bash
@electricintel
electricintel / snakecoin-server-full-code.py
Created November 28, 2020 15:40 — forked from aunyks/snakecoin-server-full-code.py
The code in this gist isn't as succinct as I'd like it to be. Please bare with me and ask plenty of questions that you may have about it.
from flask import Flask
from flask import request
import json
import requests
import hashlib as hasher
import datetime as date
node = Flask(__name__)
# Define what a Snakecoin block is
class Block:
@electricintel
electricintel / README.md
Created February 21, 2018 13:40 — forked from plugnburn/README.md
Statix - the simplest static website generator in bash

Statix - the simplest static website generator in Bash

Statix is a stand-alone Bash script aimed at generating full-featured, routable static websites from reusable HTML snippets. It features the most basic templating engine ever possible but allows to organize your content in a SEO-friendly way. All Statix-based websites contain these parts:

  • Templates: a directory where all HTML templates are stored
  • Route configuration: a file that maps each publicly accessible template to a SEO-friendly URL
  • Assets: a directory with optional files copied to the output website directory with no processing.

This script is also lightweight. Aside from some standard file management commands such as cp, mkdir and rm, the only serious dependency for Statix is GNU Grep compiled with PCRE support (i.e. the version that supports -P flag, included in most Linux distributions).

@electricintel
electricintel / compile-nautilus.sh
Created June 25, 2016 14:40 — forked from hubgit/compile-nautilus.sh
re-compile Ubuntu's Nautilus package from source
sudo apt-get install fakeroot build-essential dpkg-dev gnome-core-devel
sudo apt-get build-dep nautilus
mkdir nautilus-ubuntu && cd nautilus-ubuntu
apt-get source nautilus
dpkg-source -x nautilus_3.2.1-0ubuntu3.2.dsc
cd nautilus-3.2.1/
installation edit from http://www.pendrivelinux.com/multiboot-create-a-multiboot-usb-from-linux/
*Worked in Ubuntu 16.04*
pendrivelinux.com
MultiSystem – Create a MultiBoot USB from Linux
How to Create a MultiBoot USB Flash Drive from Linux: Multisystem is an awesome tool created by LiveUSB.info, that works similar to our Windows based MultiBootISOs USB creator, but was created for use within Linux. It also uses Grub2 instead of Grub Legacy, and can be run from within Ubuntu Linux to create a Custom Multiboot UFD containing your favorite Bootable Live Linux Distributions.
Official HomePage: http://liveusb.info/dotclear