Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View jsm222's full-sized avatar

Jesper Schmitz Mouridsen jsm222

View GitHub Profile
@jsm222
jsm222 / gist:9980c91ae9eec043ec68e07bab182c62
Created June 15, 2016 20:29
lxqt-panel freebsd 10 correct back linking.
/usr/bin/CC -std=c++11 -g -Xlinker --export-dynamic CMakeFiles/lxqt-panel.dir/main.cpp.o CMakeFiles/lxqt-panel.dir/panelpluginsmodel.cpp.o CMakeFiles/lxqt-panel.dir/windownotifier.cpp.o CMakeFiles/lxqt-panel.dir/lxqtpanel.cpp.o CMak
eFiles/lxqt-panel.dir/lxqtpanelapplication.cpp.o CMakeFiles/lxqt-panel.dir/lxqtpanellayout.cpp.o CMakeFiles/lxqt-panel.dir/plugin.cpp.o CMakeFiles/lxqt-panel.dir/pluginsettings.cpp.o CMakeFiles/lxqt-panel.dir/popupmenu.cpp.o CMakeFiles/l
xqt-panel.dir/pluginmoveprocessor.cpp.o CMakeFiles/lxqt-panel.dir/lxqtpanelpluginconfigdialog.cpp.o CMakeFiles/lxqt-panel.dir/config/configpaneldialog.cpp.o CMakeFiles/lxqt-panel.dir/config/configpanelwidget.cpp.o CMakeFiles/lxqt-panel.d
ir/config/configpluginswidget.cpp.o CMakeFiles/lxqt-panel.dir/config/addplugindialog.cpp.o CMakeFiles/lxqt-panel.dir/LXQtAppTranslationLoader.cpp.o CMakeFiles/lxqt-panel.dir/lxqt-panel_automoc.cpp.o -o lxqt-panel -L/usr/local/lib -lmen
u-cache ../plugin-clock/libclock.a ../plugin-desktopswitch/libdesktopswi
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)
@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);
@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[] = {
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 / 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.
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 / 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
@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;
---
- hosts: localhost
vars:
network: "private"
tasks:
- name : Create security group webservers
openstack.cloud.security_group:
cloud: {{cloud}}
state: present