Skip to content

Instantly share code, notes, and snippets.

View gwarf's full-sized avatar
🌄
Hanging around

Baptiste Grenier gwarf

🌄
Hanging around
View GitHub Profile
@gwarf
gwarf / .cvimrc
Last active September 5, 2017 13:19
cvim configuration file
" cvim configuration
" Use local configuration
let configpath = "/home/baptiste/.cvimrc"
set localconfig
let homedirectory = "/home/baptiste"
" Hint configuration
let hintcharacters = "asdfghjkl;"
set nodimhintcharacters
@gwarf
gwarf / .surfingkeys.js
Last active September 8, 2017 15:14
.surfingkeys.js
// https://brookhong.github.io/2015/09/15/surfingkeys.html
// version 2.0
// align then hint to the right
settings.hintAlign = "left";
// hint characters
Hints.characters = "asdfghjkl;";
// intercept all error pages so Surfing keys can work on them
# Copyright 2014-2015 Joe Block <[email protected]>
#
# 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
# distributed under the License is distributed on an "AS IS" BASIS,
@gwarf
gwarf / sample.cloud-info-conf.yaml
Last active June 1, 2018 13:05
cloud-info-provider glue 2.1 on steroids for message queue
site:
# Your site name, as in GODCB (if omitted or set to None, this value is
# retreived from /etc/glite-info-static/site/site.cfg )
name: SITE_NAME
compute:
# Total number of cores available
total_cores: 42
# Total RAM available (GB)
total_ram: 42
@gwarf
gwarf / squash-commits.md
Created August 30, 2018 10:40 — forked from longtimeago/squash-commits.md
How to squash commits in a GitHub pull request

How to squash commits in a GitHub pull request

o you've contributed some code to an open source project, say, Rails. And they'd like you to squash all of the commits in your pull request. But you're not a git wizard; how do you make this happen?

Normally, you'd do something like this. I'm assuming upstream is a git remote that is pointing at the official project repository, and that your changes are in your 'omgpull' branch:

@gwarf
gwarf / MacOSX_setup.md
Last active October 10, 2022 07:17
MacOSX_setup

Setup Mac OS X

Homebrew

Install additional tools usikng homebrew.

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Keybase proof

I hereby claim:

  • I am gwarf on github.
  • I am gwarf (https://keybase.io/gwarf) on keybase.
  • I have a public key ASDP0gIMQIMA6rzuaS5XaCyP2rE2L3ODxUNRzsA34pI5CQo

To claim this, I am signing this object:

@gwarf
gwarf / MacOSX_terraform.md
Last active September 6, 2023 16:44
Using terraform in Mac OS X to manage KVM-backed VMs.

Using Terraform on MacOS X to manage KVM-backed VMs

Installing

Terraform

brew install terraform
@gwarf
gwarf / MacOSX_ssh_forwarding.md
Last active March 27, 2024 17:18
Using ssh forwarding (Agent and X11) on MacOS X

SSH Forwarding on MacOS X

Forwarding SSH agent

Configure ~/.ssh/config

# Allow Agent forwarding for a specific host (by security)
Host remotehost
  ForwardAgent yes
@gwarf
gwarf / CentOS 7 with Desktop
Last active March 14, 2019 09:51
Setup a CentOS 7 VM with desktop
# CentOS 6 with Gnome desktop
```console
sudo yum groupinstall -y "GNOME Desktop"
sudo systemctl set-default graphical.target
```
When running in VirtualBox, if not able to see mouse cursor:
Launch VirtualBox --> Oracle VM VirtualBox Manager --> Select VM --> Settings --> Display --> Graphics Controller --> VBoxSVGA