Skip to content

Instantly share code, notes, and snippets.

View vendion's full-sized avatar

Adam Jimerson vendion

View GitHub Profile
[vendion@Vili][~]% aqemu
AQEMU Error [5] >>>
Sender: void Virtual_Machine::Set_Icon_Path( const QString &file_name )
Message: File name is empty!
AQEMU Warning [41] >>>
Sender: bool System_Info::Read_SysFS_File( const QString &path, QString &data )
Message: Cannot Open File "/sys/bus/usb/devices/1-13/manufacturer"!
! Enabled modi
rofi.modi: window,run,ssh
! Window opacity
rofi.opacity: 100
! Window width
rofi.width: 50
! Number of lines
rofi.lines: 15
! Number of columns
rofi.columns: 1
@vendion
vendion / # php56 - 2016-03-14_10-47-11.txt
Created March 14, 2016 14:51
php56 (homebrew/php/php56) on OS X 10.11.3 - Homebrew build logs
Homebrew build logs for homebrew/php/php56 on OS X 10.11.3
Build date: 2016-03-14 10:47:11
package main
import (
"fmt"
"io/ioutil"
"os"
filepath "path"
)
func main() {
name = ORNL Panels and Layout
description = All panels and layout for ORNL.GOV
core = 7.x
package = ORNL
version = 7.x-0.13
project = ornl_panels_and_layout
dependencies[] = ctools
dependencies[] = page_manager
features[ctools][] = page_manager:pages_default:1
features[features_api][] = api:2
### Keybase proof
I hereby claim:
* I am vendion on github.
* I am vendion (https://keybase.io/vendion) on keybase.
* I have a public key whose fingerprint is E910 20F1 E7B3 0F18 E24A 8315 F1F2 6B78 9FC6 42D0
To claim this, I am signing this object:
@vendion
vendion / gist:6442742
Last active December 22, 2015 08:08
Quick example code to take an array of times and randomly grab ten elements from that array. If the source array has less than ten elements, grab all of the elements in a random order.
<?php
// set up array with slides
$slides = array(1, 2, 3, 4, 5);
//$slides = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
//$slides = array(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15);
// get ten random array elements to display
$length = count($slides);
@vendion
vendion / gist:3861237
Created October 9, 2012 20:32
Bootstrap and Go navbar example
{{ define "navbar" }}
<div class="navbar">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">{{ template "title" }}</a>
@vendion
vendion / second.go
Created April 10, 2012 18:49
Syntastic Go issue
package main
import "fmt"
func displayversion() {
fmt.Println(version)
}
@vendion
vendion / go.vim
Created March 5, 2012 14:45
go.vim syntax checker
"============================================================================
"File: go.vim
"Description: Syntax checking plugin for syntastic.vim
"Maintainer: (please someone else maintain this)
"License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"