Skip to content

Instantly share code, notes, and snippets.

View CajuCLC's full-sized avatar
🌎
Anacardium occidentale

Eric Cavalcanti CajuCLC

🌎
Anacardium occidentale
View GitHub Profile
** ============================================================================
**
** Sample response file for IBM DB2
** --------------------------------
** To select features and settings to install, uncomment the corresponding
** keywords and specify values for those keywords. You do not need to select
** features if you select the TYPICAL or COMPACT installation options.
**
** Comments are made by placing either an asterisk (*) or a hash symbol (#) at
** the start of a line, or by placing ** or ## after the start of a line to
** ============================================================================
**
** Sample response file for IBM DB2
** --------------------------------
** To select features and settings to install, uncomment the corresponding
** keywords and specify values for those keywords. You do not need to select
** features if you select the TYPICAL or COMPACT installation options.
**
** Comments are made by placing either an asterisk (*) or a hash symbol (#) at
** the start of a line, or by placing ** or ## after the start of a line to
ICON = [
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ],
@CajuCLC
CajuCLC / unifiLedControllScript.sh
Last active December 17, 2021 08:49 — forked from TimoDJatomika/unifiLedControllScript.sh
Just a simple script to controll the led color of your ubiquiti unifi AP (PRO)
#!/bin/sh
# author: Timo Stankowitz <timo.stankowitz@gmail.com>
# create date: 2016-07-10
# last change: 2016-07-10
# with this script you can change the led color of your ubiquiti unifi AP
# usage: ./script.sh colorValue
# e.g.: ./script.sh 2
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\SalesRuleSampleData\Setup;
use Magento\Framework\Setup;
class Installer implements Setup\SampleData\InstallerInterface
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\CatalogRuleSampleData\Setup;
use Magento\Framework\Setup;
class Installer implements Setup\SampleData\InstallerInterface
@CajuCLC
CajuCLC / mautic-deploy.yml
Created July 1, 2021 00:23
K8s Manifest to deploy Mautic
---
apiVersion: v1
kind: Namespace
metadata:
name: mautic
---
apiVersion: v1
kind: Secret
metadata:
#! /usr/bin/env bash
UPTIME_DAYS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 / 86400)
UPTIME_HOURS=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 / 3600)
UPTIME_MINUTES=$(expr `cat /proc/uptime | cut -d '.' -f1` % 31556926 % 86400 % 3600 / 60)
# Basic info
HOSTNAME=`uname -n`
ROOT=`df -Ph | grep -w nbd0p1 | awk '{print $4}' | tr -d '\n'`
@CajuCLC
CajuCLC / gist:90c793699ed3deaf9dbe98289b70214e
Created September 9, 2019 14:38 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
GITHUB_RELEASE=v1.13.9.7.14-beta.29
git fetch upstream
git checkout master --force
git merge origin/master
git fetch --tags
git stash
git checkout --merge $GITHUB_RELEASE
git status