Skip to content

Instantly share code, notes, and snippets.

Peter Wagenet wagenet

Block or report user

Report or block wagenet

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View yarn-smart-upgrade.rb
#!/usr/bin/env ruby
require 'json'
def run_cmd(cmd)
puts cmd
unless ENV['VERBOSE']
cmd = "#{cmd} > /dev/null"
wagenet / 0-Cargo.toml
Last active Apr 10, 2018
Cargo Git Dependency Error
View 0-Cargo.toml
my-dep = { git = "", tag = "v1.0.0" }
View check-outdated-yarn.rb
require 'json'
output = `yarn outdated --json`
json = JSON.parse(output)
items = if json['type'] == 'table'
keys = json['data']['head']
json['data']['body'].map do |row|
Hash[*{|v,i| [keys[i], v] }.flatten]
wagenet / Makefile
Last active Jul 19, 2017
skylight-rust Makefile
View Makefile
# Fail if piped commands fail
SHELL=bash -o pipefail
# Absolute root of the project
ROOT := $(shell cd $(dir $(firstword $(MAKEFILE_LIST))) && pwd)
include $(ROOT)/mk/*.mk
RUST_VERSION := $(shell cat $(ROOT)/.rust-version)
RUSTUP = rustup run $(RUST_VERSION)
wagenet /
Created Apr 12, 2017
glibc Versions

glibc Versions

List of oldest supported version of top 10 Linux Distros and their glibc version according to


Out of all versions with published EOLs, 2.12 is the oldest glibc still active, found in CentOS 6.8.

Not all versions include EOLs, but going back to 2011 releases everything else is at least 2.12.

wagenet / skylight_dlopen.c
Created Oct 7, 2016
Skylight gem dynamic loading code
View skylight_dlopen.c
#include "skylight_dlopen.h"
#include "dlfcn.h"
sky_main_fn sky_main = 0;
sky_init_fn sky_init = 0;
sky_hrtime_fn sky_hrtime = 0;
sky_instrumenter_new_fn sky_instrumenter_new = 0;
sky_instrumenter_start_fn sky_instrumenter_start = 0;
sky_instrumenter_stop_fn sky_instrumenter_stop = 0;
sky_instrumenter_submit_trace_fn sky_instrumenter_submit_trace = 0;
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
View ember-intellisense.js
"use strict";
* - Generate definitions for prototype extensions
* - Handle additional JSDoc properties (@param, @return)
* - Define types of arrays where possible
* - Review situations where multiple types are possible
* - Review var-args
* - JSDoc for classes and namespaces if supported
View comments.js
// This file is valid, if contrived.
// Without nested block comments, the middle alert will get run.
// With nested block comments it would not.
alert("Don't run this anymore.");
alert("I'm in a double nested comment!");
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
values: null,
sum: Ember.computed.sum("values")
You can’t perform that action at this time.