Skip to content

Instantly share code, notes, and snippets.

@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');
mixin template
script(id!=attributes.id, type="text/html")
if block
block
@renancouto
renancouto / CorrigirEstados.js
Created September 25, 2012 21:46
Corrigir nomes dos estados brasileiros
var CorrigirEstados = function(estado) {
switch (estado.toLowerCase()) {
case 'amapa' :
estado = 'Amapá';
break;
case 'ceara' :
estado = 'Ceará';
break;
@renancouto
renancouto / index.html
Created February 21, 2013 16:56
A CodePen by renancouto. 50 Shades of Gray - Just a quick experiment with SCSS's while loop.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<h1>50 Shades of Gray</h1>
@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 / 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
// atom sync settings
<!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 / 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"}
@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