Skip to content

Instantly share code, notes, and snippets.

@ngobach
ngobach / ca.md
Created August 18, 2016 05:25 — forked from soarez/ca.md
How to setup your own CA with OpenSSL

How to setup your own CA with OpenSSL

For educational reasons I've decided to create my own CA. Here is what I learned.

First things first

Lets get some context first.

@ngobach
ngobach / Bach_NgoXuan.java
Last active October 3, 2023 21:09
JAV++
/**
*
* Bai Tap co caro
*
* @SinhVien Ngo Xuan Bach
* @MaSinhVien 1381310007
*/
import java.awt.*;
import java.awt.event.*;
@ngobach
ngobach / awesome-web.md
Last active July 7, 2016 08:16
Awesome web resouces!
/*
Navicat SQL Server Data Transfer
Source Server : SQLSERVER
Source Server Version : 110000
Source Host : (local)\SQLEXPRESS:1433
Source Database : SinhVien
Source Schema : dbo
Target Server Type : SQL Server
@ngobach
ngobach / ubuntu_webserver.md
Last active May 6, 2016 09:09
Ubuntu 14.04 Web server installation

Make swap

sudo fallocate -l 3G /swapfile && \
sudo chmod 600 /swapfile && sudo mkswap /swapfile && sudo swapon /swapfile && \
sudo sh -c 'echo /swapfile   none    swap    sw    0   0 >> /etc/fstab' && \
sudo sh -c 'echo vm.swappiness=10 >> /etc/sysctl.conf' && \
sudo sh -c 'echo vm.vfs_cache_pressure = 50 >> /etc/sysctl.conf'
@ngobach
ngobach / vps_desktopenvironment_vnc.md
Last active April 15, 2017 04:43
VNC Server as Service

Install packages

Desktop environment

  • Gnome desktop
sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal
@ngobach
ngobach / Gruntfile.js
Created December 29, 2015 11:37 — forked from markgoodyear/01-gulpfile.js
Comparison between gulp and Grunt. See http://markgoodyear.com/2014/01/getting-started-with-gulp/ for a write-up.
/*!
* Grunt
* $ npm install grunt-contrib-uglify grunt-autoprefixer grunt-contrib-cssmin grunt-contrib-imagemin grunt-contrib-sass grunt-contrib-watch grunt-contrib-concat grunt-contrib-clean grunt-contrib-jshint grunt-notify --save-dev
*/
module.exports = function(grunt) {
grunt.initConfig({
// Sass