All Posts Create a Post  
0
votes
354
views
How to automaticly backup your projects into external hardisk in ubuntu?
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

Rsync, which stands for “remote sync”, is a remote and local file synchronization tool. It uses an algorithm that minimizes the amount of data copied by only moving the portions …

101 1 1 0
0
votes
147
views
How to make a notification when terminal process is complete
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

I have started a long process through a terminal. Is it possible to make the Ubuntu terminal make a sound once the process is complete? This way, I don’t need …

101 1 1 0
0
votes
207
views
move multiple files using bash
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

# This method if the files has no extentions. $ for file in *; do mv "$file" "$file.png"; done # This method if the files has extentions before. $ for …

101 1 1 0
0
votes
258
views
Convert all mp4 files into mp3 files
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
137
views
Simple bash scripting for login before open the terminal
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
128
views
E11000 duplicate key error index in mongodb
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
138
views
Remove all files .pyc with recrusive method
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
141
views
How to make cronjob for Django in Hosting, VPS or Server
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
137
views
Quick to understanding git step by step
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0
0
votes
145
views
Create Command Line interfaces with Python
Posted at 2 weeks, 5 days ago / Oct. 11, 2020, 8:04 a.m.

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 …

101 1 1 0