Skip to content

Instantly share code, notes, and snippets.

View Marzogh's full-sized avatar
🏔️
Off the grid - as much as possible

Marzogh Marzogh

🏔️
Off the grid - as much as possible
View GitHub Profile
@Marzogh
Marzogh / TypeClipboard.md
Created March 15, 2025 03:49 — forked from ethack/TypeClipboard.md
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

  • Convert from pdf to ppng

Make sure sips (scriptable image processing system) is installed - usually by default. Only wiorks on first page of pdf Replace png with jpeg to use that format

sips -s format png your_pdf_file.pdf --out your_png_file.png

@Marzogh
Marzogh / 7300_wsjtx.md
Created April 29, 2024 05:56 — forked from edmondburnett/7300_wsjtx.md
Icom IC-7300 WSJT-X FT8 Settings

IC-7300 digital modes/FT8 setup

WSJT-X Radio tab

  • Serial Port: /dev/cu.SLAB_USBtoUART
  • Baud Rate: 115200
  • Data Bits: Eight
  • Stop Bits: Two
  • Handshake: None
@Marzogh
Marzogh / polair42.md
Created March 26, 2024 13:54 — forked from tonymorris/polair42.md
Polair42

Brisbane Police Helicopter

What is the helicopter's registration?

VH-NVK typically on squawk code 0042

What model is the helicopter?

It is a Eurocopter BO-105.

@Marzogh
Marzogh / imgur2pdf.py
Last active April 22, 2023 08:09 — forked from dword4/imgur2pdf.py
Convert imgur album to a pdf file
#!/usr/bin/python
from imgurpython import ImgurClient
client_id = 'YOUR_CLIENT_ID'
client_secret = 'YOUR_CLIENT_SECRET'
from PIL import Image
from creds import *
import PIL
from reportlab.pdfgen import canvas
from reportlab.platypus import SimpleDocTemplate, Paragraph, Image, Spacer, PageBreak
@Marzogh
Marzogh / List of TFT Color codes.md
Last active March 21, 2021 08:14
Color codes for TFT screens with software to convert 24 bit color codes to 16bit one and viceversa

Color codes for TFT screens with software to convert 24 bit color codes to 16bit one and viceversa

@Marzogh
Marzogh / Timezone to Epoch.md
Last active March 20, 2021 11:55
Timezone list / Timezone to Epoch converter

The 'Converted timestamp' column shows the time for Unix timestamp 1616239800 (Mar 20 2021 11:30:00 UTC/GMT).

Daylight Saving Times (DST)

To convert from normal/standard time to daylight saving time add 1 hour ( or +3600 seconds ). For example: Eastern Standard Time = GMT-5, add 1 hour: Eastern Daylight Time = GMT-4

Region (time zone) Converted timestamp 1616239800 Relative to UTC/GMT Date in DST Offset In seconds
Africa
@Marzogh
Marzogh / getWinProdKey.vbs
Created July 19, 2019 11:58
Run this on Windows to get your product key
Set WshShell = CreateObject("WScript.Shell")
MsgBox ConvertToKey(WshShell.RegRead("HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId"))
Function ConvertToKey(Key)
Const KeyOffset = 52
i = 28
Chars = "BCDFGHJKMPQRTVWXY2346789"
Do
Cur = 0
x = 14
@Marzogh
Marzogh / Himawari8 earth imagery downloader.md
Created July 17, 2019 03:57
Various apps to download Himawari8 satellite's earth imagery

awesome-himawari8

This is a collection of a bunch of implementations of himawari8 live earth desktop in many languages.

The weather satellite Himawari8 posts its view of earth in every ten minutes. Therefore it is often used by the community to build live earth desktop scripts on. It is intersting to see how every implement the script in their favorite language. Also by comparing these scripts, similarities and differences between language can be found.

Among the list not only are there languages normally used for such task like Python and Ruby, but also Java, Haskel, Go, C#, Javascript(CoffesSript) and even Matlab.

Python

@Marzogh
Marzogh / Sync GitHub, Gitlab and BitBucket.md
Last active June 5, 2018 03:56 — forked from MoOx/README.md
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
title tags authors
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily
git
github
gitlab
bitbucket
MoOx