Linux

Git keep calm and reset –hard

=================================================== $ git reset –hard A $ git reset –soft @{1} # (or ORIG_HEAD), which is D $ git commit =================================================== $ git revert –no-commit D $ git revert –no-commit C $ git revert –no-commit B $ git commit -m ‘the commit message’ listado total de commit push enviados al respositorio git shortlog -s -n

Git keep calm and reset –hard Leer más »

Forticlient – SSLVPN is a VPN Client to connect to Fortigate Devices

Forticlient – SSLVPN is a VPN Client to connect to Fortigate Devices with minimal effort, packaged here for Ubuntu and Debian. Forticlient – SSLVPN .deb packages Officially there is only a generic tar.gz package available. As I use Ubuntu most the time, I decided to build .deb packages for 32/64bit Ubuntu with a nice desktop

Forticlient – SSLVPN is a VPN Client to connect to Fortigate Devices Leer más »

PHP Debugging

error_reporting(E_ALL); ini_set(‘display_errors’, TRUE); ini_set(‘display_startup_errors’, TRUE);     Nobody enjoys the process of debugging their code. If you want to build killer web apps though, it’s vital that you understand the process thoroughly. This article breaks down the fundamentals of debugging in PHP, helps you understand PHP’s error messages and introduces you to some useful tools

PHP Debugging Leer más »

Grep

Equivalent of UNIX Grep command in Linux/Mac/Dos/Windows grep -Rni » » ./ Through Ack brew install ack ack «text goes here» Through find find . |grep «text goes here» Through grep grep -RnslI «text goes here» You can use the ‘type’ and ‘find’ command in Dos/Windows to get the equivalent output of the UNIX ‘cat’

Grep Leer más »

How to Detect and Analyze DDoS Attacks

How to Detect and Analyze DDoS Attacks Using Log Analysis The cloud delivers many benefits to companies and users alike, but it has one clear disadvantage: its vulnerability to cyber threats. This was brought to light this past December. Linode – a Linux cloud hosting provider – suffered from a massive attack that lasted 10

How to Detect and Analyze DDoS Attacks Leer más »