1
votes
112
views
Convert all mp4 files into mp3 files
posted at July 23, 2018, 10:37 p.m. - 4 months, 3 weeks ago

One method is a bash *for loop*. Easy convert to .mp3 files: mkdir outputs/ for f in *.mp4; do ffmpeg -i "$f" "outputs/${f%.mp4}.mp3"; done For converting only .mp4 files: mkdir ...

0
votes
49
views
Fixed crontab (cronjobs) not working in Digital Ocean
posted at Oct. 29, 2018, 1:33 p.m. - 1 month, 2 weeks ago

1. No MTA installed $ sudo grep CRON /var/log/syslog ... Oct 20 12:28:01 tb-live CRON[13160]: (CRON) info (No MTA installed, discarding output) ... Solution: $ sudo apt-get install postfix 2. ...

0
votes
44
views
Fixed DNS PROBE on Ubuntu
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

These errors indicate that there is some problem with DNS. check cat /etc/resolv.conf for your DNS settings. And add following name server in /etc/resolv.conf for temporary or in /etc/resolvconf/resolv.conf.d/head for ...

linux solution problem
0
votes
44
views
E11000 duplicate key error index in mongodb
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

E11000 duplicate key error index in mongodb. I found this error after migrating my field from “unique” to “non-unique”. And in this problem we use mongoengine for flask. First, i ...

0
votes
42
views
Create Command Line interfaces with Python
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

Building command line programs has been a long time passion of mine. There’s something magical about making a simple, intuitive, and composable CLI. There’s also nothing more beautiful than chaining ...

linux python
0
votes
42
views
Remove all files .pyc with recrusive method
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

Remove all files .pyc with recrusive method - This method simple but important. Example in your project dir is like this: project_dir/ __init__.py __init__.pyc something.py something.pyc ... core/ __init__.py __init__.pyc ...

0
votes
42
views
Quick to understanding git step by step
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

Quick to understand git step by step. Git is a version control system that is used for software development and other version control tasks. As a distributed revision control system ...

git linux beginner
0
votes
39
views
How to make cronjob for Django in Hosting, VPS or Server
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

How to make cronjob for Django in Hosing, VPS or Server. This config also what we do in this site. For example, in your file of /yourproject/yourapp/management/commands/autobackup.py from django.core.management.base import ...

server linux django
0
votes
33
views
Simple bash scripting for login before open the terminal
posted at July 12, 2018, 3:13 p.m. - 5 months, 1 week ago

Add this in your file of /etc/bash.bashrc, makesure you logged in as root. while true; do # Don't exit at Ctrl-C trap "echo" SIGINT printf "n" echo -n " Who ...

linux beginner tricks
0
votes
32
views
Split terminal on Linux Ubuntu
posted at Nov. 27, 2018, 2:26 p.m. - 2 weeks, 6 days ago

$ sudo apt-get update $ sudo apt-get install screen Split Vertical $ screen # then press Ctrl + a # then press Shift + \ Move to another tab Ctrl ...