Skip to content

Instantly share code, notes, and snippets.

View nghinv's full-sized avatar

NGUYEN VAN Nghi nghinv

  • ONVN
  • Ha Noi, Viet Nam
View GitHub Profile
@Fusselwurm
Fusselwurm / gherkin.xml
Created May 16, 2013 08:32
gherkin syntax highlighting for kde/katepart. not of my making, but copied from http://paste.kde.org/184712/
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "language.dtd">
<!--
Gherkin (English) syntax highlighting definition for Kate.
Copyright (C) 2011 by Torbjörn Klatt (opensource@torbjoern-klatt.de)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
Table of Contents
I. RESPONSIBILITIES 1
II. NEEDED SKILLS FOR PERFORMANCE TESTING 1
III. NEEDED SKILLS FOR SECURITY TESTING 2
=======================
I. RESPONSIBILITIES
1. Performance benchmark:
1. Make official performance benchmarks with reporting during Release Test Campaigns
{
"title": "Apache and Tomcat Logs",
"services": {
"query": {
"list": {
"0": {
"query": "apache !tomcat !static",
"alias": "",
"color": "#7EB26D",
"id": 0,
@barroco
barroco / raven-shell
Last active May 4, 2024 11:25
Send Sentry error from shell using curl
#!/bin/sh
SENTRY_KEY=
SENTRY_SECRET=
SENTRY_PROJECTID=1
SENTRY_HOST=sentry.example.com
SCRIPT_ARGUMENTS=$@
capture_error()
{
@fntlnz
fntlnz / self-signed-certificate-with-custom-ca.md
Last active July 23, 2024 12:13
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
##
## How to install mcrypt in php7.2 / php7.3
## Linux / MacOS / OSX
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
#
@nghinguyenvan
nghinguyenvan / installDockerAndDockerCompose.sh
Created December 22, 2018 08:23 — forked from theeye-io/installDockerAndDockerCompose.sh
Install Docker 1.13 and Docker-compose on ubuntu 16.04
#1.Install packages to allow apt to use a repository over HTTPS:
sudo apt-get install -y --no-install-recommends \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
#2.Add Docker official GPG key:
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
@nghinv
nghinv / self-signed-certificate-with-custom-ca.md
Created March 1, 2019 09:05 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@nghinv
nghinv / how-to-ssh-agent.md
Created June 5, 2019 08:37 — forked from nepsilon/how-to-ssh-agent.md
Remember passphrases with ssh-agent — First published in fullweb.io issue #31

How to use ssh-agent to cache your SSH credentials?

Contributed by Fabien Loudet, Linux SysAdmin at Rosetta Stone

Tired of always having to enter your SSH key passphrase when logging in to remote machines? Here comes ssh-agent. Enter the passphrase once and it will keep it in memory for you

Using ssh-agent in your shell session: