Skip to content

Instantly share code, notes, and snippets.

View twmbx's full-sized avatar
🇿🇲

Twaambo Haamucenje twmbx

🇿🇲
View GitHub Profile
@smaboshe
smaboshe / datasheet.md
Created May 2, 2012 07:07
Zamtel Mobile Internet Data Sheet

Zamtel Mobile Internet Data Sheet

Here is a summary of mobile Internet bundles offered by Zamtel. If you are like me and can never remember the USSD codes, feel free to use this as a reference.

To check how much data you have left on a bundle use USSD *323#.

For corrections and updates get in touch at Pencil Case Studios.

@smaboshe
smaboshe / datasheet.md
Created June 6, 2012 05:54
Airtel Zambia Mobile Internet Data Sheet

Airtel Zambia Mobile Internet Data Sheet

Here is a summary of mobile Internet bundles offered by Airtel Zambia. To purchase data bundles, use USSD code *575# and follow the instructions.

For corrections and updates get in touch at Pencil Case Studios.

@smaboshe
smaboshe / datasheet.md
Created June 6, 2012 06:22
MTN Zambia Mobile Internet Data Sheet

MTN Zambia Mobile Internet Data Sheet

Here is a summary of mobile Internet bundles offered by MTN Zambia. For corrections and updates get in touch at Pencil Case Studios.

To access the data purchase menu use USSD code *335#.

Data Bundle
@phred
phred / pedantically_commented_playbook.yml
Last active November 3, 2023 01:55
Very complete Ansible playbook, showing off all the options
---
####
#### THIS IS OLD AND OUTDATED
#### LIKE, ANSIBLE 1.0 OLD.
####
#### PROBABLY HIT UP https://docs.ansible.com MY DUDES
####
#### IF IT BREAKS I'M JUST SOME GUY WITH
#### A DOG, OK, SORRY
####
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active March 31, 2024 18:45 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
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>
@johnpolacek
johnpolacek / gist:3827270
Last active January 20, 2023 15:46
Prevent FOUC
<!-- Prevent FOUC (flash of unstyled content) - http://johnpolacek.com/2012/10/03/help-prevent-fouc/ -->
<style type="text/css">
.no-fouc {display: none;}
</style>
<script type="text/javascript">
document.documentElement.className = 'no-fouc';
// add to document ready: $('.no-fouc').removeClass('no-fouc');
</script>
@clouddueling
clouddueling / routes.php
Created February 27, 2013 22:48
username in url laravel
Event::listen('404', function()
{
$username = URI::segment(1);
$user = User::where_username($username)
->where_type('account')
->first();
if ($user != null) {
if ($user->username != '') {
@brianwebb01
brianwebb01 / foreman-sample.json
Created February 25, 2014 02:21
Sample Foreman template to follow hexagonal architecture found here: http://git.io/9NY65w
{
"structure": {
"copy": [
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Instances/InstanceInterface.php",
"to": "app/lib/Contracts/Instances/InstanceInterface.php"
},
{
"from": "/projects/hex-arch-laravel/app/lib/Contracts/Notification/CreatorInterface.php",
"to": "app/lib/Contracts/Notification/CreatorInterface.php"
@fideloper
fideloper / Gettable.php
Created March 9, 2014 19:33
Trait for making protected/private attributes "gettable", leaving "setting" the attributes a matter of business logic to be implemented.
<?php
trait Gettable {
/**
* Retrieve private attributes.
* Attributes should be protected
* so they cannot be *set* arbitrarily.
* This allows us to *get* them as if they
* were public.