Skip to content

Instantly share code, notes, and snippets.

@thanhtam92
thanhtam92 / 0_reuse_code.js
Last active August 29, 2015 14:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@thanhtam92
thanhtam92 / configure: error: cannot run C compiled programs
Last active August 29, 2015 14:07
Compiling problems: cannot find crt1.o
[Proftpd-user] Re: configure: error: cannot run C compiled programs
From: malena rios <malena.rios@us...> - 2003-08-27 22:45:24
Well inf firts email I wrote:
> Hi!
>
> I have a trouble when I try to compile the proftpd-1.2.8.tar.gz.
> My server is a Linux RedHat 8.0, and it has installed.
>
> glibc-2.2.93-5 glibc-devel-2.2.93-5 glibc-common-2.2.93-5
@thanhtam92
thanhtam92 / enable telnet linux centos
Last active January 24, 2018 19:46
enable telnet linux centos
http://www.unixmen.com/how-to-install-telnet-in-centos-rhel-scientific-linux-6-4/
-------------------------------------------------------------------------------------------------------------
Telnet is a network protocol which is used to connect to remote computers over TCP/IP network. You can make a connection to a remote host using telnet. Once you establish a connection to the remote computer, it becomes a virtual terminal and will allow you to communicate with the remote host from your computer.
Installing telnet on CentOS 6.4
Open your terminal and type the following command to install telnet:
[root@server ~]# yum install telnet telnet-server -y
@thanhtam92
thanhtam92 / linux
Last active August 29, 2015 14:07
iptables, open port linux,
http://www.cyberciti.biz/tips/linux-iptables-examples.html
http://www.cyberciti.biz/faq/linux-unix-open-ports/
http://serverfault.com/questions/163244/linux-kernel-not-passing-through-multicast-udp-packets
@thanhtam92
thanhtam92 / setup fpt linux-constos
Created October 13, 2014 05:47
setup fpt linux-constos
http://ostechnix.wordpress.com/2013/12/15/setup-ftp-server-step-by-step-in-centos-6-x-rhel-6-x-scientific-linux-6-x/
@thanhtam92
thanhtam92 / Mount NTFS Centos
Created October 21, 2014 12:17
How to Enable NTFS mount Centos
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y install ntfs-3g
Ref: http://www.sohailriaz.com/how-to-enable-ntfs-support-in-centos-6-3/
@thanhtam92
thanhtam92 / SmartGit Trial
Created October 28, 2014 14:33
Changing SmartGit Free Trial License to Non-Commercial
Changing SmartGit Free Trial License to Non-Commercial
Some developers might overlook the license selection when using the SmartGit. Instead of choose non-commercial, they by default clicked Next on the “30 days Free Trial”. Worse thing is reinstall the SmartGit won’t get you to change the license.
To alter the license. First, go to
Windows: %APPDATA%\syntevo\SmartGit\<main-smartgit-version>
OS X: ~/Library/Preferences/SmartGit/<main-smartgit-version>
Unix/Linux: ~/.smartgit/<main-smartgit-version>
@thanhtam92
thanhtam92 / install java linux
Created October 28, 2014 14:46
install java on centos
http://www.cyberciti.biz/faq/centos-linux-6-install-java-sdk/
Could not load OpenSSL.
You must recompile Ruby with OpenSSL support or change the sources in your
Gemfile from 'https' to 'http'. Instructions for compiling with OpenSSL using
RVM are available at http://rvm.io/packages/openssl.
https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-centos-6-with-rvm
http://rvm.io/packages/openssl
When building native ruby gems, sometimes you'll get an error containing "ruby extconf.rb". This is often caused by missing dev libraries for the gem you're installing, or even ruby itself. Do you have apt installed on your machine? If not, I'd recommend installing it, it's a quick and easy way to get a lot of dev libraries. If you see people suggest installing "libmagick9-dev", that's an apt package that you'd install with:
$ sudo apt-get install libmagickwand-dev
or on centOs:
$ yum install ImageMagick-devel
On mac, you can use Homebrew:
$ brew install imagemagick