Skip to content

Instantly share code, notes, and snippets.

View icirellik's full-sized avatar
💾
Staying Retro

Cameron Rollheiser icirellik

💾
Staying Retro
View GitHub Profile
@icirellik
icirellik / web-sdk.css
Created April 19, 2021 20:06
@blaze/web-sdk Embedded CSS
.ab-pause-scrolling,
body.ab-pause-scrolling,
html.ab-pause-scrolling {
overflow: hidden;
touch-action: none
}
.ab-centering-div,
.ab-iam-root.v3 {
position: fixed;
@icirellik
icirellik / mysql-backup.sh
Created February 2, 2020 16:32
MySQL Backup
#!/bin/sh
#
# This script automates a call to mysqldump
# and sends the output to a file in a backup
# directory. The script is set up to keep
# seven days of history.
#
# Before you can run this script you must
# set up a MySQL user that can perform the
# backup. This user must have permission to
@icirellik
icirellik / hash-zip.ps1
Created December 27, 2019 04:34
Windows Powershell Zip + Hash Utilities
# Recusively Unzip 7-zip files in place
$7zipPath = "$env:ProgramFiles\7-Zip\7z.exe"
if (-not (Test-Path -Path $7zipPath -PathType Leaf)) {
throw "7 zip file '$7zipPath' not found"
}
Set-Alias 7zip $7zipPath
Get-ChildItem -Recurse *.z | %{ 7zip e $_.FullName "-o$($_.Directory)"}
@icirellik
icirellik / libraries.ts
Created August 15, 2019 21:32
Remoting Runtime Psuedo code
type Libraries = any;
type Remoting = any;
export interface LibrariesViewModel {
list(): Libraries[];
}
class LibrariesImpl implements LibrariesViewModel {
public list(): Libraries[] {
return [
'lib1',
@icirellik
icirellik / boxstarter.ps1
Last active April 17, 2019 21:00
Windows Boxstarter Script
# Description: Boxstarter Script
# Author: Cameron Rollheiser
# Last Updated: 2019-04-17
#
# Enable Developer Mode:
#
# Open Windows Settings and search for "Developer Mode"
#
# Show Installed Apps:
# Get-AppxPackage | Select-Object Name, PackageFullName, Version | Format-Table -AutoSize
@icirellik
icirellik / catalina-logging.properties
Created July 21, 2017 17:44
Correct Logging in Tomcat Docker Containers
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@icirellik
icirellik / postgres.sql
Created May 2, 2016 17:22
PostgreSQL Commands
-- Query a parameter
SHOW max_connections;
RESET max_connections;
SHOW ALL;
SELECT * FROM pg_settings;
SELECT *
FROM pg_settings
WHERE name = 'max_connections';
@icirellik
icirellik / Jenkins Api.md
Last active April 25, 2017 09:55
Jenkins API

jobs

jenkins_url + /api/json?tree=jobs[name,color]

builds

jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]

last build

@icirellik
icirellik / npm-fast.sh
Created January 27, 2016 14:03
Faster NPM
# Disable the progress bar to speed up npm
npm set progress=false
@icirellik
icirellik / junit-slf4j-logging.java
Created December 14, 2015 16:01
JUnit Enable slf4j
@BeforeClass
public static void setup() {
System.setProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace");
}