I am now introducing a simple way to download video from Youtube by conkeror and an extra terminal program name cclive. This program take role to catch the link of youtube video and download it to assigned directory. In addition, you can choose type of video to download, of course, it also depends on the source.However, I am not going to further to that point.
What you need is: cclive, conkeror-spawn-helper
Firstly, you need to install cclive. if you are using Fedora, you can install it by this simple command on the terminal.
sudo yum install cclive -y
Then, you open your conkeror file init.js, and append it with the following lines
//download video from youtube using ccliveinteractive("download-video-2-music","Download current playing video.",function(I){varpath=I.buffer.current_uri.path;path=path.substr(9,30);I.minibuffer.message("Downloading video to folder Music ");shell_command_blind("cclive -d /home/nguyenvinhlinh/Music \"https://www.
youtube.com/watch?v=\""+path);});interactive("download-video-2-downloads","Download current playing video.",function(I){varpath=I.buffer.current_uri.path;path=path.substr(9,30);I.minibuffer.message("Downloading video to folder Downloads");shell_command_blind("cclive -d /home/nguyenvinhlinh/Downloads \"https:
//www.youtube.com/watch?v=\""+path);});
You can active these functions by M-x download-video-2-download, M-x download-video-2-music or assign these function to hot keys, for example:
By default, conkeror users may not use backspace to delete previous characters when they do simple task in google document, perharp also for other google product. The solution is that you have to enable quote mode in conkeror
In the daily work, I may have to type sudo your_command and your password many times, it costs your time, in my case, it makes me feel crazy. The solution is that, you will add command which you mostly type into a list, then, when you want to type it with prefix sudo it wont ask you for password.
You have to modify file sudoers in /etc/sudoers. For example, you want to
run command such as “yum”, “apachectl” without passwor
#1. Find the path of those commands by using command which
in this case, those commands locates in /usr/sbin/apachectl and /usr/bin/yum.
Now, you can run those command without password, REMEMBER, You still need prefix sudo
Command Alias, this feature will help you save your time if you want to assign group of command, for example, you have 2,3 user or group, it should be not convenient to type similar commands many times. Now, what you have to do is group them all, then use the command alias instead!
Description: After writing javascript code, There is an error, when users click
on the hyperlink, javascript does not run. However, if users refresh the
web page, javascript run automatically.My project using Jquery.
Instead of writing code like:
$(document).ready->alert("page is load")
You should write:
$(document).on"page:change",->alert"page has loaded!"
I write this program to transfer files between Window and Linux computer.I knew that there are a software which already solved this issue. However,I believe that It could be an extra solution for you guy.
By using this software (required available LAN network), you can save time when transfer file to another computer.
1: Window vs Window, Microsoft support file sharing, It is absolutely good. However, setting FileTransfer as a plan B is a good practice
2: Window vs Linux, Linux vs Linux. Firstly, I write this software because I am a full-time Linux user. During using time you could face a case that you want to share file, it should be wasteful if you choose to upload your file to google drive, attached in gmail or any remote repository. Using this software saves your time and increases your performance.
Currently, this software allows users to sends file by once, if you want to send again, press send again after sending completely, or open two program. Anyway, I will enhance this feature soon, and it depend on the demand of users or only me. If you are interest in my FileTransfer, You can clone it with the branch “master” I also attach a jar file. FileTransfer.jar. It is an executable jar file.
Known issue: The speed of FileTransfer is low, approximately 0.5MB/s. The reason is that I did not cut file into multiple parts and transfer it concurently, this software send file in only one connection.