Skip to content

Instantly share code, notes, and snippets.

View user0able's full-sized avatar
🏠
Working from home

Hernán Fontánez user0able

🏠
Working from home
View GitHub Profile

Load Nerd Fonts and Powerlevel9k script

Once you have set up your prompt sections and custom segment in your zshrc, you then need to set Powerlevel9k to use Nerd Fonts and load the theme’s script.

Load Nerd Fonts with Powerlevel9k theme for Zsh

  
POWERLEVEL9K_MODE='nerdfont-complete'
source ~/powerlevel9k/powerlevel9k.zsh-theme
import ftplib
import csv
import pandas as pd
from credentials import (
HOST,
USER,
PASSWORD,
ROUTE
)
@user0able
user0able / download_delete_files.py
Last active October 28, 2023 20:09
Utilizando FTP=> recorre los archivos de una carpeta, los descarga, y los elimina
import ftplib
try:
from credentials import USER, PASSWORD, HOST, ROUTE
except ModuleNotFoundError:
USER = 'xxx'
PASSWORD = 'xxx'
HOST = '207.38.86.xx'
ROUTE = 'temporal'
import ftplib
import time
USER = 'xxx'
PASSWORD = 'xxx'
HOST = '207.38.86.xx'
ROUTE = 'temporal'
def ftp_connect(HOST, USER, PASSWORD, ROUTE):
@user0able
user0able / index.html
Created September 24, 2021 15:37
NoDisponible
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>Lo sentimos, esta página no se encuentra disponible</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap" rel="stylesheet">
</head>
<style>
@user0able
user0able / file.json
Last active July 28, 2023 00:49
trello.json
{
"id": "64c1c7fdeff5f9367ba206f7",
"nodeId": "ari:cloud:trello::board/workspace/60c9a5d184f9ce7f7be5fe1b/64c1c7fdeff5f9367ba206f7",
"name": "Tesis",
"desc": "",
"descData": null,
"closed": false,
"dateClosed": null,
"idOrganization": "60c9a5d184f9ce7f7be5fe1b",
"idEnterprise": null,
@user0able
user0able / rutificador.py
Last active October 28, 2023 20:09
extrae rutificador
import requests
import sqlite3
from bs4 import BeautifulSoup
from requests_toolbelt.multipart.encoder import MultipartEncoder
CONN = sqlite3.connect('personas.db')
c = CONN.cursor()
c.execute('''
CREATE TABLE IF NOT EXISTS personas (
id INTEGER PRIMARY KEY AUTOINCREMENT,