Skip to content

Instantly share code, notes, and snippets.

View dataf3l's full-sized avatar

felipe dataf3l

View GitHub Profile
@dataf3l
dataf3l / 2
Created March 31, 2017 20:42
# Create new ACMEIdentifier for the domain
if ((Test-Path ($WorkDir+"\\1-Identifiers\\"+$Domain)) -eq $FALSE) {
New-Item -ItemType directory -Path ($WorkDir+"\\1-Identifiers\\"+$Domain)
}
New-ACMEIdentifier -Dns $Domain -Alias $Alias > ($WorkDir+"\\1-Identifiers\\"+$Domain+"\\"+$TimeStamp+".txt")
Start-Sleep 5
# Request new challenge for the domain
if ((Test-Path ($WorkDir+"\\2-Challenges\\"+$Domain)) -eq $FALSE) {
New-Item -ItemType directory -Path ($WorkDir+"\\2-Challenges\\"+$Domain)
((Get-ACMEIdentifier $alias).Challenges | Where-Object { $_.Type -eq 'http-01' }).ChallengePart
Felipes-MacBook-Pro:backend2 a$ ab -c 10 -n 1000 http://localhost:3000/
This is ApacheBench, Version 2.3 <$Revision: 1706008 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
import java.net.InetAddress;
import java.net.UnknownHostException;
class Inet {
public static void main(String args[]){
String hostname = "Unknown";
try
{
InetAddress addr;
addr = InetAddress.getLocalHost();
@dataf3l
dataf3l / README.md
Last active August 29, 2015 14:23 — forked from jonathantneal/README.md

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward edit to Sublime Text:

alias edit="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
@dataf3l
dataf3l / gist:8170915
Created December 29, 2013 14:27
lo que se viene (pequeño subset)
518 a:lex$ ack 2014 *.txt
Constitucion-Politica-Colombia.txt
582:r�gimen hasta el a�o 2014. Los requisitos y beneficios pensionales para las
2735:PAR. 1�--A partir de 2014, la base para la asignaci�n de las curules
6355:2014, las asignaciones directas de que trata el inciso 2� del presente art�culo,
6370:Durante el per�odo 2012-2014, una quinta parte de los recursos anuales del
ConstitucionPoliticaColombia_20100810.txt
521:del presente acto legislativo, a los cuales se les mantendr� dicho r�gimen hasta el a�o 2014.
2503: PAR. 1�--A partir de 2014, la base para la asignaci�n de las curules adicionales se ajustar� en la