Skip to content

Instantly share code, notes, and snippets.

View shakahl's full-sized avatar
:electron:

Soma Szelpal shakahl

:electron:
View GitHub Profile
@farisc0de
farisc0de / ChatGPT Roles.md
Created July 6, 2024 16:52
ChatGPT Roles

IT Expert:

I would like you to assist me as an IT expert, I will provide all the relevant information needed to solve the technical problem and your task is to assist me in solving the problem. Your task is to assist me in solving the problem. Please use your expertise in project management and agile development to develop a solution. When responding, it would be extremely helpful if you could use language that is easy to understand, suitable for different levels of understanding, and step-by-step by key points. I prefer to get a solution straight away rather than a lengthy explanation unless I explicitly ask for it.

Business Email Writer:

You are a Business email writing expert specializing in business emails in English, covering areas such as business cooperation and business authorization. Possesses extensive experience in business communication, ensuring precise grasp of email tone and format to ensure clear and professional information delivery.

DevOps Specialist:

@shakahl
shakahl / ConvertTo-PSClass
Created July 5, 2024 23:14 — forked from jdhitsolutions/ConvertTo-PSClass
A PowerShell function to convert an object instance into a PowerShell class definition.
Function ConvertTo-PSClass {
[cmdletbinding()]
[outputType([String])]
Param(
[Parameter(Position = 0, Mandatory, ValueFromPipeline)]
[ValidateNotNullOrEmpty()]
[object]$InputObject,
[Parameter(Mandatory, HelpMessage = "Enter the name of your new class")]
[ValidatePattern("^\w+$")]
[string]$Name,
@shakahl
shakahl / Find-GitRepository.ps1
Created June 4, 2024 19:17 — forked from jdhitsolutions/Find-GitRepository.ps1
Use this PowerShell function to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
Function Find-GitRepository {
<#
.SYNOPSIS
Find Git repositories
.DESCRIPTION
Use this command to find Git repositories in the specified folder. It is assumed that you have the Git command line tools already installed.
.PARAMETER Path
The top level path to search.
@shakahl
shakahl / emojis.sh
Created March 27, 2024 20:56 — forked from BuonOmo/emojis.sh
A list of all UTF-8 emojis in bash or zsh
# Obtained with the code written in next file
emoji_grinning_face=😀
emoji_grinning_face_with_big_eyes=😃
emoji_grinning_face_with_smiling_eyes=😄
emoji_beaming_face_with_smiling_eyes=😁
emoji_grinning_squinting_face=😆
emoji_grinning_face_with_sweat=😅
emoji_rolling_on_the_floor_laughing=🤣
emoji_face_with_tears_of_joy=😂
emoji_slightly_smiling_face=🙂
@jdhitsolutions
jdhitsolutions / PSRefresh.ps1
Last active September 20, 2024 02:17
Refresh a new Windows PowerShell Installation.
#requires -version 5.1
#requires -RunAsAdministrator
#PSRefresh.ps1
<#
Update key PowerShell components on a new Windows 10/11 installation.
This script is not intended for server operating systems. The script
should be run in an interactive console session and not in a remoting session.
@ryanrudolfoba
ryanrudolfoba / SteamOS-Recovery-Downloader-and-Flasher.sh
Created January 9, 2024 21:04
Script for SteamOS to easily download and flash the latest SteamOS Recovery Image to a USB device
#!/bin/bash
# SteamOS Recovery Downloader and Flasher
# script by ryanrudolf
# https://github.com/ryanrudolfoba
# https://youtube.com/@10minutesteamdeckgamer
#
# script will create the directory - ~/SteamOS-Recovery-Downloader and automatically download the latest SteamOS Recovery Image.
# script will perform a md5 check to make sure that download is not corrupted and finally flash the image to the USB device.
# if there are multiple USB devices, the script will exit immediately. Plug in a single USB device that you want to flash and re-run the script.
#
@shakahl
shakahl / README.md
Created January 6, 2024 22:15 — forked from roachhd/README.md
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@jdhitsolutions
jdhitsolutions / 1. PSUGInnSalzach
Last active July 5, 2024 23:14
Presentation material for PSUGInnSalzach 9 Nov 2023
return "This is a demo script file."
#demo.ps1
#about me
https://jdhitsolutions.github.io
#Module layout
psedit c:\scripts\new-project.ps1
. c:\scripts\new-project.ps1
Help New-PSProject
@shakahl
shakahl / download-github-private-asset.ps1
Created October 25, 2023 04:51 — forked from sonibla/download-github-private-asset.ps1
Download assets from private Github releases using PowerShell
$credentials="<github_access_token>"
$repo = "<user_or_org>/<repo_name>"
$file = "<name_of_asset_file>"
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Authorization", "token $credentials")
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
$id = ((Invoke-WebRequest $releases -Headers $headers | ConvertFrom-Json)[0].assets | where { $_.name -eq $file })[0].id
@gtello
gtello / README.md
Created August 24, 2023 15:53
Guide to Installing Arch Linux on a USB Drive with Persistence

Guide to Installing Arch Linux on a USB Drive with Persistence

On an Arch machine, run: sudo pacman -S arch-install-scripts to have the commands to install the OS into the USB

Run the following as root

Make sure USB is NOT mounted and format it

wipefs -a /dev/sdX where X is the assigned letter your USB is mounted on

fdisk /dev/sdX