- Show full pagination in datatable ( goto last page of datatable)
- Get list of all installed vscode extension in linux
- To Get Only Ip address of local system with linux command (
- To generate large files for testing. terminal command
- TO allow permission in db
- Login to mysql : mysql -u root -p
- Password generator command:
- REGEx Range validation (External Link)
- Disable https globally from composer:
- Enable https globally from composer:
- List composer config:
- Change php version:
- Enable second in ubuntu top bar
- Set desktop icon size
- To find who is logged in my system as ssh and log them out
- Force stop application from terminal
- Get installed fonts
- To remove file form cache
- How to use github access token
- Craft cms Tutorial (External Link)
- Check disk usage
- Monitor browser events
- Set sql variable
- PHP analysis tools (External Link)
- Search (PHP analysis tools in above link)
- Multi file upload one by one (keywords: "append to input type file","multiple","dynamic input types")
- Ubuntu terminal command to get mysql database size(mysql database size | )
- Add new server in phpmyadmin (ubuntu)
- List process on specific port
- Kill process
- Git command alias with autocomplete
- Get number of branches command
- prune deleted branches
- Avatar - image from name initials
- disable xdebug temporarily
- re-enable xdebug
- Table row number starting from 1 according to per page and current page
- Mirro repository
$('#agent_activity').DataTable({
"pagingType": "full_numbers"
});
code --list-extensions | xargs -L 1 echo code --install-extension
hostname -I
fallocate -l 100M testfile2G.txt
fallocate -l <SIZE><G|M> <filename>.<extension>
GRANT ALL PRIVILEGES ON elision_prudent.* TO 'root'@'192.168.0.65' IDENTIFIED BY 'tumko34h1se';
GRANT ALL PRIVILEGES ON asterisk2.* TO 'root'@'192.168.0.65' IDENTIFIED BY 'tumko34h1se';
SELECT table_schema ,
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables WHERE table_schema='asterisk2'
GROUP BY table_schema
pwgen 10 3 -y
composer config --global disable-tls true
composer config --global secure-http false
composer config --global disable-tls false
composer config --global secure-http true
composer config --global --list
sudo update-alternatives --config php
gsettings set org.gnome.desktop.interface clock-show-date true
gsettings set org.gnome.desktop.interface clock-show-seconds true
gsettings set org.gnome.desktop.interface clock-show-weekday true
gsettings set org.gnome.nautilus.icon-view default-zoom-level 'small'
who
ps -U ovs
sudo kill 4198
pkill -9 chrome
fc-list | grep -i "Knocky"
If file or folder is pushed to git and letter added to git ignore then need to remove from cache
git rm -r --cached .
git config --global core.autocrlf false
git add --renormalize .
git add .
git remote add origin https://<TOKEN>@github.com/RazinTeqB/craft_demo.git
du -h --max-depth=1
monitorEvents($0)
SET @variable_name = (SELECT @@GLOBAL.sql_mode);
SET GLOBAL sql_mode = ''
Multi file upload one by one (keywords: "append to input type file","multiple","dynamic input types")
du -h /var/lib/mysql
- Add below code in /etc/phpmyadmin/config.inc.php
$i++; $cfg['Servers'][$i]['host'] = 'HostName:port'; //provide hostname and port if other than default $cfg['Servers'][$i]['user'] = 'userName'; //user name for your remote server $cfg['Servers'][$i]['password'] = 'Password'; //password $cfg['Servers'][$i]['auth_type'] = 'config'; // keep it as config
lsof -i tcp:3000
kill -9 <PID>
- Download
.git-completion.bash
from here - Save this file in same folder as
.bashrc
file. - Add below code in
.bashrc
fileif [ -f ~/.git-completion.bash ]; then . ~/.git-completion.bash fi
- Create alias for git command
alias gpl='git pull origin ' __git_complete gpl _git_checkout
- Restart terminal
- Note: alias must be after Step 3 code
git branch --all | wc -l
git fetch -p && git branch -vv | awk '/: gone]/{print $1}' | xargs git branch -D
sudo phpdismod xdebug
sudo service apache2 restart
sudo phpdenmod xdebug
sudo service apache2 restart
(currentPage - 1) * perPage + index + 1
cd projects/
cd central_city_liquors/
cd ../
git clone [email protected]:corePHP/central-city-liquors.git
mkdir git_mirror
cd git_mirror/
git clone --bare [email protected]:RazinTeqB/central_city_liquors.git
ll
[email protected]:RazinTeqB/central_city_liquors.git
git clone --bare [email protected]:RazinTeqB/central_city_liquors.git
cd central_city_liquors.git/
git push --mirror [email protected]:corePHP/central-city-liquors.git
cd ../
rm -rf central_city_liquors.git/
cd ../
rm -rf central-city-liquors/
git clone [email protected]:RazinTeqB/central_city_liquors.git
git clone [email protected]:corePHP/central-city-liquors.git
cd central-city-liquors/
git log --oneline --graph --all
git remote -v
cd ../
rm -rf central_city_liquors/
exit