Skip to content

Instantly share code, notes, and snippets.

View ggicci's full-sized avatar
🍉
Happy summer ~

Ggicci ggicci

🍉
Happy summer ~
  • Toronto
  • 03:29 (UTC -04:00)
View GitHub Profile
@ggicci
ggicci / KFS-0.5 Client Link Error
Last active August 29, 2015 13:58
Error when linking KFS-0.5 client test program.
@ggicci
ggicci / cipher.streamreader.go
Created November 19, 2014 12:31
Golang StreamReader Sample
package main
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"fmt"
"io"
"math"
)
@ggicci
ggicci / .gitconfig
Last active August 29, 2015 14:10 — forked from pksunkara/config
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
package main
import (
"fmt"
"net"
"bufio"
"sync"
"os/signal"
)
@ggicci
ggicci / main.go
Created October 21, 2016 01:44 — forked from julz/main.go
containersched minicontainer
package main
import (
"fmt"
"os"
"os/exec"
"syscall"
)
func main() {
@ggicci
ggicci / setup-centos7-ssserver.sh
Created October 19, 2017 15:01
setup-centos7-ssserver
#!/usr/bin/env bash
set -o errexit
set -o pipefail
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum install -y docker
@ggicci
ggicci / add_sudoer_user.sh
Last active December 10, 2017 10:23
Add a new sudoer user with password.
#!/usr/bin/env bash
set -o errexit
set -o pipefail
add_user() {
local username="$1"
local password="$2"
if id -u "${username}" &>/dev/null; then
@ggicci
ggicci / index.html
Last active March 24, 2019 10:29
Gist description goes here...
<!DOCTYPE html>
<html>
<head>
<meta charset="utf8">
<title>HELLO WORLD</title>
</head>
<body>
HELLO WORLD
</body>
@ggicci
ggicci / init.vim
Created February 2, 2020 09:28
Sample configure file init.vim for NeoVim
"
" ## Installed Plugins
"
call plug#begin('~/.nvim/plugins')
Plug 'preservim/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'itchyny/lightline.vim'
Plug 'tpope/vim-fugitive'
Plug 'NLKNguyen/papercolor-theme'
Plug 'dense-analysis/ale' " Asynchronous Lint Engine (LSP support)

Keybase proof

I hereby claim:

  • I am ggicci on github.
  • I am ggicci (https://keybase.io/ggicci) on keybase.
  • I have a public key ASDDYCd-ma3hqaF8ZAJLzMk8VQj_ipKXy3PY4i-GbLDUmwo

To claim this, I am signing this object: