Skip to content

Instantly share code, notes, and snippets.

View artmen1516's full-sized avatar
🌌
Working from home

Arturo Mendivil artmen1516

🌌
Working from home
View GitHub Profile
@artmen1516
artmen1516 / README.md
Last active October 12, 2023 03:58
Using Chatbots (GPT or LLMs) from Hugging face

Using Chatbots (GPT or LLMs) from Hugging face

This is an example of how to use chatbots programmatically without needing a token or api key to get a response from the LLM. This is only restricted to the owner of the chatbot, if the owner shutdown the project we won't be able to get a reponse.

How does this work?

Hugging face can host data science projects that uses models and Gradio as interface, this is hosted in something known as 'space' in hugging face, a project owner can turn on or off his project and decide to make it public or private, huggingface have a free quota for computing usage.

Gradio applications provide an integrated api, to control the app programmatically, it can be used in Python or JS Gradio Client Docs

Microsoft office activator 365 and 2016 for Free

Instructions Downloading the file:

  1. Download the file
  2. Run as administrator
  3. ThatΒ΄s it

Instructions Copying the text

  1. Copy text as it is
  2. Create a new txt file
@artmen1516
artmen1516 / bashstyle.md
Created January 24, 2023 00:31 β€” forked from outro56/bashstyle.md
Bash scripting best practices (copied from https://github.com/progrium/bashstyle/blob/master/README.md)

progrium/bashstyle

Bash is the JavaScript of systems programming. Although in some cases it's better to use a systems language like C or Go, Bash is an ideal systems language for smaller POSIX-oriented or command line tasks. Here's three quick reasons why:

  • It's everywhere. Like JavaScript for the web, Bash is already there ready for systems programming.
  • It's neutral. Unlike Ruby, Python, JavaScript, or PHP, Bash offends equally across all communities. ;)
  • It's made to be glue. Write complex parts in C or Go (or whatever!), and glue them together with Bash.

This document is how I write Bash and how I'd like collaborators to write Bash with me in my open source projects. It's based on a lot of experience and time collecting best practices. Most of them come from these two articles, but here integrated, slightly modified, and focusing on the most bang for buck items. Plus some ne

@artmen1516
artmen1516 / README.md
Last active December 5, 2022 08:40
How to install ZSH and OH-MY-ZSH in Windows 10

How to install ZSH and OH-MY-ZSH in Windows 10

Tutorial from: https://platzi.com/blog/como-instalar-zsh-en-windows/

  1. Enable developer mode

    • Go to this path Settings -> Update&Security -> For Developers
    • Click yes on the pop-up message
    • Reboot PC
  2. Enable Windows Linux Subsystem

@artmen1516
artmen1516 / README.md
Last active December 5, 2022 08:34
Update dynamic github badges with gists

How to Add Dynamic GitHub Badges from Gists

Shield IO dynamic Badges

https://shields.io/

  1. Create json, yaml, or xml file.
  2. Add keys and values to your file.
  3. Go to shields.io and then to Dynamic section.
  4. Use your gist URL in data url field.
  5. Fill query field with the values you want to retrieve.
  6. Click Make Badge button.
@artmen1516
artmen1516 / images.md
Last active November 24, 2022 20:22
Store images in GitHub Gists

How to store images in GitHub Gists.

Steps

  1. Create a Gist where you are going to store the links to your images.
  2. Create a text file or markdown file to place your links.
  3. Comment in your created gist and drag you image to your comment section.
  4. You'll see something like this ![image-name](https://image-link.jpeg).
  5. Copy it, close the edit comment section, and paste it in the Gist file for your images.
  6. You can change markdown notation to html: < img src="image-name.jpg" alt="image-name" width="500" height="500">
@artmen1516
artmen1516 / dalia_flower.ipynb
Last active August 12, 2022 02:38
dahlia_flower.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@artmen1516
artmen1516 / huaweiDecrypt.py
Created August 7, 2022 20:55 β€” forked from staaldraad/huaweiDecrypt.py
Decrypt Huawei router/firewall passwords. Huawei stores passwords using DES encryption when the crypted option is enabled.
#!/usr/bin/python
"""
Simple tool to extract local users and passwords from most Huawei routers/firewalls config files.
Will extract plain-text passwords and crypted credentials. Huawei config files use DES encryption with
a known key. Using this information, the script will decrypt credentials found in the config file.
Author: Etienne Stalmans (etienne@sensepost.com)
Version: 1.0 (12/01/2014)
"""
from Crypto.Cipher import DES
@artmen1516
artmen1516 / multiple_ssh_setting.md
Created March 3, 2022 19:34 β€” forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"