Skip to content

Instantly share code, notes, and snippets.

View croensch's full-sized avatar
🤠
out there

croensch

🤠
out there
  • Hella Gutmann Solutions
  • Freiburg im Breisgau, Germany
View GitHub Profile
@btalanski
btalanski / mysql_workbench_an_apparmor_policy_prevents_this_sender.txt
Created July 11, 2020 15:09
Mysql workbench an apparmor policy prevents this sender
If you are facing the following error while trying to connect to a MySQL server using the MySQL Workbench snap and Ubuntu Focal Fossa: "mysql workbench an apparmor policy prevents this sender [...]"
You might try the following solution:
1 - On a new terminal window, run the following commands:
# snap connect mysql-workbench-community:password-manager-service
# snap connect mysql-workbench-community:ssh-keys
By using snap connect, you will fix the issue with the MySQL Workbench snap, allowing you to connect to the server(s).
# Fix detached head in a submodule
# Here's a good explanation on how to fix detached HEAD for submodules.
# https://stackoverflow.com/questions/18770545
git branch
git checkout master
git submodule add -b <branch> <repository> [<submodule-path>]
git branch --set-upstream-to=origin/master master
@naderman
naderman / proxy-test.php
Last active December 5, 2022 23:52
Composer HTTP Proxy Test
<?php
error_reporting(E_ERROR);
@ini_set('display_errors', 'Off');
echo "Unencrypted HTTP ";
check('http://packagist.org/packages.json', false);
@bmaupin
bmaupin / open-source-sso.md
Last active November 17, 2024 13:20
Comparison of some open-source SSO implementations

ⓘ This list is not meant to be exhaustive and is not guaranteed to be maintained. See the comments for updates and alternative options.

(Items in bold indicate possible concerns)

Keycloak WSO2 Identity Server Gluu CAS OpenAM Shibboleth IdP
OpenID Connect/OAuth support yes yes yes yes yes yes
Multi-factor authentication yes yes yes yes yes yes
Admin UI yes yes yes yes yes no
OpenJDK support yes yes partial² yes
@richardg867
richardg867 / AppCenter.reg
Last active October 1, 2024 10:31
Stops the "APP Center" utility included with Gigabyte motherboards from asking you to update Chrome with an outdated version. Also removes the Norton and Google Toolbar bundleware offers from the app list. Requires a reboot to take effect. Registry keys and Chrome version comparison bug discovered by reverse engineering DrvUpd.exe
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\DownloadCenter]
[HKEY_LOCAL_MACHINE\SOFTWARE\DownloadCenter\Sub]
"Google Chrome (R) a faster way to browse the web"="9223372036854775807"
"Google Drive"="9223372036854775807"
"Google Toolbar for Internet Explorer"="9223372036854775807"
"Norton Internet Security(NIS)"="9223372036854775807"
@jason-idk
jason-idk / mysql-notes.txt
Created February 1, 2018 03:26
Some notes I took on mysql over time...
Random MySQL Notes:
#### Login to MySQL on Plesk by issuing:
If you cannot access DB on Ubuntu, check /etc/mysql/debian.cnf it will be in clear text... Im not joking...
(only on debian based systems… this is definitely a hack and not supposed to be widely used.)
mysql -u admin -p`cat /etc/psa/.psa.shadow`
pipeline {
agent any
stages {
stage('Prepare') {
steps {
sh 'composer install'
sh 'rm -rf build/api'
sh 'rm -rf build/coverage'
sh 'rm -rf build/logs'
@oksuz
oksuz / 10-php5-fpm.conf
Created December 9, 2015 08:25
multi-line php5-fpm logstash configuration
input {
beats {
port => 5044
type => "php5-fpm"
ssl => true
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt"
ssl_key => "/etc/pki/tls/private/logstash-forwarder.key"
}
}
@punchagan
punchagan / hello.py
Last active December 21, 2023 23:36
A simple Flask sockets example
# Copy of http://stackoverflow.com/a/20104705
from flask import Flask, render_template
from flask_sockets import Sockets
app = Flask(__name__)
app.debug = True
sockets = Sockets(app)
@sockets.route('/echo')
@graffic
graffic / gist:6c15f8c2b4f0f208939e
Created May 11, 2014 19:49
Uncle bob "Framework Whipped" original post

Framework Whipped

Uncle Bob 11 May 2014 Craftsmanship Frameworks are powerful tools. We'd be lost without them. But there's a cost to using them.

The relationship between a programmer and a framework is similar to the relationship between an executive and an administrative assistant. The framework takes care of all the necessary details, so that the executive can focus on high level decisions.

Think of Rails, or Spring, or JSF, or Hibernate. Think about what writing a web system would be like without these frameworks to help you. The idea is disheartening. There'd be so many little piddling details to deal with. It'd be like endeavoring to construct a mnemonic memory circuit using stone knives and bearskins[1].

And so we gleefully use those glittering frameworks. We joyously intermingle our code with the frameworks' in anticipation of all the benefits they promise. We make the mistake that so many executives have made before us. We marry our secretary.