Skip to content

Instantly share code, notes, and snippets.

View Teino1978-Corp's full-sized avatar

Teino Boswell Teino1978-Corp

  • Ocho Rios, Jamaica
View GitHub Profile
<?php
// /app/Plugin/Usermgmt/Controller/ServicesController.php
/*
This file is part of UserMgmt.
Author: Chetan Varshney (http://ektasoftwares.com)
UserMgmt is free software: you can redistribute it and/or modify
@Teino1978-Corp
Teino1978-Corp / owncloud_.htaccess
Created November 4, 2015 07:40 — forked from kevin4044/owncloud_.htaccess
owncloud extended version, developing
ErrorDocument 404 /owncloud/core/templates/404.php
<IfModule mod_php5.c>
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value memory_limit 128M
SetEnv htaccessWorking true
</IfModule>
Options -Indexes
@Teino1978-Corp
Teino1978-Corp / Contract Killer 3.md
Created November 5, 2015 18:42
The latest version of my ‘killer contract’ for web designers and developers

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23rd December 2008
  • Revised date: October 8th 2015
  • Original post

// Bits and pieces *cough* stolen *cough* from
// Micheil Smith's node-websocket-server
// <http://github.com/miksago/node-websocket-server>
// Therefore, I don't really think that I should claim any copyright for
// this piece of "minified" code.
var http = require('http');
var crypto = require('crypto');
@Teino1978-Corp
Teino1978-Corp / README.md
Created November 5, 2015 20:09 — forked from atsuya046/README.md
test_webpack

Install webpack

npm install webpack -g

Build

webpack ./main.js bundle.js

CSS

Use dash-cased class names

  • It's consistent with CSS property naming convention
.some-class-name {}
@Teino1978-Corp
Teino1978-Corp / index.js
Created November 5, 2015 23:17 — forked from simonprickett/index.js
Cordova 5 / iOS 9 Security Blog - index.js
var app = {
initialize: function() {
document.addEventListener('deviceready', this.updateEuroValue, false);
},
updateEuroValue: function() {
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
var euroPrice,
- (void)viewDidLoad
{
[super viewDidLoad];
NSString *htmlFile = [[NSBundle mainBundle] pathForResource:@"LocalPage" ofType:@"html" inDirectory:nil];
NSString* htmlString = [NSString stringWithContentsOfFile:htmlFile encoding:NSUTF8StringEncoding error:nil];
//Append javascript
NSString *script = @"<script>alert(\"This is an alert!!\");</script>";
htmlString = [htmlString stringByAppendingString:script];
[self.webView loadHTMLString:htmlString baseURL:nil];
@Teino1978-Corp
Teino1978-Corp / bench_node.sh
Created November 5, 2015 23:43 — forked from yorickpeterse/bench_node.sh
Accurate proof that Ruby is closer to the bear metal than Node.js
#!/usr/bin/env bash
siege -c 10 -b -t 30s http://localhost:9393
@Teino1978-Corp
Teino1978-Corp / currency-api.go
Created November 6, 2015 01:05 — forked from nicolai86/currency-api.go
a tiny currency exchange rates api written in go
package main
import (
"encoding/json"
"encoding/xml"
"fmt"
"io"
"log"
"net/http"
"os"