This file contains 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 | |
find . -name ".directory" -type f -delete | |
7z a -t7z SIFRE.7z . -mhe -mx=9 -p |
This file contains 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 | |
XILINX='/opt/Xilinx/13.2/ISE_DS' | |
source $XILINX/settings64.sh $XILINX | |
exec /opt/Xilinx/13.2/ISE_DS/ISE/bin/lin64/ise |
This file contains 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
cp -r /etc/apt/preferences.d apt.preferences.d | |
cp /etc/apt/sources.list sources.list | |
update-alternatives --get-selections > alternatives.selection | |
dpkg --get-selections '*' > dpkg.selection | |
sudo debconf-get-selections > debconf.selection (sudo apt-get install debconf-utils) | |
# copy *.selecttion to new system | |
dselect update |
This file contains 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/sh | |
DAY=`/bin/date +%Y%m%d_%H%M` | |
mysqldump -ubackuper -pbackupdb gate > /root/backups/mysql-backups/gate-$DAY.sql | |
cp -f /root/backups/mysql-backups/gate-$DAY.sql /YEDEK-R/backups/mysql-backups/ | |
cp -f /root/backups/mysql-backups/gate-$DAY.sql /YEDEK-H/backups/mysql-backups/ | |
cp -Rf /var/www /root/backups/web-backups/www-$DAY | |
cp -Rf /var/www /YEDEK-R/backups/web-backups/www-$DAY |
This file contains 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 | |
ssh -f -N -D 9999 tugrulyatagan.com | |
C:\Users\Tuğrul>plink -ssh -T -N -D 9999 [email protected] -i "E:\ssh_keys\tugrul\puuty_prv.ppk" |
This file contains 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 | |
rsync -avz --chmod=u=rwX,go=r --delete /media/BELGELER/İTÜ\ Ders/ evlocal:/home/tugrul/ITU | |
rsync -avz --chmod=u=rwX,go=r --delete /home/tugrul/Workspaces/ evlocal:/home/tugrul/WORKSPACES | |
# crontab icine | |
# 30 11 * * * /var/yedek_ev.sh |
This file contains 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
ls listeleme yapar | |
------ | |
ls --help komut hakkında yardım | |
ls -a (all)herşeyi gizli dosyaları | |
ls -l (list)detaylı | |
ls -la birden fazla parametre verilebilir | |
ls -d dizinleri listeler | |
[..] karakter dizisi | |
* bütün karakterler | |
? tek karakter |