Skip to content

Instantly share code, notes, and snippets.

View agatemosu's full-sized avatar
😡
nintendo puta basura

Agatem agatemosu

😡
nintendo puta basura
View GitHub Profile
function Add-Copy {
param (
[Parameter(
Mandatory = $true,
Position = 0,
HelpMessage = "The path of the file to clone."
)]
[ValidateNotNullOrWhiteSpace()]
[string]$OriginalFilePath,
import http.client
import urllib.parse
class Response:
def __init__(self, status: int, reason: str, content: bytes):
self.status = status
self.reason = reason
self.content = content
using System;
using System.Linq;
using System.Text;
public static class Program
{
public static void Main()
{
var listOfProducts = new Product[]
{
import asyncio
from enum import Enum
HOST = "127.0.0.1"
PORT = 62775
class Commands(Enum):
UPDATE = 0
LOGOUT = 1
@agatemosu
agatemosu / selector.cs
Created May 1, 2024 18:34
Easy-peasy options selector for the terminal.
using System;
using System.Collections.Generic;
public static class Program
{
public static void Main()
{
string[] options = [
"option 0",
"option 1",
import requests
from bs4 import BeautifulSoup, Tag
URL = "https://dle.rae.es/"
HEADERS = {"User-Agent": "Mozilla/5.0"}
def get_wotd() -> str:
response = requests.get(URL, headers=HEADERS)
soup = BeautifulSoup(response.text, "html.parser")
param (
[string]$TargetPath,
[string]$ShortcutLocation
)
$shell = New-Object -ComObject WScript.Shell
$shortcut = $shell.CreateShortcut($ShortcutLocation)
$shortcut.TargetPath = $TargetPath
$shortcut.Save()