This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Scalable Analog + Digital Clock (using SVG, CSS & JS)</title> | |
<style> | |
* { | |
padding: 0; | |
margin: 0; | |
box-sizing: border-box; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download, compile and install openssl | |
mkdir ~/src/ | |
cd ~/src/ | |
wget https://www.openssl.org/source/openssl-1.0.2a.tar.gz | |
tar -zxvf openssl-*.tar.gz | |
cd openssl-* | |
./config -fpic shared | |
make | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: It is IRRESPONSIBLE to use this in any production type environment or with even remotely valuable data | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.io.IOException; | |
import java.security.cert.X509Certificate; | |
import java.security.SecureRandom; | |
import javax.net.ssl.HttpsURLConnection; | |
import javax.net.ssl.SSLContext; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sun.net.httpserver.*; | |
import javax.net.ssl.*; | |
import java.io.*; | |
import java.net.*; | |
import java.nio.file.*; | |
import java.security.*; | |
import java.security.cert.*; | |
import java.text.*; | |
import java.util.*; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.lang.StringBuilder; | |
import java.nio.charset.Charset; | |
import java.nio.charset.StandardCharsets; | |
import java.nio.file.Files; | |
import java.nio.file.Paths; | |
import java.util.HashMap; | |
public class StringTemplate |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* gcc -o runpipe runpipe.c && ./runpipe | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <sys/types.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.File; | |
import java.io.InputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.net.URLConnection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
"%JAVA_HOME%\bin\javac" -cp .;lib\*; JettyProxyServer.java && "%JAVA_HOME%\bin\java" -cp .;lib\*; JettyProxyServer | |
*/ | |
import org.eclipse.jetty.server.Connector; | |
import org.eclipse.jetty.server.handler.ConnectHandler; | |
import org.eclipse.jetty.server.handler.HandlerList; | |
import org.eclipse.jetty.server.Handler; | |
import org.eclipse.jetty.server.Server; | |
import org.eclipse.jetty.server.nio.SelectChannelConnector; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM SETUP | |
REM Download opencv-3.2.0-vc14.exe from https://github.com/opencv/opencv/releases | |
REM Extract it and then copy all executables from ..\opencv-3.2.0-vc14\build\x64\vc14\bin\ into .\bin | |
REM Place BMP positive images into .\positives and JPG negative images into .\negatives and then run this script | |
REM REFERENCES: | |
REM https://www.academia.edu/9149928/A_complete_guide_to_train_a_cascade_classifier_filter | |
REM http://johnallen.github.io/opencv-object-detection-tutorial/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download latest release of a specific file from a Github repo | |
REPO_OWNER='PowerShell' | |
REPO_NAME='Win32-OpenSSH' | |
ARTIFACT_NAME=OpenSSH-Win64.zip | |
ARTIFACT_URL=$(curl -sL https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/releases/latest | jq --raw-output '.assets[] | .browser_download_url' | grep ${ARTIFACT_NAME}) | |
curl -sLO $ARTIFACT_URL |