Skip to content

Instantly share code, notes, and snippets.

View mike-perdide's full-sized avatar

Julien Miotte mike-perdide

View GitHub Profile
@mike-perdide
mike-perdide / gist:763299d0af5a78dfdf9de8ebc09fb97c
Created September 16, 2025 12:19
pfsense restapi configuration
<package>
<name>RESTAPI</name>
<internal_name>restapi</internal_name>
<descr><![CDATA[The missing REST API package for pfSense]]></descr>
<website>https://github.com/jaredhendrickson13/pfsense-api</website>
<category>System</category>
<version>%%PKGVERSION%%</version>
<configurationfile>restapi.xml</configurationfile>
<maintainer>[email protected]</maintainer>
<conf>
# License : copyleft
import json
import requests
import string
import os
import sys
CHARACTER_BASE = string.letters + string.digits
@mike-perdide
mike-perdide / salt-minion
Last active December 15, 2015 20:40 — forked from unicolet/salt-minion
#!/bin/bash
#
# Template SUSE system startup script for example service/daemon salt-minion
# Copyright (C) 1995--2005 Kurt Garloff, SUSE / Novell Inc.
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at
# your option) any later version.
#
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
from kivy.uix.dropdown import DropDown
from kivy.lang import Builder
Builder.load_string("""
<ComboBox>
cols: 1
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.gridlayout import GridLayout
from kivy.uix.label import Label
from kivy.properties import BooleanProperty
Builder.load_string("""
<CustomLabel>
color: 1, .4, .4, 1
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.tabbedpanel import TabbedPanel
Builder.load_string("""
<TabbedPanelContent>
canvas:
Color:
rgba: root.parent.custom_color
Rectangle:
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.floatlayout import FloatLayout
Builder.load_string("""
<TestWidget>
label: label
Label:
id: label
"""
What I'm trying to do is draw a border around my widget.
Here, an AsyncImage.
"""
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.gridlayout import GridLayout
from kivy.uix.tabbedpanel import TabbedPanel
Builder.load_string("""
from kivy.app import App
from kivy.lang import Builder
from kivy.uix.widget import Widget
Builder.load_string("""
<TestWidget>
Label:
id: my_label
text: "WASSUP"
font_size: 20
@mike-perdide
mike-perdide / gist:775263
Created January 11, 2011 22:10
My attempts at making git-filter-branch work on a limited list of commits
I patched git-filter-branch to see what command where executed (so mainly I added set -x in a few spots)
Here are my last 10 commits :
[celest.qGitFilter//master]% git-rev-list HEAD |head
dfa87ccef0c825e0ad3546d64135ceafb92647b8
424a7ab28c259a1746c4748ce7deb1e4f7ed0f57 (I'll be trying to filter from this commit)
01ccee851c8bec6f247d018676464ba3deec95ae
d730a84fc935a67608b625dbd3ff0884fbf245d1
b96f6790a480b803860dee471d1f9361853d0613 (to this one)