Skip to content

Instantly share code, notes, and snippets.

View smamran's full-sized avatar
🎯
Focusing

S. M. AMRAN smamran

🎯
Focusing
View GitHub Profile
@smamran
smamran / Linux OS HW & SW Check.sh
Created November 16, 2015 09:27
Linux OS HW & SW Check
$$$$$$$$$$$$$$$$$$$$$ cat /proc/version
Linux version 4.2.0-c9 (root@7b840bf4fc5e) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 SMP Wed Sep 30 16:14:37 UTC 2015
$$$$$$$$$$$$$$$$$$$$$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 8
On-line CPU(s) list: 0-7
Thread(s) per core: 2
@smamran
smamran / CentOS.sh
Last active November 16, 2015 12:37
CentOS Commands
#### Super User CentOS #####
su root
$$ yum install gcc-c++
$$ curl --silent --location https://rpm.nodesource.com/setup | bash -
$$ yum -y install nodejs
@smamran
smamran / NodeJS.js
Created November 17, 2015 06:09
NodeJS
$$ node app.js -> Start App
$$ npm init -> initialize npm settings
$$ npm link -> set current project to global command variable which can be used from any directory
@smamran
smamran / Form.php
Last active November 18, 2015 06:03
PHP Codes
<form method="POST" action="">
<p>Name: </p>
<input type="text" name="name" value="<?php if (isset($_POST['name'])) {
echo htmlentities($_POST['name']);
} ?>"/> <br/>
<input type="submit">
</form>
@smamran
smamran / PHP Linux.sh
Last active November 18, 2015 12:38
PHP
Change folder rw permission: sudo chmod -R ugo+rw /var/www/html/umgw-panel-php/
@smamran
smamran / IIS-Apache
Last active November 24, 2015 05:23
IIS-Apache-MySQL conflict
Solution: Start Stop IIS
To stop/start/reset the Internet Information Services, you can follow the next steps:
On the webserver, open Computer Management (right-click on My Computer and select Manage).
Select Services and Applications, this will reveal Internet Information Services.
Right-click on Internet Information Services and select Restart/Stop....
Click OK.
@smamran
smamran / Key.sh
Created December 3, 2015 03:41
License Key
ASC 9: 61D7E-06323-689F2-6FA84
@smamran
smamran / c9.io G++
Created December 7, 2015 05:12
G++ GNU
alias g++='g++ --std=gnu++11'
@smamran
smamran / nginx-php.md
Created December 7, 2015 06:31
nginx-php

Hello friends, I am back with new video, but this time I am gonna show to something about a server.

Yeah, it's not an Apache, IIS, Zeus web server, Oracle Web Tier, lighttpd, Apache Tomcat etc..

But it's all about Nginx web server.

- It's free open source popular web server including IMAP/POP3 proxy server.