Skip to content

Instantly share code, notes, and snippets.

host=http://cdn.debian.net
host_multimedia=deb-multimedia.org
host_security=security.debian.org
root=debian
root_multimedia=/
root_security=/
dist=wheezy
dist_security=wheezy/updates
dist_backports=wheezy-backports
dist_updates=wheezy-updates
@axeliodiaz
axeliodiaz / mirror.list
Last active October 14, 2015 13:25
mirror.list
############# config ##################
#
# set base_path /var/spool/apt-mirror
set base_path /media/mirror
#
set mirror_path $base_path/mirror
set skel_path $base_path/skel
set var_path $base_path/var
set cleanscript $var_path/clean.sh
# set defaultarch <running host architecture>
@axeliodiaz
axeliodiaz / Install psycopg2
Last active August 29, 2015 14:04
Install psycopg2
# aptitude install libpq-dev python-dev postgresql-server-dev-all
# pip install psycopg2
@axeliodiaz
axeliodiaz / compilar_nss.sh
Last active August 29, 2015 14:06
Compilación de nss y nspr
#!/usr/bin/env shell
mkdir -p ~/public_html/certificados_iceweasel/certificados/
mkdir -p ~/public_html/certificados_iceweasel/paquetes/
cd ~/public_html/certificados_iceweasel/
ARCH="amd64"
COMMAND=`uname -r`
echo "Instalando dependencias necesarias"
if echo "$COMMAND" | grep -q "$SOURCE"; then
@axeliodiaz
axeliodiaz / descargar_certificados.py
Last active August 29, 2015 14:06
Script en python para la descarga de los certificados aprobados por SUSCERTE
#!/usr/lib/python3
import urllib
DIRECCION = "http://acraiz.suscerte.gob.ve/sites/default/files/certificados/"
CERTIFICADOS = [
"CERTIFICADO-RAIZ-SHA384.crt",
"PSCFII-SHA256.crt",
"PSC-PROCERT-SHA256.crt",
]
@axeliodiaz
axeliodiaz / claves.txt
Last active August 29, 2015 14:07
Claves
This file has been truncated, but you can view the full file.
a
aarónica
aarónico
ab
abab
ababillarse
ababol
abacá
abacera
abacería
geany
git
python3
vim
tmux
build-essential
python-dev
python-pip
@axeliodiaz
axeliodiaz / howto_deb_repackage.txt
Last active January 10, 2023 08:36 — forked from shamil/howto_deb_repackage.txt
Howto repackage deb packages
Use folowing steps to repackage dep package:
1: Make dirs
# mkdir extract/DEBIAN build -p
2: Extract deb package
# dpkg-deb -x <package.deb> extract/
3: Extract control-information from a package
# dpkg-deb -e <package.deb> extract/DEBIAN
@axeliodiaz
axeliodiaz / postmirror.sh
Created October 14, 2015 13:23
apt-mirror postscript
for rama in jessie jessie-backports wheezy-backports wheezy ; do
directorio=ftp.debian.org/debian/dists/$rama
ubicacion=/media/mirror/mirror/$directorio
for directory in contrib main non-free; do
cd $ubicacion/$directory
mkdir i18n 2>/dev/null
cd i18n
rm Translation-en*;
@axeliodiaz
axeliodiaz / IndentVim
Created October 26, 2015 14:40
Fix indentation file with vim editor
set expandtab
set autoindent " Indent at the same level of the previous line
set shiftwidth=4 " Use indents of 4 spaces
set expandtab " Tabs are spaces, not tabs
set tabstop=4 " An indentation every four columns
set softtabstop=4 " Let backspace delete indent