Skip to content

Instantly share code, notes, and snippets.

View Furao's full-sized avatar

Robbie VanVossen Furao

  • DornerWorks
  • Grand Rapids, MI
View GitHub Profile
@Furao
Furao / combo.py
Created September 1, 2011 21:35
Prevent a Combobox from scrolling in PyGTK
def combo_scrolling(combobox, event):
"""Prevent the comboboxes from scrolling."""
combobox.emit_stop_by_name("scroll-event")
values = ['item 1', 'item 2', 'item 3']
combo = gtk.combo_box_new_text()
# Fill with part type options
for val in values:
@Furao
Furao / MoveGitSubDirToRepo.sh
Last active September 27, 2015 17:18
Useful git commands I always need to look up.
# Move a subdirectory from 1 repository to another
# Source Repo
git clone <git repository A url>
cd <git repository A directory>
git remote rm origin
git filter-branch --subdirectory-filter <directory 1> -- --all
mkdir <directory 1>
git mv <directory 1 contents> <directory 1>
git commit
@Furao
Furao / excelhandler.py
Created November 7, 2011 18:36
Safely handle excel instances in windows
import win32com.client as win32
file_path = 'C:\\File.xlsx'
already_open = False
# Open excel application and template workbook
xl = win32.gencache.EnsureDispatch("Excel.Application")
# Check to see if a workbook is already open
if len(xl.Workbooks) > 0:
@Furao
Furao / quotes.tex
Last active December 15, 2015 20:40
Display double quotes correctly with latex
\usepackage [english]{babel}
\usepackage [autostyle, english = american]{csquotes}
\MakeOuterQuote{"}
@Furao
Furao / rmBadDriveFiles.sh
Created December 21, 2013 03:49
One liner to remove files I don't want on my hard drive.
find <root_dir> -name "._*" -exec rm '{}' \; -print
@Furao
Furao / showdown.txt
Last active January 2, 2016 12:49
Pokemon Showdown Teams
=== [xybattlespotdoubles] Poison Tree Frog ===
Politoed @ Damp Rock
Ability: Drizzle
EVs: 252 HP / 220 Def / 36 SDef
Bold Nature
- Ice Beam
- Protect
- Scald
- Toxic
@Furao
Furao / gitlab_process.md
Created June 4, 2014 16:47
DO-178C gitlab process

Use Case: I need to add some new requirements.

  • Create a new branch and add all of my requirements
  • Make a pull request to master
  • All of the new requirements are easily shown in the gitlab pull request
  • Reviewers would add their comments in gitlab to specific lines.
  • Developers would be able to comment back and forth in the comment section of the pull request and then make fixes
  • Reviewers can then verify once a fix has been made (Add a new comment to the line saying it is fixed?)
  • All changes have been accepted so the branch is merged into master
@Furao
Furao / gist:d687b3a54514bfcd5766
Created June 24, 2015 19:42
Create Pretty PDF from sublime
Use Sublime Text Package Installer
ctrl+shift+p -> Package Control: Install Package -> Markdown Preview
Once its installed, have your current tab be your markdown file you want to parse
ctrl+shift+p -> Markdown Preview: Preview in Browser -> github
This should open up in your browser. Now print, but save as pdf.
@Furao
Furao / .zshrc
Last active June 17, 2019 17:03
My zshrc config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/robertvanvossen/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@Furao
Furao / sut.its
Created May 24, 2024 13:52
Linux FIT image
/dts-v1/;
/ {
description = "zcu102 FIT Image";
#address-cells = <1>;
images {
kernel {
description = "Kernel";
data = /incbin/("Image");