Skip to content

Instantly share code, notes, and snippets.

View reliq's full-sized avatar
:shipit:
Focusing (quality > quantity)

Reliq reliq

:shipit:
Focusing (quality > quantity)
View GitHub Profile
@reliq
reliq / JNVLE - Moodle Integration.md
Created July 23, 2013 20:26
Document containing important tables for moodle integration with eHRHub learning.

JN Moodle Integration

Courses

Interaction with the following tables is required to get courses information.

TableName: mdl_course

Table Structure:
  • id bigint(10) NOT NULL AUTO_INCREMENT,
@reliq
reliq / cidori.css
Created November 8, 2013 02:15
Cidori.css
/**
* Cidori CSS v2.2
* @codename: RallySmooth
*
* @author: Patrick Reid
* @link: http://www.reliqartz.com
*/
/* :Utilities
function random_text( $type = 'alnum', $length = 8 )
{
switch ( $type ) {
case 'alnum':
$pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
break;
case 'alpha':
$pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
break;
case 'hexdec':
@reliq
reliq / OnDaemonRun.hook.php
Last active March 23, 2016 18:24
Sentora OnDaemonRun hook with automatic forwarding from 'apache port' instead of port 80
<?php
echo fs_filehandler::NewLine() . "START Apache Config Hook." . fs_filehandler::NewLine();
if (ui_module::CheckModuleEnabled('Apache Config')) {
echo "Apache Admin module ENABLED..." . fs_filehandler::NewLine();
TriggerApacheQuotaUsage();
if (ctrl_options::GetSystemOption('apache_changed') == strtolower("true")) {
echo "Apache Config has changed..." . fs_filehandler::NewLine();
if (ctrl_options::GetSystemOption('apache_backup') == strtolower("true")) {
echo "Backing up Apache Config to: " . ctrl_options::GetSystemOption('apache_budir') . fs_filehandler::NewLine();
BackupVhostConfigFile();
blacklist amd76x_edac
blacklist vga16fb
blacklist nouveau
blacklist rivafb
blacklist nvidiafb
blacklist rivatv
@reliq
reliq / brightness.md
Last active January 17, 2019 23:40
Optimus (Dual Graphics) - Backlight Keys Workaround (Ubuntu/Linux Mint)

Adapted from here.

Get Fn F5/F6 working:

sudo emacs etc/default/grub

Change the following: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="

sudo update-grub

reboot the system... Now the splash screen should show up.

@reliq
reliq / 20-intel.conf
Last active September 11, 2016 03:51 — forked from radupotop/20-intel.conf
/etc/X11/xorg.conf.d/20-intel.conf
# /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "card0"
Driver "intel"
Option "Backlight" "intel_backlight"
BusID "PCI:0:2:0"
Option "AccelMethod" "uxa"
Option "TearFree" "true"
EndSection
@reliq
reliq / 20-nvidia.conf
Last active September 11, 2016 04:00 — forked from yantonov/20-nvidia.conf
Fix brightness on ubuntu 14.04 lts for nvidia cards (create this file at /usr/share/X11/xorg.conf.d/20-nvidia.conf)
Section "Device"
Identifier "Default Device"
Driver "nvidia"
Option "NoLogo" "True"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
@reliq
reliq / batterymonitor@pdcurtis stylesheet.css
Created September 12, 2016 00:24
Better look for batterymonitor@pdcurtis (BAMS) (Linux Mint)
/*
These settings govern the width of the Applet and the space taken by the font.
Changes may be required with some themes to avoid the display width being exceeded
which leads to jitter with high network speeds and resolutions
or to allow a reduced size width to save panel space.
*/
.bam-normal {
background-color: rgba(0,255,0,0);
border-radius: 0;
@reliq
reliq / Preferences.sublime-settings
Created September 22, 2016 04:45
sublime settings
{
"color_scheme": "Packages/Material Theme/schemes/Material-Theme.tmTheme",
"ignored_packages":
[
"Vintage"
],
"theme": "Material-Theme-Darker.sublime-theme",
"translate_tabs_to_spaces": true,
// 5 great visual tweaks