Skip to content

Instantly share code, notes, and snippets.

View jsm222's full-sized avatar

Jesper Schmitz Mouridsen jsm222

View GitHub Profile
@jsm222
jsm222 / hellodesktop-filer.diff
Last active June 30, 2021 07:30
Testing port of hellodesktop-filer
diff --git a/x11-fm/Makefile b/x11-fm/Makefile
index 3fe702533..48fcbacb7 100644
--- a/x11-fm/Makefile
+++ b/x11-fm/Makefile
@@ -9,6 +9,7 @@
SUBDIR += fsv2
SUBDIR += gentoo
SUBDIR += gprename
+ SUBDIR += hellodesktop-filer
SUBDIR += konqueror
---
- hosts: localhost
vars:
network: "private"
tasks:
- name : Create security group webservers
openstack.cloud.security_group:
cloud: {{cloud}}
state: present
@jsm222
jsm222 / passbolt_register_with_key.patch
Created August 22, 2019 10:11
passbolt_cli read only users.
diff --git a/src/Shell/Task/RegisterUserTask.php b/src/Shell/Task/RegisterUserTask.php
index 074f06893b..a22e27db4d 100644
--- a/src/Shell/Task/RegisterUserTask.php
+++ b/src/Shell/Task/RegisterUserTask.php
@@ -17,6 +17,7 @@ namespace App\Shell\Task;
use App\Controller\Events\EmailNotificationsListener;
use App\Error\Exception\ValidationException;
use App\Model\Entity\Role;
+use App\Model\Entity\Gpgkey;
use App\Shell\AppShell;
@jsm222
jsm222 / plugins.patch
Created April 20, 2019 22:55
albert-plugins WIP patch for FreeBSD
diff --git a/calculator/CMakeLists.txt b/calculator/CMakeLists.txt
index ff57f11..cac7476 100644
--- a/calculator/CMakeLists.txt
+++ b/calculator/CMakeLists.txt
@@ -14,7 +14,7 @@ target_link_libraries(${PROJECT_NAME}
PRIVATE
Qt5::Widgets
albert::lib
- muparser
+ -L/usr/local/lib -lmuparser
import yaml
import ipaddress
import requests
import argparse
from getpass import getpass
from concurrent.futures import ThreadPoolExecutor, wait, as_completed
class NeutronSecRuleTest:
def __init__(self,test_ipaddr):
self.test_ipaddr=ipaddress.IPv4Address(test_ipaddr.decode('ascii'))
@jsm222
jsm222 / LXQt.txt
Created June 7, 2017 17:28
wiki.freebsd.org/LXQt proposed changes
= LXQt on FreeBSD =
[[http://lxqt.org/|LXQt]] is the Qt port of LXDE, the Lightweight Desktop Environment. It is the product of the merge between the LXDE-Qt and the Razor-qt projects.
Heavily work in progress, it needs some components of Plasma 5 (the new major KDE’s workspace).
[[attachment:lxqt-0.11.1.png|{{attachment:lxqt-0.11.1.png|LXQt 0.11.1|width="150"}}]]
== Install the LXQt (0.11) desktop ==
{{{#!wiki important
Due to missing piece of Plasma5 components in official ports tree, '''you must clone and merge''' the LXQt repository.
diff --git a/lxqt-leave/keyenterreceiver.cpp b/lxqt-leave/keyenterreceiver.cpp
index 69cb6a4..ca27c5a 100644
--- a/lxqt-leave/keyenterreceiver.cpp
+++ b/lxqt-leave/keyenterreceiver.cpp
@@ -1,6 +1,9 @@
#include "keyenterreceiver.h"
-KeyEnterReceiver::KeyEnterReceiver(QObject *parent) : QObject(parent)
+#include <QDebug>
+KeyEnterReceiver::KeyEnterReceiver(QObject *parent,QVector<QToolButton*> *toolButtons) : QObject(parent)
{
@jsm222
jsm222 / cpu-usage.c
Created February 19, 2017 02:21
Hacked from top, display overall cpu-usage on FreeBSD..
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/resource.h>
#include <sys/types.h>
#include <sys/sysctl.h>
static int out[CPUSTATES];
static long cp_old[CPUSTATES];
static long cp_diff[CPUSTATES];
char *cpustatenames[] = {
@jsm222
jsm222 / imclientauthtest.c
Created September 25, 2016 23:09
Prompt for password to late...
#include <stdlib.h>
#include <stdio.h>
#include <cyrus/imclient.h>
#include "assert.h"
static struct imclient *imclient;
void fatal(const char *s, int code)
{
fprintf(stderr, "Fatal error: %s\n", s);
exit(code);
diff --git a/lxqtpower/lxqtpowerproviders.cpp b/lxqtpower/lxqtpowerproviders.cpp
index 5379281..7c8537a 100644
--- a/lxqtpower/lxqtpowerproviders.cpp
+++ b/lxqtpower/lxqtpowerproviders.cpp
@@ -320,40 +320,8 @@ ConsoleKitProvider::~ConsoleKitProvider()
bool ConsoleKitProvider::canAction(Power::Action action) const
{
- QString command;
- switch (action)