This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Place following content with edits in the correct path in a similar directory: | |
~/.local/share/applications/application.desktop | |
[Desktop Entry] | |
Name=App name to be shown | |
Exec=/opt/apps/app-dir/app.AppImage | |
Type=Application | |
Icon=/opt/apps/app-dir/logo.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop and delete all containers matching the provided prefix | |
# Usage: $ drmall redis | |
drmall(){ | |
docker ps -a --filter "name=$1*" --format="{{ .Names }}" | xargs docker rm -f {} | |
} | |
# Stop and delete all image with repository name matching the provided prefix | |
# Usage: $ drmiall redis | |
drmiall(){ | |
docker images --filter "reference=$1*" --format="{{ .ID }}" | xargs docker rmi {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[xdebug] | |
xdebug.remote_enable=on | |
xdebug.remote_mode=req | |
xdebug.remote_autostart=1 | |
xdebug.remote_log="/var/log/xdebug.log" | |
xdebug.remote_host=localhost | |
xdebug.remote_handler=dbgp | |
xdebug.remote_port=9000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ] | |
then | |
echo "Usage: $0 <src> <dst> [any-rsync-option]" | |
exit | |
fi | |
rsync -aruvzp --progress --exclude='.git/' $@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: $0 <port>" | |
exit | |
fi | |
for i in `sudo lsof -i :8080| sed 's/\( \)*/\1/g' | cut -d" " -f2| sort | uniq| egrep -o '[0-9]*'`;do | |
sudo kill -9 $i | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -z $2 ]; then | |
echo $0" <source-dir/> <dist-dir/>" | |
exit | |
fi | |
IFS=$'\n' | |
SOURCE=$1 | |
DEST=$2 | |
for dir in `ls $SOURCE |rev |cut -d '/' -f1 |rev`;do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# aliases | |
alias gs='git status' | |
alias gl="git log --graph --pretty=format:'%C(yellow)%d%Creset %C(cyan)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --all" | |
alias gc='git add . & git commit -m ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
# ar2en.py : Renames arabic files and directories into english recursively | |
import os | |
import sys | |
import shutil | |
chart = { "أ" : "a" , | |
"ا" : "a" , |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo 'Usage: audiosplitter.sh filename|directory segmenttime' | |
exit | |
fi | |
FILENAME=$1 | |
SEGMENTTIME=$2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -eq 0 ] | |
then | |
echo 'Usage:largest.sh file|folder path NUMBEROFRECORDS' | |
exit | |
fi | |
DEST=$2 | |
NUMBEROFRECORDS=10 | |
if [ -n $3 ] |
NewerOlder