Menu Home

Author Archives

lnmcc

Use Gerrit

Gerrit Workflow Set Permission(Nginx) Create password file htpasswd -c /path/gerrit.password username Add New User htpasswd -m /path/gerrit.password username Nginx Configuration server { listen *:80; server_name gerrit; allow all; deny all; auth_basic “Welcomme to Gerrit !”; auth_basic_user_file /path/gerrit.password; location / { proxy_pass http://127.0.0.1:8080; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; } } […]

Manage SSH Key

Generate SSH Key $ ssh-keygen -t rsa -C “[email protected]” Add Key $ ssh-add ~/.ssh/id_rsa Check Saved Keys ssh-add -l Delete All Keys ssh-add -D Start ssh agent If you get the error : “Could not open a connection to your authentication agent.” eval `ssh-agent -s`

VAO VBO VEO Template

GLfloat vertices[] = { 0.5f, 0.5f, 0.0f, 1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 0.0f, 1.0f, 0.0f, -0.5f, -0.5f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f, -0.5f, 0.5f, 0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 1.0f, }; GLuint indices[] = { 0, 1, 3, 1, 2, 3 }; GLfloat texCoords[] […]