Menu Close

devstate.de

A Dreams Engine Blog. This Blog may not make any sense to you. This is a collection of internal snippets that we collect with our experiences, but we hope some of our post will help you in some way.

Author / DevTeam

.Gitignoring the hardway

To untrack a single file that has already been added/initialized to your repository, i.e., stop tracking the file but not delete it from your system use: git rm –cached filename To untrack every file that is now in your .gitignore: First commit any outstanding code changes, and then, run this command: git rm -r –cached […]

Continue Reading

Solve MySQL(MariaDB) Bad Socket

To find all socket files on your system run: sudo find / -type s My Mysql server system had the socket open at /var/lib/mysql/mysql.sock Once you find where the socket is being opened, add or edit the line to your /etc/my.cnf file with the path to the socket file: socket=/var/lib/mysql/mysql.sock Sometimes the system startup script […]

Continue Reading

Install Pure-FTP , –Purge VSFTP

#Install Pure-FTPd aptitude -y install pure-ftpd #run as a daemon echo “yes” > /etc/pure-ftpd/conf/Daemonize #prohibit Anonymous echo “yes” > /etc/pure-ftpd/conf/NoAnonymous #enable chroot echo “yes” > /etc/pure-ftpd/conf/ChrootEveryone #only IPV4 echo “yes” > /etc/pure-ftpd/conf/IPV4Only service pure-ftpd restart #Restarting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -A -8 UTF-8 -B -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -4 -B Remove (PURGE!!!) […]

Continue Reading

Solve Upgrade Oh My ZSH Issue

If you get : [Oh My Zsh] Would you like to check for updates? Type Y to update oh-my-zsh: Y Upgrading Oh My Zsh Cannot pull with rebase: You have unstaged changes. Please commit or stash them. There was an error updating. Try again later? To solve this on OSX or Server Without proper permissions […]

Continue Reading

Install LEMP (Basic)

Ahora si!, a instalar LEMP Hardcore #super user sudo su #update aptitude update && aptitude upgrade #sever name echo “earth” > /etc/hostname hostname -F /etc/hostname hostname #añade el nombre de tu server a tu la ip local de tu maquina virtual (server local) nano /etc/hosts #arregla el horario de tu Linux dpkg-reconfigure tzdata #actualiza nuevamente […]

Continue Reading

Git

Primer Paso es hacer un folder en tu ###### #Repositorio Nuevo #Crea tu repositorio en Bitbucket con Create #Llena los datos ###### ##1 Inicia Git de un repositorio nuevo (recuerda sudo si no tienes privilegios root) git init ##2 Suma tu Git a la repo de tu Bitbucket git remote add origin https://[email protected]/dreamsengineering/$TU_USER.git ##3 Tu […]

Continue Reading

.zsh in favor of .bash

Instalar ZSH en Linux apt-get install zsh //or aptitude Cambiar permanentemente a zsh chsh /bin/zsh (En OSX: En OSX , solo habra que ir a las configuraciones de usuarios y en opciones avanzadas cambiamos de /bin/bash a /bin/zsh ) Prettifying: Instalar oh-my-zsh! #OSX sh -c “$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)” #LINUX sh -c “$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)” […]

Continue Reading

Logrotate

for WordPress /sites/*/public/wp-content/*.log { weekly missingok rotate 4 compress copytruncate size 1024k postrotate endscript maxage 10 compresscmd /bin/bzip2 compressext .bz2 } /sites/*/public/assets/*.log { weekly missingok rotate 4 compress copytruncate size 1024k postrotate endscript maxage 10 compresscmd /bin/bzip2 compressext .bz2 } for Nginx Log Sites /sites/*/log/*.log { weekly missingok rotate 4 compress copytruncate size 1024k postrotate […]

Continue Reading

Newer Posts
Older Posts