sudo apt-get update && sudo apt-get install imagemagick gs
mkdir -p pdf_conversion/{merged,split}
cd pdf_conversion
/* | |
go build for linux: | |
env GOOS=linux go build -o /tmp/server server.go | |
run with docker: | |
docker run -it --rm --name test -v /tmp/server:/server -p 3000:80 -p 3001:6060 alpine /server | |
run pprof debugger: | |
go get github.com/google/pprof | |
pprof --seconds 30 -http=:4444 /tmp/server http://localhost:3001/debug/pprof/profile |
server { | |
listen 80; | |
listen 443 default_server ssl; | |
ssl on; | |
ssl_certificate /etc/ssl/certs/myssl.crt; | |
ssl_certificate_key /etc/ssl/private/myssl.key; | |
server_name *.example.com; | |
root /var/www/vhosts/website; |
package main | |
import ( | |
"log" | |
"net/http" | |
"strings" | |
) | |
/* | |
Returns a map array of all available headers. |
import java.io.BufferedWriter; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.io.FileInputStream; | |
import java.io.File; | |
import java.io.IOException; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.Base64; |
I hereby claim:
To claim this, I am signing this object:
// Fetches random user profiles and outputs their emails. | |
// | |
// @author - Josue Rodriguez <code@josuerodriguez.com> | |
// | |
// @date - Aug 23, 2019 | |
package main | |
import ( | |
"encoding/json" | |
"flag" |
#!/bin/bash | |
function slackme { | |
local MESSAGE=${1} | |
if [ "${MESSAGE}" == "" ]; then | |
echo "Missing first param: slackme {message}" | |
return | |
fi | |
if [ "${SLACK_HOOK_URL}" == "" ]; then |
{ | |
"host": "orchestrator:6777", | |
"proto": "kairosnet.proto", | |
"call": "kairosnet.Api.Detect", | |
"n": 1000, | |
"c": 50, | |
"D": "data.json" | |
} |
#!/bin/bash | |
# Place this script in dir: /usr/bin | |
# Change permissions: sudo chmod +x /usr/bin/MAMP-DOCK-INVISIBLE | |
# | |
# Ensure the MAMP 'Info.plist' file has the following entry: | |
# <key>LSUIElement</key> | |
# <string dock-visible="1">NO</string> | |
# | |
# Usage: |