Skip to content

Instantly share code, notes, and snippets.

@renancouto
renancouto / cloudSettings
Last active December 7, 2021 07:57
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-12-07T07:57:51.611Z","extensionVersion":"v3.4.3"}
<!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">
// atom sync settings
@renancouto
renancouto / exploit-urls.md
Last active February 1, 2023 09:36
A collection of weird URLs that I think are used to exploit security vulnerabilities on web apps
  • /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
mixin template
script(id!=attributes.id, type="text/html")
if block
block
@renancouto
renancouto / jsonfiles2object.js
Created August 15, 2014 19:11
Read all json files on the current dir and return an object with their content, using their filenames (in camelCase) as keys.
/*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 November 4, 2013 19:44
Loading social scripts (Facebook, Twitter and Google Plus) AMD style.
/*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 December 25, 2015 15:19
INSTALL.ME - Cross-platform sugar! A collection of installation instructions to show how (bad) different systems are.
https://github.com/voodootikigod/node-serialport
@renancouto
renancouto / Preferences.sublime-settings
Last active December 19, 2015 22:39
Sublime Text User Settings
{
"bold_folder_labels": true,
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".sass-cache"
],
@renancouto
renancouto / select.meses.html
Created April 26, 2013 16:32
Select simples com nomes dos meses do ano
<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>