Skip to content

Instantly share code, notes, and snippets.

View tzmartin's full-sized avatar
🏴‍☠️
ahoy!

tz ✨ tzmartin

🏴‍☠️
ahoy!
View GitHub Profile
@tzmartin
tzmartin / embedded-file-viewer.md
Last active April 22, 2024 19:39
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@tzmartin
tzmartin / m3u8-to-mp4.md
Last active April 16, 2024 22:32
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
@tzmartin
tzmartin / ios.settings.schemes.md
Created January 13, 2016 18:27
iOS Settings URL Scheme List

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness
@tzmartin
tzmartin / Info.plist
Created June 24, 2017 19:31 — forked from nathankerr/Info.plist
Registering a Go app as a protocol handler under Mac OS X
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>myapp</string>
<key>CFBundleIdentifier</key>
<string>com.pocketgophers.myapp</string>
<key>CFBundleURLTypes</key>
<array>
@tzmartin
tzmartin / show-hn.md
Created August 8, 2020 18:01
How to Submit a Show HN

How to Submit a "Show HN"

If you're sharing your own work and there's a way to try it out, put "Show HN" in the title. Make sure you've read the Show HN guidelines: https://news.ycombinator.com/showhn.html.

Posts without URLs get penalized, so when you submit, put your site in the URL field and leave the text field blank.

Add a comment to the thread giving the backstory of how you came to work on this, and explaining what's different about it. That tends to seed discussion in a good direction.

Include a clear statement of what your project is or does. If you don't, the discussion will consist of "I can't tell what this is". >

@tzmartin
tzmartin / ipsw.decrypt.md
Created January 12, 2016 17:55
Decrypting ipsw firmware files
@tzmartin
tzmartin / titanium.windows7.debug.txt
Created July 17, 2012 17:40
Titanium Windows 7 installation helper notes..
* These are personal notes taken from various training events for debugging Windows 7 installation...
----------------
1. Uninstall McAfee. Stop ALL McAfee services (services.msc)
2. Verify Internet access.
Add proxy for downloading (optional)
proxy.cognizant.com 6050
3. Install Java JDK v1.6.x (1.7 is not supported)
4. Move Android SDK to
@tzmartin
tzmartin / usdz-to-glb.md
Last active August 9, 2023 05:29
Convert USDZ to GLB via Python

Convert USDZ to GLB (python)

Install

pip install aspose-3d

Run

@tzmartin
tzmartin / health-records.md
Created March 19, 2019 12:43
Health Record Trends

Research

Trends

@tzmartin
tzmartin / how-to-do-software-engineering-contracts.md
Created January 25, 2022 00:55
How to do software engineering contracts

Source

How to do software engineering contracts

Introduction

Software projects have a notorious reputation of being later than expected, more expensive than estimated and sometimes not even functional.

If you are like me, you are in this field because you want to create great new things. Things that improve lives.