Skip to content

Instantly share code, notes, and snippets.

View s7nio's full-sized avatar

Sebastian Steiner s7nio

View GitHub Profile

Erase/Formating a Disk/Volume from Terminal/Command Line in Mac OS X

diskutil eraseDisk FILE_SYSTEM DISK_NAME_GOES_HERE /dev/DiskNodeIdentifider diskutil eraseVolume FILE_SYSTEM VOLUME_NAME_GOES_HERE /dev/DiskNodeIdentifider

File system:

  • JHFS+ - Mac OS Extended Journaled
  • HFS+ - Mac OS Extended
  • FAT32 - MS-DOS
  • ExFAT - ExFAT
@s7nio
s7nio / workshop-leitfaden-template.md
Created June 16, 2020 15:10
Workshop-Leitfaden-Template
Von Bis Dauer Methode Material Fragestellung Ziel Wer
Please be nice to the team!
Person type: "Team", "Angel", "Student", ...
Name / nick: ...
Event name + year
Feedback URL (QR code)
- general, speaker
WiFi login
Conference URL
Conference agenda
Social (twitter) #tag

MAC DEV PROXY

https://www.charlesproxy.com/

Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet.

freebsd ntpd leapseconds file expired

rc.conf

ntpd_enable="YES"
ntpd_sync_on_start="YES"

boot log message

@s7nio
s7nio / youtube-transcript
Last active March 6, 2018 00:03
extract youtube caption
Replace <YOUTUBE_ID>
## txt format
http://diycaptions.com/php/get-automatic-captions-as-txt.php?id=<YOUTUBE_ID>
## srt format
http://diycaptions.com/php/get-automatic-captions-as-srt.php?id=<YOUTUBE_ID>
## srt, translated subtitles, audio and video
http://www.yousubtitles.com/load/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D<YOUTUBE_ID>&ch=1
sudo mdutil -E /
# external device
sudo mdutil -E /Volumes/External/
# explicit files
mdimport /path/to/file