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 <jpb@unixorn.net>
#
# 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:

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 / 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
@gwarf
gwarf / VM_image_mount.md
Last active March 14, 2019 15:39
Mount a VM image

Mount a VM image

raw image disk

losetup /dev/loop0 image.img
# or
losetup -f file.raw
# if /dev/loop0p1 does not exist
kpartx -a /dev/loop0
@gwarf
gwarf / README.rst
Last active April 3, 2019 09:02
reStructuredText tests
@gwarf
gwarf / Dockerfile
Created September 5, 2019 09:04 — forked from yankcrime/Dockerfile
Dockerfile for neomutt
# Dockerfile for NeoMutt plus 'essentials'
# Largely inspired by Jess Frazelle (@jessfraz)
#
FROM alpine:3.6
RUN apk --no-cache add \
ca-certificates
ENV HOME /home/user
RUN adduser -u 1000 -D user \