Skip to content

Instantly share code, notes, and snippets.

View thangnc's full-sized avatar

Thang Nguyen thangnc

View GitHub Profile
@thangnc
thangnc / set_up_clean_osx_el_capitan.md
Last active October 16, 2018 10:13 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences

Most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
defaults write NSGlobalDomain InitialKeyRepeat -int 12

#Installing Taiga on CentOS 6 (x64)

##Dependencies ...

yum update -y
yum groupinstall "Development Tools" -y
yum install libxslt-devel libxml2-devel libXt-devel curl git tmux -y
yum install setuptool system-config-network-tui vim libtool make autoconf automake htop wget curl gcc gcc-c++ -y

yum install libjpeg-turbo-devel openssl-devel bzip2-devel libcurl-devel freetype-devel libpng-devel gd-devel libtiff-devel -y

@thangnc
thangnc / install_mysql_5_5_centos.md
Last active January 7, 2016 16:09 — forked from jhjguxin/install_mysql_5_5_centos.md
Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

#Install MySQL Database 5.5.37 on CentOS 6.5/5.10, Red Hat (RHEL) 6.5/5.10

Install Remi repository

sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

Check Available MySQL versions

@thangnc
thangnc / set_up_tomcat7.md
Last active December 16, 2015 09:33
Setup Tomcat7 and MySQL UTF-8

Setup tomcat7 and enable UTF-8 on MySQL

Enable tomcat7

sudo ln -s /var/lib/tomcat7/conf /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat7/policy.d/03catalina.policy /usr/share/tomcat7/conf/catalina.policy
sudo ln -s /var/log/tomcat7 /usr/share/tomcat7/log
sudo chmod -R 777 /usr/share/tomcat7/conf
@thangnc
thangnc / basic_iptables_centos_6.md
Last active December 16, 2015 09:39
Set Up a Basic Iptables Firewall on Centos 6

Block the most common attacks

iptables -F

First, we start with blocking null packets.

iptables -A INPUT -p tcp --tcp-flags ALL NONE -j DROP
@thangnc
thangnc / error.log
Created August 15, 2018 03:09
Netbeans error
========= Khởi tạo ==========
14-Aug-2018 22:07:44.456 INFO [http-nio-8080-exec-4] org.apache.catalina.core.StandardContext.reload Reloading Context with name [/Bonus_Peru] is completed
Validate URL: http://10.121.4.14:8207/passportv3/validate?domainCode=Inventory_Bonus&ticket=ST-55018-WvAK09v40oCUKMpaf9VD-passport414&service=http%3A%2F%2Flocalhost%3A8080%2FBonus_Peru%2F
Vpclient: Authenticate successful [username=thanhnv3_vtp]
Session belongs to VSA has been created: 0639C754944BC905ACE6AE9A236ED41D
Khong doc duoc file cau hinh ma hoa
java.lang.NullPointerException
at com.viettel.framework.interceptor.BaseHibernateDAO.loadEncryptedDBConfig(BaseHibernateDAO.java:31)
at com.viettel.framework.interceptor.BaseHibernateDAO.<clinit>(BaseHibernateDAO.java:158)
at com.viettel.framework.interceptor.ActionInterceptor.intercept(ActionInterceptor.java:46)
@thangnc
thangnc / mysql57
Created November 26, 2018 13:45
MySQL5.7 on AWS
1.rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm #下载
2.yum install yum-utils -y #装源
3.yum-config-manager --disable mysql56-community # 禁用MySQL5.6的源
4.yum-config-manager --enable mysql57-community-dmr # 启用MySQL5.7的源
5.yum repolist enabled | grep mysql
@thangnc
thangnc / chatgpt.md
Created March 26, 2023 16:52 — forked from veekaybee/chatgpt.md
Everything I understand about chatgpt

ChatGPT Resources

Context

ChatGPT appeared like an explosion on all my social media timelines in early December 2022. While I keep up with machine learning as an industry, I wasn't focused so much on this particular corner, and all the screenshots seemed like they came out of nowhere. What was this model? How did the chat prompting work? What was the context of OpenAI doing this work and collecting my prompts for training data?

I decided to do a quick investigation. Here's all the information I've found so far. I'm aggregating and synthesizing it as I go, so it's currently changing pretty frequently.

Model Architecture