Skip to content

Instantly share code, notes, and snippets.

Avatar

Gabriel Hautclocq gabsoftware

View GitHub Profile
@gabsoftware
gabsoftware / TemplateLoader.ts
Last active February 18, 2021 18:27 — forked from amirgalor/templateLoader.js
Kendo UI - "Template Loader" - improved and in TypeScript !
View TemplateLoader.ts
/**
This defines a class that can load external templates.
It handles multiple "Templates" (Or "Views") loading,
by operating on an array of JSON objects of type {url: "url to file", id: "id of the script's tag to attach to DOM"}
This way you can load multiple templates, each with it's own tag so they can be referenced seperatly,
Templates can be written in a much "cleaner" manner - as they are not wrapped by a "script" tag, IDE's will recognize the html.
A promise will be resolved after template loading has completed (loading & attaching to DOM)
@gabsoftware
gabsoftware / index.html
Last active August 9, 2017 08:55
Finding out the fastest way to loop through an array (http://jsbench.github.io/#b6aa5dcbe07a27db2a63176f3d9d1bfe) #jsbench #jsperf
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Finding out the fastest way to loop through an array</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
@gabsoftware
gabsoftware / maintenance.html
Last active December 2, 2016 11:04 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
View maintenance.html
<!doctype html>
<html>
<head>
<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; }
View gist:55a252deb265b48807ec3e4fd7a6d2dd
BalancerMember unix://home/diaspora/diaspora/tmp/diaspora.sock|http://
with result :
[Mon Aug 29 15:55:06.673806 2016] [proxy:error] [pid 1491:tid 140114049025792] (2)No such file or directory: AH02454: HTTP: attempt to connect to Unix domain socket /diaspora/diaspora/tmp/diaspora.sock () failed
[Mon Aug 29 15:55:06.673843 2016] [proxy:error] [pid 1491:tid 140114049025792] AH00959: ap_proxy_connect_backend disabling worker for () for 60s
[Mon Aug 29 15:55:06.673853 2016] [proxy_http:error] [pid 1491:tid 140114049025792] [client 176.9.50.103:36212] AH01114: HTTP: failed to make connection to backend: httpd-UDS
View Diaspora unix sockets and Apache
What I'm having in Apache config (working)
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://diaspora%{REQUEST_URI} [P,QSA,L]
<Proxy balancer://diaspora>
BalancerMember http://127.0.0.1:3000
</Proxy>
diaspora.yml :
@gabsoftware
gabsoftware / GoogleHackMasterList.txt
Created April 6, 2016 21:55 — forked from cmartinbaughman/GoogleHackMasterList.txt
The definitive super list for "Google Hacking".
View GoogleHackMasterList.txt
admin account info" filetype:log
!Host=*.* intext:enc_UserPassword=* ext:pcf
"# -FrontPage-" ext:pwd inurl:(service | authors | administrators | users) "# -FrontPage-" inurl:service.pwd
"AutoCreate=TRUE password=*"
"http://*:*@www&#8221; domainname
"index of/" "ws_ftp.ini" "parent directory"
"liveice configuration file" ext:cfg -site:sourceforge.net
"parent directory" +proftpdpasswd
Duclassified" -site:duware.com "DUware All Rights reserved"
duclassmate" -site:duware.com