Skip to content

Instantly share code, notes, and snippets.

View Jeansen's full-sized avatar
👀
Coding ...

Marcel Jeansen

👀
Coding ...
View GitHub Profile
@Jeansen
Jeansen / gitea_jenkins_ambassador.service
Last active February 14, 2024 18:10
Gitea Jenkins Ambassador
#Create this file in /etc/systemd/system/gitea_jenkins_ambassador.service
#Enable service with: sudo systemctl enable gitea_jenkins_ambassador.service
#Start service with: sudo systemctl start gitea_jenkins_ambassador.service
#Check all ist fine: sudo sytemctl status gitea_jenkins_ambassador.service
[Unit]
Description=Wrapper for GET hooks from systemd to Jenkins
[Service]
ExecStart=/bin/bash /usr/local/bin/gitea_jenkins_ambassador.sh
INFO global: Vagrant version: 2.2.14
INFO global: Ruby version: 2.6.6
INFO global: RubyGems version: 3.0.3
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_DEFAULT_PROVIDER="virtualbox"
INFO global: VAGRANT_HOME="/media/marcel/94d15c83-a434-4bd0-98fe-1b9605a8ab5a/t/.vagrant.d"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.14/gems/vagrant-2.2.14/bin/vagrant"
INFO global: VAGRANT_INSTALLER_ENV="1"
@Jeansen
Jeansen / add_cert_to_nss_apps.sh
Last active February 22, 2020 18:27
Add a root certificate to all applications using Network Security Services (NSS), e.g. Firefox, Chrome and more.
#!/usr/bin/env bash
### Installs the given root certificate to:
# - every found trust store
# - in the users profil directory
# - for applications using NSS (e.g. Firefox, Thunderbird, Chrome).
hash certutil || { echo "certutil not found, please install 'libnss3-tools'"; exit 1; }
[[ -f $1 ]] || { echo "Please provide a certificate file."; exit 1; }
@Jeansen
Jeansen / memtest2.pl
Created April 8, 2017 08:37
show and hide increase memory, too
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use 5.10.1;
use autodie;
use constant {GAUGE => '▪'};
sub on_start {
my ($self) = @_;
@Jeansen
Jeansen / memtest.pl
Created April 8, 2017 08:32
overlay test - consuming more and more memory
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use 5.10.1;
use autodie;
use constant {GAUGE => '▪'};
sub on_start {
my ($self) = @_;