Skip to content

Instantly share code, notes, and snippets.

View marado's full-sized avatar

Marcos Marado marado

View GitHub Profile
@chbm
chbm / legislativas2019.md
Last active September 18, 2019 18:33
Legislativas 2019 - Direitos digitais

Eleições Legislativas 2019 - Direitos digitais

Introdução

Os direitos digitais e as garantias democráticas são, a seguir à emergência climática e à resposta da sociedade aos novos modelos de trabalho, uma area da política actual que vai definir as próximas décadas. Resumo aqui as posições dos partidos que concorrem às eleições legislativas 2019. Não sou um observador isento por isso classifico cada proposta tendo como critério o acesso livre e sem censura à informação, e as garantias de proteção da vida privada.

PSD

Nota: E

@DoctorWkt
DoctorWkt / risc-v_debian.md
Last active May 20, 2019 14:01
Building a RISC-V Debian Environment on a Debian/Ubuntu System

Building a RISC-V Debian Environment on a Debian/Ubuntu System

Here is how you can set up a simulated RISC-V Debian environment on an existing Debian or Ubuntu system (as at November 2018). You will probably have to apt-get some extra packages along the way.

Firstly, make a new empty directory and set the TOP environment variable to be the full pathname of this directory:

@jdarpinian
jdarpinian / executable.c
Last active March 20, 2024 15:28
Add one line to your C/C++ source to make it executable.
///bin/true;COMPILER_OPTIONS="-g -Wall -Wextra --std=c99 -O1 -fsanitize=address,undefined";THIS_FILE="$(cd "$(dirname "$0")"; pwd -P)/$(basename "$0")";OUT_FILE="/tmp/build-cache/$THIS_FILE";mkdir -p "$(dirname "$OUT_FILE")";test "$THIS_FILE" -ot "$OUT_FILE" || $(which clang || which gcc) $COMPILER_OPTIONS -xc "$THIS_FILE" -o "$OUT_FILE" || exit;exec "$OUT_FILE" "$@"
#include <stdio.h>
int main() {
printf("Hello world!\n");
return 0;
}
@yanofsky
yanofsky / LICENSE
Last active February 25, 2024 12:21
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@simkimsia
simkimsia / install_Phing_d51PearPkg2Task.sh
Created March 11, 2013 11:36
install Phing_d51PearPkg2Task for phing commands
#!/bin/bash
###
#
# Ubuntu 12.10 based web server installation script for Phing_d51PearPkg2Task
# because the pear.domain51.com channel is down
# Run this by executing the following from a fresh install of Ubuntu 12.10 server:
#
# bash -c "$(curl -fsSL https://raw.github.com/gist/4372049)"
#
@championofblocks
championofblocks / wav-mp3
Last active March 18, 2024 20:08
Command line bash to convert all wav to mp3
for i in *.wav; do lame -b 320 -h "${i}" "${i%.wav}.mp3"; done
@endolith
endolith / export_google_starred_locations.py
Created October 16, 2012 02:29
Export Google Maps starred locations
# -*- coding: utf-8 -*-
"""
Go to Google Bookmarks: https://www.google.com/bookmarks/
On the bottom left, click "Export bookmarks": https://www.google.com/bookmarks/bookmarks.html?hl=en
After downloading the html file, run this script on it to generate a KML.
"""
@dave1010
dave1010 / htaccess
Created December 14, 2011 13:07
HTTP Status Cats Apache (htaccess) config
# HTTP Status Cats
# Apache (htaccess) config created by @dave1010
# Licensed CC BY 2.0
# Images CC BY 2.0, from GirlieMac's photostream:
# http://www.flickr.com/photos/girliemac/sets/72157628409467125/with/6508023065/
# Usage: copy save this file as .htaccess or add it to your httpd.conf
ErrorDocument 404 '<a href="http://www.flickr.com/photos/girliemac/6508022985/" title="404 - Not Found by GirlieMac, on Flickr"><img src="http://farm8.staticflickr.com/7172/6508022985_b22200ced0.jpg" width="500" height="400" alt="404 - Not Found"></a>'