Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Typing...

Herpiko Dwi Aguno herpiko

:octocat:
Typing...
View GitHub Profile
View a2dissite
#!/usr/bin/env python
import sys
import os
arg = sys.argv
arlen = len(arg)
available = '/etc/httpd/sites-available'
enabled = '/etc/httpd/sites-enabled'
View keybase.md

Keybase proof

I hereby claim:

  • I am herpiko on github.
  • I am herpiko (https://keybase.io/herpiko) on keybase.
  • I have a public key whose fingerprint is E1C8 B947 0B2D 6375 7F03 021C 4038 8C5F 5D41 E6F1

To claim this, I am signing this object:

View Dockerfile.nodejs
FROM tatsushid/tinycore-node
# set environment
ENV APP=/opt/maoo
# Create app directory
RUN mkdir -p $APP
WORKDIR $APP
# Install app dependencies
COPY package.json $APP
View gist:13b7ed4a7cbb5e9f8a479755ae086eb3
The project tree,
```
herpiko@upik:~/livecdtmp$ tree -L 2
.
├── blobs
│   ├── README.md
│   ├── bootx32.efi
│   ├── bootx64.efi
│   ├── efi-amd64 -> bootx64.efi
@herpiko
herpiko / index.html
Created Dec 28, 2016
simple file upload to base64 string
View index.html
<div>
<label for="filePicker">Choose or drag a file:</label><br>
<input type="file" id="filePicker">
</div>
<br>
<div>
<h1>Base64</h1>
<textarea id="base64str" cols="50" rows="15"></textarea>
</div>
<script>
View simple_http_cpp
#include "server_http.hpp"
#include "client_http.hpp"
using namespace std;
typedef SimpleWeb::Server<SimpleWeb::HTTP> HttpServer;
int main() {
HttpServer server;
@herpiko
herpiko / gist:6e677eb2a72f05d1a01b710bca3fe040
Created Apr 21, 2017
GPG Public Key herpiko.aguno@tnisiber.id
View gist:6e677eb2a72f05d1a01b710bca3fe040
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: GPGTools - https://gpgtools.org
mQINBFgIhdcBEADBXjE6HLlBedoArPj+5cGiUUok8chUhbJg/KltGfHF5TlPf+Gk
RX7fJn/XIkrBjLt7/o5ueG5j7Seu4/ATesw1Jd86CM8X+aYgz1DWskvsrFcXjnih
gkeRFp8axXyl5an/oN/8mWg0fKFl6ZggdzcU1Xjaw5vo5hA+X2jYPkiQiI1ag1YI
bd788nK92YWr3RZ4XWpoyuWiejQARqr+kh+/+N5C0P2U4bswuiXnlTOcSPn2uNE3
3axkdzISqGhLr1Cnx6TmoNoWOjKMRg4gps8/0qnvdTgPwwqTUJrfqYX+IV8WXMkV
6w+fsTKeosylcAnUMpXBpQL/pU4Sqn5+35y3tXEmSkRy/4EFRx67o1BWt9BWwYb2
+N6DxgvDpmt7T8HBrvEVqPtzRWVUyeJpyyvYGUtpTKygCd9375wbfs0Do9FkEnLQ
@herpiko
herpiko / pkgdiff.sh
Created Apr 25, 2017
Package diff : cdimage package list vs Debian snapshot repository
View pkgdiff.sh
#!/bin/bash
TIMESTAMP=$1
SCORE=0
mkdir -p tmp
rm -rf tmp/*
echo Fetching snapshot $1 / main ...
wget -O tmp/main-packages.gz http://snapshot.debian.org/archive/debian/$1/dists/sid/main/binary-amd64/Packages.gz
gunzip -c tmp/main-packages.gz > tmp/main-packages.txt
rm -rf tmp/main-packages.gz
View gist:082072d4caea83f811534523bbe49e84
c:\Users\herpiko\src\erpiko\deps\libressl-nmake>cmake -G "NMake Makefiles" ..\libressl-portable-tip
-- The C compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Using [MSVC] compiler
-- Looking for asprintf
-- Looking for asprintf - not found
-- Looking for inet_pton
View gist:377257aa4a14efba95e0296ee7566334
c:\Users\herpiko\src\erpiko\build>cmake -G "Visual Studio 14 2015 Win64" ..
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info