Skip to content

Instantly share code, notes, and snippets.

View tanvir86's full-sized avatar

Tanvir Ahmed tanvir86

View GitHub Profile
inxi -Fxzd // View all information about machine.
********************************************************
1. sudo yum -y update
2. sudo yum -y install httpd
3. sudo firewall-cmd --permanent --add-port=80/tcp
sudo firewall-cmd --permanent --add-port=443/tcp
4. sudo firewall-cmd --reload
5. service httpd start // Start Apache server
6. service httpd status // View Apache Server Status
7. service httpd stop // Stop Apache Server
==========================================
⭐ For cdr table ⭐
==========================================
------------------------------------------
👉 /etc/odbc.ini
------------------------------------------
[odbcAsterisk]
Driver = MySQL ODBC 5.3 Unicode Driver
Description = MySQL connection to ‘asterisk’ database
@tanvir86
tanvir86 / How to do TCPDUMP
Created July 19, 2018 05:16 — forked from ronokdev/How to do TCPDUMP
How to do TCPDUMP
::: RefUrl
→ https://www.tecmint.com/12-tcpdump-commands-a-network-sniffer-tool/
→ https://linuxtechlab.com/learn-use-tcpdump-command-examples/
→ https://www.thegeekstuff.com/2010/08/tcpdump-command-examples
::: Install TCPdump command → yum install tcpdump
::: To write tcpdump from 'server_A'(eth0) IP to 'server_B'
@tanvir86
tanvir86 / HTTP status codes | REST API
Created September 24, 2018 10:53 — forked from ronokdev/HTTP status codes | REST API
HTTP status codes | REST API
RefURL → https://blog.mwaysolutions.com/2014/06/05/10-best-practices-for-better-restful-api/
:: 200 – OK – Eyerything is working
:: 201 – OK – New resource has been created
:: 204 – OK – The resource was successfully deleted
:: 304 – Not Modified – The client can use cached data
:: 400 – Bad Request – The request was invalid or cannot be served. The exact error should be explained in the error payload. E.g. „The JSON is not valid“
:: 401 – Unauthorized – The request requires an user authentication
:: 403 – Forbidden – The server understood the request, but is refusing it or the access is not allowed.
:: 404 – Not found – There is no resource behind the URI.
@tanvir86
tanvir86 / Microservices Architecture Pattern
Created September 24, 2018 12:19 — forked from ronokdev/Microservices Architecture Pattern
Microservices Architecture Pattern
RefUrl → https://www.oreilly.com/library/view/software-architecture-patterns/9781491971437/ch04.html#idp1166176
@tanvir86
tanvir86 / PowerShell Customization.md
Created October 28, 2018 18:36 — forked from jchandra74/PowerShell Customization.md
PowerShell, Cmder / ConEmu, Posh-Git, Oh-My-Posh, Powerline Customization

Pimping Up Your PowerShell & Cmder with Posh-Git, Oh-My-Posh, & Powerline Fonts

Backstory (TLDR)

I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.

For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.

Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.

@tanvir86
tanvir86 / README.md
Created October 31, 2018 11:12 — forked from hwdsl2/README.md
My IPTables rules for securing the Asterisk VoIP server