Python maceralarım 1 – Başlangıç

10 yıldır PHP geliştirmiş ve artık PHP’ye doymuş biri olarak PHP’den daha iyi olan bir dil arayışına girdim. Derlenmeyen bir dil olması gerekiyor çünkü derleme zamanı çok uzun sürüyor. Doğrudan yorumlansın beni derlemeyle filan uğraştırmasın istiyorum ve en önemlisi multithreading desteklesin. PHP default olarak multithread desteklemiyor. Pthreads kurulması filan gerekiyor Devamı…

Change terminal tab title

nano ~/.bashrc # enter this function footer of the .bashrc file # Update gnome terminal title function termtitle() { if [[ -z “$ORIG” ]]; then ORIG=$PS1 fi TITLE=”\[\e]2;$*\a\]” PS1=${ORIG}${TITLE} PROMPT_COMMAND=’echo -ne “\033]0;\007″‘ } # save and quit from nano # source ~/.bashrc # termtitle example title

Install supervisord to Centos 7

install: pip install supervisor configure: mkdir -p /etc/supervisord/conf.d echo_supervisord_conf > /etc/supervisord/supervisord.conf echo “files = conf.d/*.conf” >> /etc/supervisord/supervisord.conf setup as service: wget https://gist.githubusercontent.com/mozillazg/6cbdcccbf46fe96a4edd/raw/2f5c6f5e88fc43e27b974f8a4c19088fc22b1bd5/supervisord.service -O /usr/lib/systemd/system/supervisord.service start service systemctl start supervisord view service status: systemctl status supervisord auto start service on system startup: systemctl enable supervisord Source: https://gist.github.com/mozillazg/6cbdcccbf46fe96a4edd

Centos 7 disable ipv6

Best solution is disable ipv6 kernel module. Other solutions not working sometimes. Add ipv6.disable=1 to GRUB_CMDLINE_LINUX parameters. And restart the server. # nano /etc/default/grub GRUB_TIMEOUT=5 GRUB_DEFAULT=saved GRUB_DISABLE_SUBMENU=true GRUB_TERMINAL_OUTPUT=”console” GRUB_CMDLINE_LINUX=”ipv6.disable=1 crashkernel=auto rhgb quiet” GRUB_DISABLE_RECOVERY=”true” # grub2-mkconfig -o /boot/grub2/grub.cfg # regenerate grub2 and reboot # reboot I don’t like restart server but there is no Devamı…