Skip to content

Instantly share code, notes, and snippets.

View davidmartinez10's full-sized avatar

David E. Martínez davidmartinez10

  • Buenos Aires
View GitHub Profile
@bhardwaj-varun
bhardwaj-varun / samba config
Last active October 2, 2025 14:28
Samba on Linux setup | Read Write access for IOS (Iphone and Ipad)
# Arch linux samba setup guid
1. sudo pacman -Sy samba
2. copy attached file at /etc/samba/smb.conf
3. Edit config file
a. In global section add following lines
# ios based config
fruit:nfs_aces = no
fruit:aapl = yes
@idleberg
idleberg / vscode-macos-context-menu.md
Last active March 2, 2026 16:19
“Open in Visual Studio Code” in macOS context-menu

Open in Visual Studio Code

  • Open Automator
  • Create a new document
  • Select Quick Action
  • Set “Service receives selected” to files or folders in any application
  • Add a Run Shell Script action
    • your default shell should already be selected, otherwise use /bin/zsh for macOS 10.15 (”Catalina”) or later
    • older versions of macOS use /bin/bash
  • if you're using something else, you probably know what to do 😉
@skirmess
skirmess / windows-10-pro-smartos-bhyve.md
Last active October 9, 2025 23:32
Windows 10 Pro Image for SmartOS Bhyve

Windows 10 Pro

Windows 10 Pro ISO

Create a fresh Windows 10 Pro ISO file with Microsofts Media Creation Tool. (I created a Windows 10 Pro 64 bit German ISO image)

Save the created image on your SmartOS global zone.

cp ... /zones/Windows10_64de.iso
@achembarpu
achembarpu / blue.md
Last active May 17, 2023 01:45
AptX & AAC on MacOS Bluetooth

AptX & AAC on MacOS Bluetooth

AptX works on Catalina (10.15.4), tested with the Sony WH-1000XM3.

  1. Run the following commands in terminal: (Bluetooth Explorer is no longer needed)
sudo defaults write bluetoothaudiod "Enable AptX codec" -bool true
sudo defaults write bluetoothaudiod "Enable AAC codec" -bool true
  1. Reboot both your system and headphones.
@RubenFlorissen
RubenFlorissen / barebone_install.ps1
Last active August 31, 2024 10:45
PowerShell Script For Barebone Windows Install
# Feel free to copy anything from this script!
# Run this as an ADMIN!
# Needed for Chocolately install
# If the script gives you any errors, it's likely that you haven't set the ExecutionPolicy to Unrestricted. Run the code below to do this.
# Set-ExecutionPolicy Unrestricted
# Please note that this is not secure, this will result in the possibility that malicious programs can freely execute PowerShell scripts on the computer. Set this flag to: Set-ExecutionPolicy Restricted, after running this script!
# Install Chocolately
@dvf
dvf / change-codec.md
Last active March 4, 2026 11:57
Enable High Quality mode on your headphones (Updated for macOS Catalina)

If you're using a high-end bluetooth headset on your Macbook Pro it's likely your mac is using an audio codec which favors battery efficiency over high quality. This results in a drastic degradation of sound, the SBC codec is the likely culprit, read more about it here.

Find out what codec you're using

  1. Play a song on your headphones
  2. Option (⌥) click the Bluetooth button at the top of your screen Inspect the Bluetooth Coded
  3. If you're using AAC or aptX, you can stop here—those are the highest quality codecs.

Change your codec to AAC or aptX

@harishkannarao
harishkannarao / youtube-dl.md
Last active March 11, 2024 10:23
youtube-dl

youtube-dl

youtube-dl is an opensource command line tool to download video or audio from online video streaming services.

Videos downloaded in mkv or webm extensions can be played by VLC Media player in all major devices and operating systems including iPhone, Android devices.

Tool website: https://youtube-dl.org/

This gist shows the example commands to use the tool and doesn't support or encourage piracy or violation of copyrights of the online streaming service or the author of the content

Installing youtube-dl:

@rjloura
rjloura / config_files.md
Last active September 18, 2025 05:37
smartos config files

All config data loader shell functions are implemented in smartos-live:overlay/generic/lib/sdc/config.sh

System Config:

  • Sources (one of the following):
    • /mnt/usbkey/config
    • /opt/smartdc/config/node.config
    • /var/tmp/node.config/node.config
    • /usbkey/config
  • Loader: load_sdc_config()
  • ([rui] this seems to do nothing on a CN boot as it never finds one of the files above)
@asksven
asksven / unison.md
Last active October 17, 2024 10:49
Configure unison for continuous sync

Configure unison for bi-directional sync

1. On client

  1. Create a profile (~/.unison/bidirsync.prf):
# Unison preferences
label = bi-directonal sync with server
root = /home/<user>/git
root = ssh://<user>@<server-name>//home/<user>/sync/git
sshargs = -oIdentityFile=/home/<user>/.ssh/<privkey-name>
@atlury
atlury / ffmpeg-desktop-livestreaming-nvenc-and netcat.md
Created September 6, 2016 16:57 — forked from Brainiarc7/ffmpeg-desktop-livestreaming-nvenc-and netcat.md
This gist will show you how to livestream your desktop to a client via FFMpeg using a GPU-accelerated video encoder (NVENC and VAAPI-based)

Low-Latency Live Streaming for your Desktop using ffmpeg and netcat

Preamble:

In this post I will explore how to stream a video and audio capture from one computer to another using ffmpeg and netcat, with a latency below 100ms, which is good enough for presentations and general purpose remote display tasks on a local network.

The problem: