Skip to content

Instantly share code, notes, and snippets.

View GhostLyrics's full-sized avatar

Alexander Skiba GhostLyrics

View GitHub Profile
@GhostLyrics
GhostLyrics / .gitlab-ci.yml
Created June 22, 2016 20:35
gitlab example
# these are default and only there for reference
stages:
- build
- test
- deploy
build-my-stuff:
stage: build
script:
#! /usr/bin/env ruby
require 'date'
require 'sensu-plugin/check/cli'
class CheckValidity < Sensu::Plugin::Check::CLI
option :path,
description: 'Path to the "bsadmin" binary',
short: '-p /PATH/TO/BINARY',
long: '--path /PATH/TO/BINARY',
{
"checks": {
"check_disk_usage": {
"command": "check-disk-usage.rb -p '(\\/*debug(fs)?\\/tracing)|(.*gvfs)'",
"handlers": [
"default"
],
"interval": 60,
"subscribers": [
"core"
@GhostLyrics
GhostLyrics / sensu
Created May 9, 2016 19:32
sudoers suggestion: /etc/sudoers.d/sensu
# allow using only the binary name instead of the full path in check definitions
Defaults:sensu secure_path="/opt/sensu/embedded/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# blindly allow all sensu-install provided checks and metrics which follow the proper naming convention
sensu ALL=(ALL) NOPASSWD: /opt/sensu/embedded/bin/check*.rb *
sensu ALL=(ALL) NOPASSWD: /opt/sensu/embedded/bin/metrics*.rb *
ghostlyrics@sweb:~/build$ make x86_64
Scanning dependencies of target x86_64
rm -fR /home/ghostlyrics/build/*: remove all arguments recursively [Y/n]?
-- Target architecture: x86/64
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
fpm \
-t deb \
-s dir \
--name "vrvu-equalizer" \
--version "1.0.1" \
--license "LGPL" \
--vendor "ICG TU Graz" \
--category "devel" \
--architecture "amd64" \
--maintainer "Alexander Skiba <skiba@icg.tugraz.at>" \
void Stabs2DebugInfo::initialiseSymbolTable()
{
function_symbols_.reserve(256);
// debug output for userspace symols
for (StabEntry const *current_stab = stab_start_; current_stab < stab_end_; ++current_stab)
{
kprintfd("Current stab: %x\n", current_stab);
kprintfd("Current stab->n_value: %d\n", current_stab->n_value);
void Stabs2DebugInfo::initialiseSymbolTable()
{
function_symbols_.reserve(256);
// debug output for userspace symols
for (StabEntry const *current_stab = stab_start_; current_stab < stab_end_; ++current_stab)
{
kprintfd("Current stab: %x\n", current_stab);
if (current_stab->n_type == N_FUN || current_stab->n_type == N_FNAME)
# This is the CMakeCache file.
# For build in directory: /Users/ghostlyrics/tmp/build
# It was generated by CMake: /usr/local/Cellar/cmake/3.1.2/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
@GhostLyrics
GhostLyrics / gist:7054be9556555c7c87d7
Created February 22, 2015 20:16
Sweb example compilation with VERBOSE=1
=> make VERBOSE=1
/usr/local/Cellar/cmake/3.1.2/bin/cmake -H/Users/ghostlyrics/tmp/sweb -B/Users/ghostlyrics/tmp/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/local/Cellar/cmake/3.1.2/bin/cmake -E cmake_progress_start /Users/ghostlyrics/tmp/build/CMakeFiles /Users/ghostlyrics/tmp/build/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f utils/exe2minixfs/CMakeFiles/exe2minixfs.dir/build.make utils/exe2minixfs/CMakeFiles/exe2minixfs.dir/depend
cd /Users/ghostlyrics/tmp/build && /usr/local/Cellar/cmake/3.1.2/bin/cmake -E cmake_depends "Unix Makefiles" /Users/ghostlyrics/tmp/sweb /Users/ghostlyrics/tmp/sweb/utils/exe2minixfs /Users/ghostlyrics/tmp/build /Users/ghostlyrics/tmp/build/utils/exe2minixfs /Users/ghostlyrics/tmp/build/utils/exe2minixfs/CMakeFiles/exe2minixfs.dir/DependInfo.cmake --color=
Dependee "/Users/ghostlyrics/tmp/build/utils/exe2minixfs/CMakeFiles/exe2minixfs.dir/Dep