Skip to content

Instantly share code, notes, and snippets.

@hoyacom
hoyacom / agx_xavier_tips-and-tricks.md
Created June 3, 2022 10:58 — forked from andrewssobral/agx_xavier_tips-and-tricks.md
Tips and Tricks for Jetson AGX Xavier
@hoyacom
hoyacom / purge2.sh
Created November 21, 2021 21:35 — forked from carlessanagustin/purge2.sh
Script to reduce VM size before packaging for Vagrant v.2
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
# - https://gist.github.com/adrienbrault/3775253
## for vagrant related tasks, uncomment vagrant comments
# vagrant: Unmount project
@hoyacom
hoyacom / gist:e80d74218b6c823e01e8e6c68757d385
Created November 6, 2019 05:31 — forked from Manu343726/gist:ca0ceb224ea789415387
Running ARM docker image with QEMU on x86_64 Arch Linux host
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
@hoyacom
hoyacom / Svn2Git.md
Created March 29, 2019 03:24 — forked from ikaruce/Svn2Git.md
SVN에서 Git으로 전환하기(브랜치와 태그 보전하면서)
@hoyacom
hoyacom / process.md
Last active January 10, 2019 02:33
[Process CLI command] 프로세서 명령어 #lsof #ps

8080 포트를 사용하는 프로레서 찾기

 lsof -i tcp:8080

8080 포트를 사용하는 프로세서 죽이기

kill $(lsof -t -i:8080)

@hoyacom
hoyacom / clients.md
Created January 8, 2019 18:07 — forked from defunkt/clients.md
A list of Gist clients.

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@hoyacom
hoyacom / qemu_osx_rpi_raspbian_jessie.sh
Created January 6, 2019 14:53 — forked from hfreire/qemu_osx_rpi_raspbian_jessie.sh
How to emulate a Raspberry Pi (Raspbian Jessie) on Mac OSX (El Capitan)
# Install QEMU OSX port with ARM support
sudo port install qemu +target_arm
export QEMU=$(which qemu-system-arm)
# Dowload kernel and export location
curl -OL \
https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie
export RPI_KERNEL=./kernel-qemu-4.1.7-jessie
# Download filesystem and export location
@hoyacom
hoyacom / README.md
Created December 28, 2018 11:44 — forked from dergachev/README.md
Vagrant tutorial

Vagrant Setup

This tutorial guides you through creating your first Vagrant project.

We start with a generic Ubuntu VM, and use the Chef provisioning tool to:

  • install packages for vim, git
  • create user accounts, as specified in included JSON config files
  • install specified user dotfiles (.bashrc, .vimrc, etc) from a git repository

Afterwards, we'll see how easy it is to package our newly provisioned VM

@hoyacom
hoyacom / Vagrantfile
Created December 19, 2018 06:19 — forked from roblayton/Vagrantfile
A Vagrant multi-machine cluster using a loop
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
cluster = {
"master" => { :ip => "192.168.33.10", :cpus => 1, :mem => 1024 },
"slave" => { :ip => "192.168.33.11", :cpus => 1, :mem => 1024 }
}
/*
* Copyright 2002-2010 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software