Skip to content

Instantly share code, notes, and snippets.

Avatar

felipe dataf3l

View GitHub Profile
View rust dynamic dispatch
trait Foo {
fn method(&self) -> String;
}
struct S1 {
a: u8,
}
struct S2 {
a: String,
}
impl Foo for S1 {
View hash
0b8aff0438617c055eb55f0ba5d226fa
View Let's build: Open source Android exam checker
Let's build: Open source Android exam checker
(for the poor schools in India and Latin america)
What is it:
I want to build a tool similar to quickkey, but free and open source,
so that poor schools in india and latin america can easily grade paper
exams, bringing this technology to the poor schools will enable them to
do more and better exams, and will make the teachers have more time to
either be with their families or dedicate more resources to class content
View Let's build
What is it:
I want to build a tool similar to quickkey, but free and open source, so that poor schools in india and latin america can easily grade paper exams, bringing this technology to the poor schools will enable them to do more and better exams, and will make the teachers have more time to either be with their families or dedicate more resources to class content and creativity.
Why i'm doing it:
I want to build it so schools have access to better technology, in order to help bridge the gap between the poor and the rich in Colombia (my home country) and other poor countries around latin america and Asia.
View gist:0c3059e17f8e8aa2cf810e6fbebe41ab
https://github.com/Lone-Coder/letsencrypt-win-simple/wiki/How-to-Run
View acme
https://github.com/Lone-Coder/letsencrypt-win-simple
View 2
# 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)
View text
((Get-ACMEIdentifier $alias).Challenges | Where-Object { $_.Type -eq 'http-01' }).ChallengePart
View perl6 bailador performance
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
View java get hostname
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();
You can’t perform that action at this time.