Skip to content

Instantly share code, notes, and snippets.

View MarioVilas's full-sized avatar

Mario Vilas MarioVilas

View GitHub Profile
@MarioVilas
MarioVilas / goodreads-quote-downloader.py
Last active March 15, 2023 13:51
Goodreads quote downloader script
#!/usr/bin/env python3
# Fortune cookie generator based on Goodreads quotes
# --------------------------------------------------
#
# Use the following commands to download quotes from a specific author (for example, Mark Twain):
#
# python3 goodreads-quote-downloader.py -e3 https://www.goodreads.com/author/quotes/1244.Mark_Twain > marktwain
# strfile -c % marktwain marktwain.dat
# sudo cp marktwain marktwain.dat /usr/share/games/fortunes/
# Needed for some old machines and iPhones.
#KexAlgorithms +diffie-hellman-group1-sha1
############################################################
# Enter any host specific configuration here.
Host example
Hostname 1.1.1.1
User myuser
@MarioVilas
MarioVilas / p
Created October 1, 2016 12:04
Stupid simple script to git pull from a lot of repositories.
#!/bin/bash
for i in */.git
do
cd $i/..
git pull
cd ..
done

Keybase proof

I hereby claim:

  • I am mariovilas on github.
  • I am mariovilas (https://keybase.io/mariovilas) on keybase.
  • I have a public key ASDlfUznGeHiHyE_OEWC_0uA0OXR6wR5WB2BNt5fb9a7Sgo

To claim this, I am signing this object:

@MarioVilas
MarioVilas / no-interactive-login
Created April 18, 2016 11:25
A simple script so git users can enumerate the repositories they can access. Place it at: ~/git-shell-commands/no-interactive-login
#!/bin/sh
echo
echo 'SSH successfully configured.'
echo 'Now try running:'
for i in *.git
do
printf ' git clone %s@%s:%s\n' $USER $(cat /etc/hostname) $i
done
echo
exit 128
diff --git a/bindings/python/setup.py b/bindings/python/setup.py
old mode 100644
new mode 100755
index acfe7ed..4728455
--- a/bindings/python/setup.py
+++ b/bindings/python/setup.py
@@ -98,7 +98,7 @@ class custom_build_clib(build_clib):
build_clib.finalize_options(self)
def build_libraries(self, libraries):