Skip to content

Instantly share code, notes, and snippets.

View rubberduck203's full-sized avatar

Christopher McClellan rubberduck203

View GitHub Profile
@batmat
batmat / sonarqube-mysql-docker-compose.yml
Created July 15, 2015 22:32
Working SonarQube + Mysql Dead Simple Docker Compose file
sonarqube:
image: sonarqube:5.1.1
ports:
- "9000:9000"
- "3306:3306"
environment:
- SONARQUBE_JDBC_USERNAME=sonar
- SONARQUBE_JDBC_PASSWORD=sonar
- SONARQUBE_JDBC_URL=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true
@jnm2
jnm2 / PasswordEdit.cs
Last active January 9, 2018 03:55
Hooks into the key messages to a DevExpress TextEdit at a low level and replaces all characters with '*', maintaining a separate SecureString to store the actual password.
/// <summary>
/// Hooks into the key messages at a low level and replaces all characters with '*', maintaining a separate SecureString to store the actual password.
/// </summary>
[UserRepositoryItem("Register")]
public sealed class RepositoryItemPasswordEdit : RepositoryItemTextEdit
{
static RepositoryItemPasswordEdit()
{
Register();
}
@techfort
techfort / LokiSaveReload.js
Last active February 5, 2024 10:27
LokiJS - save to disk and reload
var loki = require('lokijs'),
db = new loki('test.json'),
db2 = new loki('test.json');
var users = db.addCollection('users');
users.insert({
name: 'joe'
});
users.insert({
name: 'john'
@ricardas
ricardas / usart.c
Created December 24, 2012 01:21
Atmega328: USART
#ifndef F_CPU
#define F_CPU 16000000
#endif
#include <avr/io.h>
#include <util/delay.h>
#define BAUD 9600
#define MYUBRR F_CPU/16/BAUD-1