There's a constant misunderstanding about how private
method works...
For example, this DOES NOT make BAR
a private constant:
class This
private
##Howto: Repair Broken apt-get update on debian/ubuntu | |
sudo -i | |
apt-get clean | |
cd /var/lib/apt | |
mv lists lists.old | |
mkdir -p lists/partial | |
apt-get clean | |
apt-get update |
I hereby claim:
To claim this, I am signing this object:
#Add-apt-repository behind proxy | |
#---- Long Term Solution --- | |
#Set export variables onto .bashrc | |
sudo nano ~/.bashrc | |
#Add following lines | |
echo "export http_proxy=http://url:port" >> ~/.bashrc | |
echo "export https_proxy=http://url:port" >> ~/.bashrc | |
#Preserve environment variables |
#!/bin/bash | |
set -o errexit | |
# Author: David Underhill | |
# Script to permanently delete files/folders from your git repository. To use | |
# it, cd to your repository's root and then run the script with a list of paths | |
# you want to delete, e.g., git-delete-history path1 path2 | |
if [ $# -eq 0 ]; then | |
exit 0 |
These are the steps for a minimal development box for Metrologos.
I'm going to use a virtual machine with VirtualBox using Vagrant, so you must install them beforehand. Also, it will need the hashicorp/precise32 box (will be downloaded if not present), if you want to use other debian-compatible, change the Vagranfile according.
As we are going to install ubuntu packages, you'll need some kind of internet access (if a 33.6 Kbps dial-up it's OK for you, it's OK for me)
""" | |
URL Checker. | |
A basic tester for the URL | |
""" | |
from __future__ import print_function | |
import re | |
import requests | |
from colors import Colors | |
def test_url(url): |