Skip to content

Instantly share code, notes, and snippets.

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

Reinier Hernández ragnarok22

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ragnarok22 on github.
  • I am ragnarok22 (https://keybase.io/ragnarok22) on keybase.
  • I have a public key whose fingerprint is ED67 71E0 58A1 FEEB E6A7 125F 2734 2BCD EEC2 FC48

To claim this, I am signing this object:

@ragnarok22
ragnarok22 / setproxy.sh
Created January 26, 2022 15:02
Set system proxy in Linux
#!/bin/bash
# CONSTANTS
# In case your proxy is without user and password just replace this line with
# HTTP:_PROXY="http://host:port"
# host is the proxy host. Ex: proxy.example.com or 192.168.1.50
# port is the proxy port. Ex: 3128 or 8080
HTTP_PROXY="http://user:password@host:port"
HTTPS_PROXY=$HTTP_PROXY
@ragnarok22
ragnarok22 / anagrams.py
Created November 1, 2022 16:59
Determine if two words are anagrams
def is_anagram(word1: str, word2: str) -> bool:
"""Determine if two words are anagram
:param word1: word to check if is an anagram
:param word2: word to check if is an anagram
:return: True whether the words are anagram or False otherwise
"""
if word1 == word2:
return True
elif len(word1) != len(word2):
@ragnarok22
ragnarok22 / keybase.md
Created February 3, 2025 12:55
Keybase proof

Keybase proof

I hereby claim:

  • I am ragnarok22 on github.
  • I am ragnarok22 (https://keybase.io/ragnarok22) on keybase.
  • I have a public key whose fingerprint is 1ECA E24B 4B4B E197 6F12 62E1 0B11 9770 5EDE 18F6

To claim this, I am signing this object: