Skip to content

Instantly share code, notes, and snippets.

View hdhoang's full-sized avatar
💭
safe

hdhoang hdhoang

💭
safe
View GitHub Profile
@hdhoang
hdhoang / scan-debug.txt
Last active July 2, 2021 08:11
vuls server
[Jul 2 07:55:54]  INFO [localhost] vuls-v0.15.11-build-20210625_051138_8e6351a
[Jul 2 07:55:54]  INFO [localhost] Start scanning
[Jul 2 07:55:54]  INFO [localhost] config: /vuls/config.toml
[Jul 2 07:55:54] DEBUG [localhost] map[string]config.ServerInfo{
"via-ssh": config.ServerInfo{
ServerName: "via-ssh",
User: "root",
Host: "127.0.0.1",
JumpServer: []string{},
Port: "22",
@hdhoang
hdhoang / Vagrantfile
Last active March 30, 2021 09:03
ngx mis-ssl
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Demo for https://medium.com/@hdhoang/6ce246c6cfae
# Please keep supporting files here: simple.conf, simple-https.conf, worse-is-better.conf, and bash_history.txt
# eg by cloning this gist at https://gist.github.com/c9e9f062c82e8556aa66091468140fc4.git
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.provision "shell", inline: <<-SHELL
@hdhoang
hdhoang / .pre-commit.sh
Created May 26, 2018 02:58 — forked from glfmn/.pre-commit.sh
Template pre-commit script for running tests on Rust projects especially, but appropriate for any project.
#!/usr/bin/env sh
# pre-commit.sh
STASH_NAME="pre-commit-$(date +%s)"
ROOT_DIR="$(git rev-parse --show-toplevel)"
BUILD_DIR="${ROOT_DIR}/target"
BRANCH_NAME=$(git branch | grep '*' | sed 's/* //')
RED='\033[1;31m'
GREEN='\033[1;32m'
YELLOW='\033[1;33m'
@hdhoang
hdhoang / .gitignore
Last active April 8, 2023 13:58
49799 dependencies graph
/dependencies.dot
@hdhoang
hdhoang / openpgp.txt
Created December 14, 2015 19:42
OpenKeychain API Tests
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:62887f0187af822845bccb2d238c5d40468516f7]

Keybase proof

I hereby claim:

  • I am hdhoang on github.
  • I am hdhoang (https://keybase.io/hdhoang) on keybase.
  • I have a public key whose fingerprint is 6288 7F01 87AF 8228 45BC CB2D 238C 5D40 4685 16F7

To claim this, I am signing this object:

@hdhoang
hdhoang / python sends to pidgin
Created April 27, 2010 02:50
send message from python to pidgin
#!/usr/bin/python
import sys
channels = {'loj':"#lojban",'pre':"#jbopre",'vn':"#vnluser"}
channel = channels[sys.argv[1]]
message = "".join(sys.argv[2:])
import dbus
bus = dbus.SessionBus()
obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")