Skip to content

Instantly share code, notes, and snippets.

Alberto Fanjul albfan

Block or report user

Report or block albfan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@albfan
albfan / .gitignore
Last active Sep 26, 2019 — forked from kontez/freeotp_backup.md
A guide to back up and recover 2FA tokens from FreeOTP (Android)
@albfan
albfan / main.py
Last active Dec 24, 2018
Creating an UI with GtkBuilder that includes a GtkSourceView
View main.py
#!/usr/bin/env python3
import gi
gi.require_version('GtkSource', '4')
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GtkSource, GObject
from os.path import abspath, dirname, join
current_dir = abspath(dirname(__file__))
View keybase.md

Keybase proof

I hereby claim:

  • I am albfan on github.
  • I am albfan (https://keybase.io/albfan) on keybase.
  • I have a public key whose fingerprint is CA53 4245 9EA6 68AF D59F 5533 823F 59D7 3608 8822

To claim this, I am signing this object:

View wrg
#!/usr/bin/env bash
seenReplace=''
for arg in "$@"; do
if test "$arg" == '--replace'; then
seenReplace='true'
break
fi
done
@albfan
albfan / gtk3-theme-switch
Created Jan 12, 2018
gtk3 theme switcher
View gtk3-theme-switch
#!/bin/bash
# script to config gtk theme
GTK_VERSION=3
TWEAK_APP=lxappearance
# paths
user_home=/home/${USER}
theme_name=$@ # all arguments....
View keybase.md

Keybase proof

I hereby claim:

  • I am albfan on github.
  • I am albfan (https://keybase.io/albfan) on keybase.
  • I have a public key whose fingerprint is E106 BDA5 525B CDDC 4ADD DA21 12AF 2D81 E821 66C6

To claim this, I am signing this object:

@albfan
albfan / VariableDepthCopier.java
Created Oct 14, 2016 — forked from thinkbigthings/VariableDepthCopier.java
Handy utility for copying domain objects into a response.
View VariableDepthCopier.java
import java.beans.PropertyDescriptor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import org.springframework.beans.BeanUtils;
View cpanfile
requires "SQL::Translator::Producer::PlantUML";
requires "DBD::Pg";
You can’t perform that action at this time.