I hereby claim:
- I am frafra on github.
- I am frafra (https://keybase.io/frafra) on keybase.
- I have a public key ASD1qB8afeWaO_4u5Wd4Ug5EIYYyt17plvfPIfK3BMeo9go
To claim this, I am signing this object:
#!/bin/bash -e | |
# | |
# How to run this script: | |
# $ (source <(curl https://gist.githubusercontent.com/frafra/babfe4c32478923687ea/raw)) | |
DIR=/sys/class/drm | |
REGEX="(card[0-9]+-(.+))" | |
OUTPUTS=($(for f in $DIR/* | |
do [[ $f =~ $REGEX ]] && echo ${BASH_REMATCH[1]} || true | |
done)) |
#!/usr/bin/bash | |
service="_seren._udp" | |
# Select a random host | |
host=$(avahi-browse -d local $service -tpr | grep ";$service;" | grep -e '^=;' | sort -R | head -n1) | |
avahi-publish -s "Seren for $(hostname)" $service 8110 & | |
pid=$! | |
if [ -z "$service" ] |
I hereby claim:
To claim this, I am signing this object:
/* | |
* Copyright (c) 2015, Marco Motta. | |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
* | |
* This code is free software; you can redistribute it and/or modify it | |
* under the terms of the GNU General Public License version 2 only, as | |
* published by the Free Software Foundation. | |
* | |
* This code is distributed in the hope that it will be useful, but WITHOUT | |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
#!/usr/bin/python3 | |
# https://fedoraproject.org/wiki/Packaging:Guidelines#File_and_Directory_Ownership | |
# Made by Frafra | |
import collections | |
import rpm | |
def depchain_check(pkg, pkgs): | |
ts = rpm.TransactionSet() | |
ts.addErase(pkg) |
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import xml.etree.ElementTree as ET | |
def getProperties(entry, ns): | |
for app_property in entry.findall('apps:property', ns): | |
name = app_property.attrib['name'] | |
if name in ('forwardTo', 'shouldTrash'): | |
yield name |
Title | Last update | User | Notes |
---|---|---|---|
Account System/CompleteFPCA/it | 2016-01-29 14:56:14 | Robyduck | |
Account System/NewAccount/it | 2016-01-27 15:16:25 | Robyduck | |
Ambassadors/AnswerQuestions/it | 2016-01-27 15:18:36 | Robyduck | |
Ambassadors/ButtonUp/it | 2016-01-29 14:57:44 | Robyduck | |
Ambassadors/Conduct/it | 2016-01-20 14:06:01 | Robyduck | |
Ambassadors/FAQ/it | 2016-01-20 |
#!/usr/bin/python3 | |
# | |
# Copyright (C) 2016 - Francesco Frassinelli | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
#!/usr/bin/python3 | |
import itertools | |
import operator | |
seq = [8, 8, 7, 6] | |
target = 10 | |
ops = [ | |
operator.add, | |
operator.sub, |
#!/usr/bin/env python3 | |
# | |
# Copyright (C) 2016 - Francesco Frassinelli | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |