Skip to content

Instantly share code, notes, and snippets.

View torives's full-sized avatar

Victor Yves Crispim torives

  • Rio de Janeiro, Brazil
  • 03:31 (UTC -03:00)
View GitHub Profile
@torives
torives / Proxmox.md
Created August 26, 2025 19:44 — forked from alimbada/Proxmox.md
Proxmox Cheat Sheet

Migrate a Proxmox VM from SeaBIOS to OVMF (UEFI)

  • Under the VM's Hardware tab, change BIOS from Default (SeaBIOS) to OVMF (UEFI) in the Proxmox web UI
  • Click Add at the top and select EFI Disk. Select a location and click OK.
  • Boot the VM using Boot Repair Disk. Alternatively, boot any live CD and install the Boot Repair tool. Instructions for Ubuntu here: https://help.ubuntu.com/community/Boot-Repair
  • Use Gparted or your favourite partitioning tool to create an EFI partition. Note: You may need to resize your disk and adjust your partition layout.
  • Run the Boot Repair tool and choose the recommended option. Follow the instructions

NB: This works on a disk partitioned using MBR.

@torives
torives / GPG and git on macOS.md
Created June 23, 2023 11:30 — forked from danieleggert/GPG and git on macOS.md
How to set up git to use the GPG Suite

GPG and git on macOS

Setup

No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.

  1. Install https://gpgtools.org -- I'd suggest to do a customized install and deselect GPGMail.
  2. Create or import a key -- see below for https://keybase.io
  3. Run gpg --list-secret-keys and look for sec, use the key ID for the next step
  4. Configure git to use GPG -- replace the key with the one from gpg --list-secret-keys
@torives
torives / gist:6bd84a9ce3da371c4d90688e6d87f976
Created October 4, 2022 17:37 — forked from rais38/gist:5766980
Create patch from stash
git stash show -p stash@{0} > Stash0.patch
@torives
torives / splitlogs.py
Last active January 21, 2022 20:30 — forked from omaraboumrad/splitlogs.py
View docker-compose services logs in split tmux panes
# Requires pyyaml
import os
import yaml
run = os.system
new_window = lambda cmd: run('tmux new-window -n "logs" "{}"'.format(cmd))
split_vertical = lambda cmd: run('tmux split-window "{}"'.format(cmd))
split_horizontal = lambda cmd: run('tmux split-window -h "{}"'.format(cmd))
even_vertical = lambda: run('tmux select-layout even-vertical')
@torives
torives / patch_from_stash.txt
Created December 15, 2020 12:46
Create a Patch from Stash
git stash show -p stash@{0} > stash0.patch
@torives
torives / Convert .mov or .MP4 to .gif.md
Created September 22, 2020 20:18 — forked from SheldonWangRJT/Convert .mov or .MP4 to .gif.md
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.

#!/bin/bash
# Adapted from http://stackoverflow.com/questions/24039470/xcode-6-ios-creating-a-cocoa-touch-framework-architectures-issues/26691080#26691080
# and https://gist.github.com/cromandini/1a9c4aeab27ca84f5d79
# Create a new aggregate target.
# For the automatically generated scheme, change its build config to "release".
# Ensure this target's "product name" build setting matches the framework's.
# Add a run script with `source "${PROJECT_DIR}/path_to_this_script`