Skip to content

Instantly share code, notes, and snippets.

View martinshaw's full-sized avatar
🚀

Martin Shaw martinshaw

🚀
View GitHub Profile
@martinshaw
martinshaw / more.md
Last active September 19, 2017 17:24
More Paragraph for Draft ToR

Security

The World Wide Web is by default open and public facing without much regard for organisational privacy and security. Similarly, many of the platforms currently available cannot insure privacy and security, due to the way they function as centralised, singular and public facing websites which allow for all who wish to create an account. Occasionally these websites allow organisations to create groups and for users to associate with that group, but this does not ensure that internal information is not shared with other users, and doesn't ensure that the platform's company or hackers might not steal internal information (this [would be solved] by offering the platform as a self-hosted, decentralised and distributable server solution designed for installation by a person with no server knowledge)

@martinshaw
martinshaw / .htaccess
Created May 20, 2017 16:48
Suggested Laravel 5 htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteBase /laravel51/public/
# change above to your site i.e., RewriteBase /whatever/public/
# Redirect Trailing Slashes...
class Routes extends Polarlicht3/HTTPRoutesManager
public f Main<>
@RegisterRoute <String "/", new Polarlicht3/Examples/Controllers/Welcome>;
@RegisterRoute <String "/signin", new Polarlicht3/Controllers/Auth/Signin>;
@RegisterRoute <String "/register", new Polarlicht3/Controllers/Auth/Register>;
@martinshaw
martinshaw / cookieclicker.js
Last active December 24, 2015 22:29
Cookie Clicker Hack. Duh...
w= window; d= document; d.g= {DT: this}; d.e= {DT: this};
d.g.t= function(n){ return this; }; d.g.m= function(i){ return 1/i; };
d.g.r= $; d.g.y= "#bigCookie"; d.g.a= 0; d.g.z= "click";
d.g.h= "console|log"; d.g.b= "|";
d.e.s= setInterval( function(){
w[d.g.h.split(d.g.b)[0]][d.g.h.split(d.g.b)[1]](d.g.a + " Cookies generated by script");
}, d.g.m(.1)*500);
d.e.g= setInterval( function(){
d.g.r(d.g.y)[d.g.z]();
d.g.a= d.g.a+1;
@martinshaw
martinshaw / location.coffee
Created July 15, 2013 14:42
Location Services embedded into posts
$ ->
composer= composer or {}
composer.locationservices=
showPosition: (position) ->
document.geoclocation=[
position.coords.latitude
position.coords.longitude
]
getlocation: ->
if navigator.geolocation