Skip to content

Instantly share code, notes, and snippets.

@renancouto
renancouto / cloudSettings
Last active Mar 13, 2020
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2020-03-13T11:51:07.951Z","extensionVersion":"v3.4.3"}
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@renancouto
renancouto / exploit-urls.md
Last active Apr 26, 2020
A collection of weird URLs that I think are used to exploit security vulnerabilities on web apps
View exploit-urls.md
  • /manager/html (Apache Tomcat)
  • http://123.249.24.233/POST_ip_port.php
  • /tmUnblock.cgi
  • /HNAP1/
  • /phpMyAdmin/scripts/setup.php (PHPMyAdmin)
  • /pma/scripts/setup.php
  • /myadmin/scripts/setup.php
  • /MyAdmin/scripts/setup.php
  • /vyvy/vyv/vy.php
  • /cgi-sys/php5
View template.jade
mixin template
script(id!=attributes.id, type="text/html")
if block
block
@renancouto
renancouto / jsonfiles2object.js
Created Aug 15, 2014
Read all json files on the current dir and return an object with their content, using their filenames (in camelCase) as keys.
View jsonfiles2object.js
/*jslint node:true, nomen:true, stupid:true*/
'use strict';
/**
* dependencies
*/
var fs = require('fs');
var path = require('path');
var s = require('string');
@renancouto
renancouto / social.js
Created Nov 4, 2013
Loading social scripts (Facebook, Twitter and Google Plus) AMD style.
View social.js
/*jslint browser:true, nomen:true*/
/*global define*/
define(function () {
'use strict';
var script = document.getElementsByTagName('script')[0];
function socialTag(src, id) {
var created = document.createElement('script');
@renancouto
renancouto / INSTALL.ME
Last active Dec 25, 2015
INSTALL.ME - Cross-platform sugar! A collection of installation instructions to show how (bad) different systems are.
View INSTALL.ME
https://github.com/voodootikigod/node-serialport
@renancouto
renancouto / Preferences.sublime-settings
Last active Dec 19, 2015
Sublime Text User Settings
View Preferences.sublime-settings
{
"bold_folder_labels": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".sass-cache"
],
@renancouto
renancouto / select.meses.html
Created Apr 26, 2013
Select simples com nomes dos meses do ano
View select.meses.html
<select>
<option>Escolha o mês</option>
<option value="01">Janeiro</option>
<option value="02">Fevereiro</option>
<option value="03">Março</option>
<option value="04">Abril</option>
<option value="05">Maio</option>
<option value="06">Junho</option>
<option value="07">Julho</option>
<option value="08">Agosto</option>
You can’t perform that action at this time.