Skip to content

Instantly share code, notes, and snippets.

View ienliven's full-sized avatar

Andre Wanderley de Souza ienliven

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ienliven on github.
  • I am ienliven (https://keybase.io/ienliven) on keybase.
  • I have a public key ASCMQD18C2qGMv70-yT1nARvsBqb1CYpPn3_wO49LRRAYAo

To claim this, I am signing this object:

@ienliven
ienliven / RUNBOOK.md
Created December 30, 2016 15:32 — forked from voxxit/RUNBOOK.md
Example of a solid run book/operations manual

Run Book / Operations Manual

  1. Table of Contents
  2. System Overview
    • Service Overview
    • Contributing Applications, Daemons, and Windows Services
    • Hours of Operation
    • Execution Design
    • Infrastructure and Network Design
    • Resilience, Fault Tolerance and High-Availability
@ienliven
ienliven / POSTMORTEM.md
Created December 30, 2016 15:31 — forked from voxxit/POSTMORTEM.md
Example/outline of a postmortem to be conducted after a site outage/incident

POSTMORTEM: “Event Title Here”

Issue Summary

This should be a short (4-5 sentences) blurb which succinctly describes the event. At the very least, it should include:

  • the duration (with start & end times in the U.S. Pacific time zone):

…which lasted for roughly 10 minutes between 9:02PM and 9:12PM Pacific…

  • the impact to our users:
@ienliven
ienliven / InsurancePOC.sol
Created December 12, 2016 16:01 — forked from anonymous/InsurancePOC.sol
Created using browser-solidity: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://ethereum.github.io/browser-solidity/#version=soljson-v0.4.6+commit.2dabbdf0.js&optimize=false&gist=
pragma solidity ^0.4.0;
import "github.com/oraclize/ethereum-api/oraclizeAPI.sol";
contract InsurancePOC is usingOraclize {
address public owner;
address public beneficiary;
string public identifier;
diff --git a/src/modules/custom/high_school_blocks/high_school_blocks.module b/src/modules/custom/high_school_blocks/high_school_blocks.module
index 82399b2..f47a4a0 100644
--- a/src/modules/custom/high_school_blocks/high_school_blocks.module
+++ b/src/modules/custom/high_school_blocks/high_school_blocks.module
@@ -23,7 +23,14 @@ function high_school_blocks_menu() {
* Page callback.
*/
function high_school() {
- return '';
+ /**
diff --git a/src/cms/moodle/mod/ibis/lib.php b/src/cms/moodle/mod/ibis/lib.php
index f99fb0e..37e14c1 100644
--- a/src/cms/moodle/mod/ibis/lib.php
+++ b/src/cms/moodle/mod/ibis/lib.php
@@ -1210,18 +1210,75 @@
/**
* EXTENDED DUE DATE FUNCTIONS
*/
+ function get_assignment_id_from_cmid($cmid) {
+ if (!$cm = get_record('course_modules', 'id', $cmid))
diff --git a/public/sapling/variants/canada/includes/div_login_form.php b/public/sapling/variants/canada/includes/div_login_form.php
index 0306157..6a0f811 100644
--- a/public/sapling/variants/canada/includes/div_login_form.php
+++ b/public/sapling/variants/canada/includes/div_login_form.php
@@ -15,20 +15,20 @@
var dataSend = {};
dataSend.fb_userid = FB_userid;
dataSend.email = false;
-
+
@ienliven
ienliven / gist:4042723
Created November 8, 2012 23:56
Daily Report - 08/11
08/11 - 08:00 / 20:00
#2673: Make It Possible to Remove Node 5 from LB.
Added root domain DNS resolution's to LB public CNAME.
Rolled-back, cause issues of non-www links.
Added .htaccess to application's /build's folder.
Added new file to be deployed on build.xml
@ienliven
ienliven / gist:4038573
Created November 8, 2012 12:42
Daily Report - 07/11
07/11 - 08:00 / 14:00
#2629: Clean up instances and volumes on amazon's console.
#2107: Guide Cristiano thru admin/taxonomy application logic.
#2206: VM is ready and small.
Wrapped up VMs.
Final sizes are: 1.3G GentooSlim
1.5G GentooXfce4
@ienliven
ienliven / gist:4027115
Created November 6, 2012 20:00
Daily Report - 06/11
06/11 - 09:00 / 17:00
#2610: Deploy additional load-balancer for failover.
Created and configured new Load Balancer for THERC environment.
Added round-robin resolution, with new load balancer, to DNS for THERC environment.
Ready for RC testing on Brad's call.
Deployed and tested on .me domain.
#2666: Setup EBS aligned RAID on NAS servers.
Created script for creating RAID NAS volumes.