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
  • 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
@Marzogh
Marzogh / bitmanipulation.cpp
Last active April 19, 2018 07:15
A list of macros that can be used to carry out bit manipulation
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Bit manipulation macros //
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
//Extract bytes from integers, floats & doubles
#define Lo(param) ((char *)&param)[0] //0x000y
#define Hi(param) ((char *)&param)[1] //0x00y0
#define Higher(param) ((char *)&param)[2] //0x0y00
#define Highest(param) ((char *)&param)[3] //0xy000