Skip to content

Instantly share code, notes, and snippets.

View FredyRosero's full-sized avatar
💭
I may be slow to respond.

Fredy Rosero FredyRosero

💭
I may be slow to respond.
View GitHub Profile
@FredyRosero
FredyRosero / ImportarPythonJupyter.py
Created April 23, 2023 21:46
Importar python en Jupyter desde URL de Google Drive
#@title Importar archivo python
# Obtener archivo python desde la URL
import gdown
fileID='1XON75rGGJIILlUBMJ-De2Bjy0YGaFQXc'
url = f'https://drive.google.com/uc?id={fileID}'
nombreModulo= 'solucionadorPLDosVariables'
nombreArchivo = f'{nombreModulo}.py'
%store nombreArchivo
output = f'/content/{nombreArchivo}'
@FredyRosero
FredyRosero / .uqbar-logo-ascii
Last active June 1, 2023 17:00
Logo de Uqbar UN en ASCII
|\ |\
| \ | \
| \ | \
| \ | /
\ \| /._
_..\ \ /@@@@o...__
@@@@@/ _ T@@@@@@@@
@@@| `*` T@@@@@@ ,-,,-, ___ /-/ ____ _____ ,-,,-,,---,
@@/ d@@@@@ / // // _ // _ `,,=== // ___/ / // // _ /
@ `-____@@@@@@ / // // // // // // // // / / // // // /
[
{
"name": "Yellow",
"munsell_hue": "Y",
"hex": "#FFFF00",
"children": [
{
"name": "Cadmium Yellow Light",
"company": "Liquitex",
@FredyRosero
FredyRosero / imagen-con-piedenota.md
Last active June 28, 2023 17:56
Imagen con piede de nota en Markdown
Linux_Distribution_Timeline
Linux Distribution Timeline. Obtenido de
@FredyRosero
FredyRosero / HTML-summary.json
Created July 14, 2023 03:34
Visual Studio Code Markdown Snippet for HTML Summary
"HTML summary": {
"prefix": "summary",
"body": [
"<details class=info>",
"<summary>Explicación del comando</summary>",
"<div markdown='1'>",
"$1",
"</div>",
"</details>",
],
@FredyRosero
FredyRosero / image+footnote-MD-VS-snippet.json
Created July 14, 2023 03:37
Visual Studio Code Markdown Snippet for Centered Image with footnote
"Centered image with footnote": {
"prefix": "image",
"body": [
"| ![$1]($2) | ",
"| :--: |",
"| $3 |"
],
"description": "Visual Studio Code Markdown Snippet for Centered image with footnote"
},
@FredyRosero
FredyRosero / la-latin.sh
Created August 2, 2023 14:34
Configurar el teclado en español `latin america` en la instalación de Arch Linux
ls /usr/share/kbd/keymaps/**/*.map.gz | grep la-latin
loadkeys la-latin1
@FredyRosero
FredyRosero / nat-masquerade-docker.md
Created August 12, 2023 21:21
Give internet access to a docker container network

If you docker container has no internet connection maybe you docker network neither have it.

  1. Get virtual container bridge name:
network_name=$(docker inspect --format '{{ range $key, $value := .NetworkSettings.Networks }}{{ $key }}{{ end }}' $container)
etwork_id=$(docker network inspect -f {{.Id}} $network_name)
bridge_name="br-${network_id:0:12}"
  1. Obtain IP network address of the virtual bridge:
@FredyRosero
FredyRosero / launch.json
Created October 16, 2023 13:46
XDEBUG en 0.0.0.0:9003 to avoid IPv6 error
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug on Docker",
"type": "php",
"request": "launch",
curl -x socks5h://localhost:9050 -s https://check.torproject.org/api/ip