Skip to content

Instantly share code, notes, and snippets.

View firstval's full-sized avatar
👋

First Val Babon firstval

👋
  • Philippines
View GitHub Profile
.gitignore --> all files will ignore by git to push it through your repo
@firstval
firstval / logged_users_login
Created March 2, 2017 09:09
commands to list the logged in users in Linux
Method 1
users: This command print the user names of users currently logged in to the current host without showing any much information about source, login time or any other relevant detail
# users
deepak ruchi aman rahul ramandeep
Method 2
last: This command searches back through the file /var/log/wtmp (or the file designated by the -f flag) and displays a list of all users logged in (and out) since that file was created. Names of users and tty's can be given, in which case last will show only those entries matching the arguments.
git config receive.denyCurrentBranch ignore
##after the update
git checkout -f
Resources:
http://stackoverflow.com/questions/2816369/git-push-error-remote-rejected-master-master-branch-is-currently-checked
useradd <username> -> not asking for password, no home directory just only add new user
adduser <username> -> asking for password, will create home directory and asking lots of information about the user.
@firstval
firstval / phpmyadmin_lemp
Last active February 22, 2017 03:51
Using php7.0, nginx and phpmyadmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.6.6/phpMyAdmin-4.6.6-all-languages.tar.gz
tar xvf phpMyAdmin-4.6.4-all-languages.tar.gz
mv phpMyAdmin-4.6.6-all-languages /usr/share/phpmyadmin
apt-get install php7.0-mcrypt php7.0-mbstring php7.0-gettext php7.0-mysqli nginx php7.0 -y
sudo phpenmod mcrypt
sudo phpenmod mbstring
systemctl restart php7.0-fpm
ln -s /usr/share/phpmyadmin /usr/share/nginx/html
cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php
http://www.cacert.org/index.php?id=3
https://community.spiceworks.com/topic/1630590-migrate-from-elastix-2-5-to-4
Backup the extensions
PBX>Batch of Extensions>Download the current extensions in CSV format
System Recordings Import/Export
https://community.spiceworks.com/how_to/23140-maintaining-elastix-system-recordings
http://www.johncleary.net/2013/06/guide-to-install-vsftp-on-ubuntu-server-on-windows-azure/
http://askubuntu.com/questions/555660/create-a-vsftpd-server-with-anonymous-access
https://support.symantec.com/en_US/article.TECH91715.html
http://www.instructables.com/id/3-Ways-to-Enable-Administrator-Account-in-Windows-/?ALLSTEPS
https://support.symantec.com/en_US/article.TECH201873.html
@firstval
firstval / Linux Static IP
Created September 15, 2016 09:36 — forked from fernandoaleman/Linux Static IP
How To Configure Static IP On CentOS 6
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
HWADDR=A4:BA:DB:37:F1:04
TYPE=Ethernet
BOOTPROTO=static