Skip to content

Instantly share code, notes, and snippets.

View madgrk's full-sized avatar

Ioannis Angelis madgrk

View GitHub Profile
@SmartFinn
SmartFinn / sign-kernel-longterm.sh
Created September 2, 2023 19:04
Automatically signing long term kernels with Machine Owner Key (MOK) using post-install script
#!/bin/bash
# file: /etc/kernel/postinst.d/sign-kernel-longterm
#
# Create signing keys:
#
# openssl req -new -x509 -newkey rsa:4096 \
# -keyout MOK.priv \
# -outform DER -out MOK.der \
# -nodes -days 36500 -subj "/CN=Descriptive Name/"
#
@shashank-1729
shashank-1729 / PY0101EN-2-2-Lists.ipynb
Created April 14, 2021 07:38
Created on Skills Network Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@lazywebm
lazywebm / filebeat_armhf.sh
Last active October 18, 2023 20:14
Repackaging filebeat as .deb for 32 bit Raspbian
#!/usr/bin/env bash
# v1.2 / 2021-05-29 / Jan Schumacher / mail@jschumacher.info
# https://jschumacher.info/2021/03/up-to-date-filebeat-for-32bit-raspbian-armhf/
#
# v1.2: shellcheck'd, fixing variable double quoting. Using "awk 'FNR <= 1'" instead of "head -n 1" to avoid PIPEFAIL and 141 error.
# v1.1: Removing realtive paths, fixing dpkg-deb repackage method, updating help text, typos.
set -Eeuo pipefail
#set -Eeu
@mz0
mz0 / netbeans.desktop
Created January 30, 2021 20:43
No-nonsense Apache NetBeans 12.2 .desktop file
[Desktop Entry]
Version=1.0
Type=Application
Name=NetBeans
Icon=/home/mz0/t/nb12.2/netbeans/nb/netbeans.png
Exec=/home/mz0/t/nb12.2/netbeans/bin/netbeans
Comment=Apache NetBeans IDE 12.2
Categories=Development;IDE;
Terminal=false
StartupWMClass=Apache NetBeans IDE 12.2
@ruwanka
ruwanka / StudentMessageConverter.java
Last active January 10, 2024 06:29
Jms message converter for converting text message to pojo
package com.aptkode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.support.converter.MessageConversionException;
import org.springframework.jms.support.converter.MessageConverter;
import org.springframework.stereotype.Component;
import javax.jms.JMSException;
@berkorbay
berkorbay / github_desktop_ubuntu.md
Last active July 22, 2024 09:51
To install Github Desktop for Ubuntu

IMPORTANT

See the following links for further updates to Github Desktop for Ubuntu. These are official instructions. (also mentioned by fetwar on Nov 3, 2023)

For the sake of "maintaining the tradition" here is the updated version.

@linuxmalaysia
linuxmalaysia / Monitoring_Setting_For_Elastic_Stack_7.txt
Created January 31, 2020 07:17
Monitoring Setting For Elastic Stack 7.x
*** Monitoring Setting For Elastic Stack 7.x ***
===> elasticsearch.yml
xpack.monitoring.enabled: true
xpack.monitoring.collection.enabled: true
===> kibana.yml
xpack.monitoring.enabled: true
@Gueka
Gueka / gradle.build
Created August 9, 2019 16:39
Gradle example to create a SOAP web service with spring boot
buildscript {
ext {
jaxbVersion = '2.3.2'
wsdlVersion = '1.6.3'
junitVersion = '5.3.2'
}
}
plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
@nickname55
nickname55 / pom.xml
Created June 22, 2019 14:12
maven compiler plugin and Lombok annotation processor
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>UTF-8</encoding>
<annotationProcessorPaths>
<path>
@darbyluv2code
darbyluv2code / web.xml
Created February 24, 2019 20:23
web.xml for servlet 4 (requires Tomcat 9)
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
</web-app>