Skip to content

Instantly share code, notes, and snippets.

View Gaulomatic's full-sized avatar

Tobias Punke Gaulomatic

  • Bremen, Germany
View GitHub Profile
@Gaulomatic
Gaulomatic / ubuntu-20.04-partitionpamanger
Last active April 4, 2021 19:48
Install partitionmanager on Ubuntu 20.04 Live CD
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
sudo apt install partitionmanager
@Gaulomatic
Gaulomatic / Microsoft Office 2019 RTM GVLK Keys
Created January 10, 2020 16:48 — forked from marwein/Microsoft Office 2019 RTM GVLK Keys
Microsoft Office 2019 RTM default #GVLK (Generic Volume License Key)
GVLKs for KMS and Active Directory-based activation of Office 2019 and Office 2016
Applies to: Volume licensed versions of Office 2019 and Office 2016, including Project and Visio
By default, volume licensed versions of Office 2019 and Office 2016 are installed with a Generic Volume License Key (GVLK).
The GVLK enables Office to automatically discover and activate against your KMS host computer or Active Directory infrastructure.
Important
These license keys can't be used to activate your personal copy of Office.
export class Action
{
public static Do(unit: () => void, ignoreErrors: boolean = false, onError: (ex: Error) => void = null): boolean
{
try
{
unit();
return true;
}
catch (ex)
@Gaulomatic
Gaulomatic / pgsql_backup.sh
Created November 30, 2018 02:44 — forked from sirbrillig/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres
@Gaulomatic
Gaulomatic / IReactiveEffects.cs
Last active February 3, 2023 11:03
Reactive Fluxor Middleware
using System;
using Blazor.Fluxor;
namespace Logixware.Web.Blazor.Fluxor
{
public interface IReactiveEffects
{
IObservable<IAction> Actions { get; }
}
}
@Gaulomatic
Gaulomatic / default
Created August 5, 2018 02:01 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@Gaulomatic
Gaulomatic / GPG-Tower
Created July 8, 2018 21:24 — forked from LeonardoCardoso/GPG-Tower
How to setup Tower to use the GPG Suite
# GPG on Tower
@Gaulomatic
Gaulomatic / gpg_git_signing.md
Created July 8, 2018 21:18 — forked from alopresto/gpg_git_signing.md
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
@Gaulomatic
Gaulomatic / Spam-me-not.js
Created February 28, 2018 09:53
Spam me not
/* Spam-me-not.js - JavaScript source of Spam-me-not. */
/* Encode email addresses to make it harder for Spammers to harvest them. */
/* Copyright (c) 2003 by Andreas Neudecker */
/* Licensed under the GNU General Public License (GPL), see http://www.gnu.org/copyleft/ */
/* Last changes: 2007-08-10 by Andreas Neudecker */
/* This is where the real encoding is done */
function encodeString( originalString, mode ) {