Skip to content

Instantly share code, notes, and snippets.

View santileortiz's full-sized avatar

Santiago León santileortiz

  • Mexico
View GitHub Profile
@santileortiz
santileortiz / Building Burr Tools
Created May 3, 2020 03:04
Procedure for building Burr Tools in elementary OS
- Install dependencies
$ sudo apt-get install libfltk1.3-dev install libboost-all-dev libxmu-dev
- Go to src/Makefile.am and add -lboost_system to LDADD, should be
LDADD= $(GUI_LD_ADD) $(XML_LD_ADD) $(PTHREAD_LD_ADD) -lboost_system
- Run regeneate makefiles with
$ aclocal; automake
- Run configure
@santileortiz
santileortiz / awk_split_join.txt
Last active June 24, 2020 09:09
Example of split/join of fields with AWK
This example shows how $0 and the other $n fields change during the execution
of an AWK script. In a sense this is what using AWK is all about.
Consider the following awk script, with " 1 2 3 4 5" as input.
{
print_fields();
$1 = "";
$3 = "";
@santileortiz
santileortiz / nocache_server.py
Created September 12, 2021 06:46
Python 3.8 no cache simple server
#!/usr/bin/python3
import http.server
class MyHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
def end_headers(self):
self.send_my_headers()
http.server.SimpleHTTPRequestHandler.end_headers(self)
def send_my_headers(self):
self.send_header("Cache-Control", "no-cache, no-store, must-revalidate")