find . -name "*.pyc" -exec rm -rf {} \;
or use this:
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rfsource: link
find . -name "*.pyc" -exec rm -rf {} \;
or use this:
find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rfsource: link
| # -*- coding: utf-8 -*- | |
| """ | |
| Verify the given mail id is valid or not without sending mail. Verifying the email id directly from mail exchange server. | |
| """ | |
| import argparse | |
| import smtplib | |
| import dns.resolver | |
| import re |
| #!/usr/bin/env python2 | |
| """ | |
| Other Repositories of python-ping | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| * https://github.com/l4m3rx/python-ping supports Python2 and Python3 | |
| * https://bitbucket.org/delroth/python-ping |
| #/bin/bash | |
| # Update the ldconfig configuration file. | |
| touch /etc/ld.so.conf.d/x86_64-linux-freeswitch.conf | |
| echo "/usr/local/lib" >> /etc/ld.so.conf.d/x86_64-linux-freeswitch.conf | |
| # Install libyuv-dev | |
| cd /usr/src | |
| wget http://files.freeswitch.org/downloads/libs/libyuv-0.0.1280.tar.gz | |
| tar -xzvf libyuv-0.0.1280.tar.gz | |
| cd libyuv-0.0.1280 |
| #!/usr/local/bin/python | |
| # | |
| # process-rxfax.py - post process incoming fax from freeswitch (spandsp raw .tiff => pdf, then | |
| # emailed) | |
| # | |
| # the script uses the UUID from freeswitch to make a unique filename on the server while receiving, | |
| # then renames the attachment to a friendly name for the emailed user. The script calls tiff2ps | |
| # and ps2pdf to create a PDF from the initial TIFF from spandsp. | |
| # | |
| import sys # import the sys module for argv |
NodeJS, to install NodeJS packages in this example we will use Ubuntu 14.04 TLS as OS example and expressjs as node package example, Ubuntu 16.04 TLS contains a version of Node.js in its default repositories.
apt-get update && apt-get upgrade
apt-get install nodejs
to check nodejs version
node -v
Correcting file permissions on server
chown www-data:www-data -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \; # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \; # Change file permissions rw-r--r--According to: StackOverflow Answer
git clone --recurse-submodules -j8 git://github.com/foo/bar.gitSource: here
git submodule update --remote --merge