Skip to content

Instantly share code, notes, and snippets.

View steveno's full-sized avatar
🐻

Steven Oliver steveno

🐻
View GitHub Profile
@steveno
steveno / backup.py
Created January 15, 2021 02:33
borg backup script
#!/usr/bin/env python3
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
import argparse
import datetime
import keyring
import pexpect
@steveno
steveno / start.sh
Created June 4, 2018 02:34
start salt dev environment
if [[ $_ == $0 ]]
then
echo "Script must sourced!"
exit
fi
echo "Activating virtualenv"
source bin/activate
echo "Starting salt-master"
salt-master -c ./etc/salt -d
steveno@shawnee:~$ cd Projects/balistica/
steveno@shawnee:~/Projects/balistica (master)$ ls
AUTHORS CMakeLists.txt COPYRIGHT NEWS test uncrustify.sh
build configure data README.md Testing
cmake CONTRIBUTING.md help sql THANKS
CMakeFiles COPYING INSTALL.md src ui
steveno@shawnee:~/Projects/balistica (master)$ clear
steveno@shawnee:~/Projects/balistica (master)$ rm -rf build/
steveno@shawnee:~/Projects/balistica (master)$ mkdir -p build && cd build

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@steveno
steveno / uncrustify.sh
Last active November 6, 2017 01:15
Run uncrustify on balistica source code
#!/bin/bash
find . -name "*.vala" > files.txt
files=$(<files.txt)
mkdir -p out
for item in $files ; do
dn=$(dirname $item)
@steveno
steveno / gist:9b7b608ffa72cc7e9684
Created August 28, 2015 00:55
diff line count
steveno@odrade:~/Projects/neovim/src/nvim$ git diff 1a50bc..56fe0c --numstat
198 198 src/nvim/buffer.c
11 11 src/nvim/buffer_defs.h
42 42 src/nvim/charset.c
108 108 src/nvim/diff.c
10 10 src/nvim/digraph.c
445 445 src/nvim/edit.c
1 1 src/nvim/edit.h
506 506 src/nvim/eval.c
256 256 src/nvim/ex_cmds.c
@steveno
steveno / vimrc
Created February 11, 2014 19:28
vimrc
scriptencoding utf-8
" Vim settings file for Steven Oliver
"---------------------------------------------
" General Settings {{{1
"---------------------------------------------
set nocompatible | filetype indent plugin on | syn on
fun SetupVAM()
@steveno
steveno / Cmake.txt
Created January 8, 2014 02:21
CMake & Make output
-- The C compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.27.1")
-- checking for module 'libvala-0.24'
-- found libvala-0.24, version 0.22.0.61-d7fc
-- Found Vala: /usr/local/bin/valac (found suitable version "0.22.0.61-d7fc", minimum required is "0.17")
-- Found Vala: /usr/local/bin/valac (found suitable version "0.23.1", minimum required is "0.17")
@steveno
steveno / login.sql
Created September 6, 2011 14:48
Oracle sql login file
--Set the editor to gVim
define _editor = "C:\Program Files\Vim\vim73\gvim.exe"
--Reformat the prompt
set sqlprompt "_user'@'&_connect_identifier> "
--Format the output
set linesize 80
set trimspool on
set trimout on