Skip to content

Instantly share code, notes, and snippets.

View Mr-Fox-h's full-sized avatar
🦊
IT Developer

Mr-Fox-h Mr-Fox-h

🦊
IT Developer
View GitHub Profile
@Mr-Fox-h
Mr-Fox-h / caesar-cipher.rb
Created January 16, 2024 08:17
caesar-cipher for the odin project
require "pry-byebug"
def caesar_cipher(string_text, num)
content_split = string_text.downcase.split("")
content_ascii = []
content_split.each do |target|
target.each_byte { |char| content_ascii << char }
end
@Mr-Fox-h
Mr-Fox-h / Backup.py
Last active September 24, 2022 07:03
Backup system for linux with Python
import os
from os import walk
import shutil
from distutils.dir_util import copy_tree
### Backup WIFI Password On Linux ###
files = os.listdir("/etc/NetworkManager/system-connections/")
os.mkdir("Backup")
os.mkdir("Backup/WIFI_PASS")
num = 1
@Mr-Fox-h
Mr-Fox-h / Backup.rb
Created September 24, 2022 07:00
Backup system for linux with Ruby
require 'fileutils'
### Backup WIFI Password On Linux ###
files = Dir.entries('/etc/NetworkManager/system-connections/').select do |f|
File.file? File.join('/etc/NetworkManager/system-connections/', f)
end
Dir.mkdir('Backup')
Dir.mkdir('Backup/WIFI_PASS')
num = 1
files.each do |line|
@Mr-Fox-h
Mr-Fox-h / Random_Password.py
Created January 11, 2022 13:18
Make random password in Python
import random
from typing import Counter
"""
Make random password in python
You can make password Whatever you want!
"""
Lower_C = "abcdefghijklmnopqrstuvwxyz"
Upper_C = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"