Skip to content

Instantly share code, notes, and snippets.

View herpiko's full-sized avatar
:octocat:
Typing...

Herpiko Dwi Aguno herpiko

:octocat:
Typing...
View GitHub Profile
@herpiko
herpiko / a2dissite
Last active August 29, 2015 14:24 — forked from nunenuh/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'

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:

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
@herpiko
herpiko / gist:13b7ed4a7cbb5e9f8a479755ae086eb3
Created October 3, 2016 08:37
BlankOn remastering template
The project tree,
```
herpiko@upik:~/livecdtmp$ tree -L 2
.
├── blobs
│   ├── README.md
│   ├── bootx32.efi
│   ├── bootx64.efi
│   ├── efi-amd64 -> bootx64.efi
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF+n8+QBEACy5Ji5LTM3m8QsY35IzOXjAevQq09SfGO8OADsXS/qtP74wGMp
y69abidi2R0SlXfD3vSSLjQUcp3C+WXW4QbGGBojvxZ7HDB3sU8LoPy03h46rLvs
1cgc+6yy3J7qS+QnHlblG+O9jgD0Gj5ncj5FL0vkDYt1iezlhxmgGBn4bqtrK8II
NLKHBbcwwwpndaMbo4470fwJBamt7hfdCBgrkVC++NZ8c4q4PX4A1q+iRilUQTgl
dNQjDbkvkrvz7JM2BchgFxq6KBb4ITEVNqtYcDQtorJBja5AfYvZi9U8fDo5TZzu
kD/GPyX5fzf4LnIG3t60dzPyi3o+Ihsq2bw91KPF6R2eHoucCG5vLg2wu/nQ9Iyd
ffJ0P35nLmt0S6FJGWM0xaFaCC0u2NKv5e8vCbwL055En/Te1A1WOYNrQ1ysRtqc
ef0xc+sT5I14FmgVBPMWQ0J3AOgKIi9wwYkHFtmeEs3zTt44fcZhcNB98bK/8Po6
@herpiko
herpiko / index.html
Created December 28, 2016 02:30
simple file upload to base64 string
<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>
#include "server_http.hpp"
#include "client_http.hpp"
using namespace std;
typedef SimpleWeb::Server<SimpleWeb::HTTP> HttpServer;
int main() {
HttpServer server;
-----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 April 25, 2017 16:49
Package diff : cdimage package list vs Debian snapshot repository
#!/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
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