This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: ubuntu | |
labels: | |
app: ubuntu | |
spec: | |
containers: | |
- image: ubuntu | |
command: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
description = "Simple overlay flake"; | |
inputs.nixpkgs.url = "nixpkgs/release-20.03"; | |
outputs = inputs@{ self, nixpkgs }: { | |
apps.wine.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.wine.override ({ | |
wineRelease = "staging"; | |
wineBuild = "wineWow"; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> {} }: | |
let | |
fixWrapper = pkgs.runCommand "fix-wrapper" {} '' | |
mkdir -p $out/bin | |
for i in ${pkgs.gcc.cc}/bin/*-gnu-gcc*; do | |
ln -s ${pkgs.gcc}/bin/gcc $out/bin/$(basename "$i") | |
done | |
for i in ${pkgs.gcc.cc}/bin/*-gnu-{g++,c++}*; do | |
ln -s ${pkgs.gcc}/bin/g++ $out/bin/$(basename "$i") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
def assert_command_exists(cmd) | |
ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| | |
exe = File.join(path, cmd) | |
return exe if File.executable?(exe) && File.file?(exe) | |
end | |
abort "#{cmd} not found" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, cmake, pkgconfig | |
, ogre, ignition, tinyxml, gazeboSimulator | |
, freeimage, tbb, yarp | |
}: | |
stdenv.mkDerivation rec { | |
name = "gazebo-yarp-plugins-${version}"; | |
version = "0.1.2"; | |
src = fetchFromGitHub { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# fork of https://gist.github.com/ringe/2593827 | |
# added the following features: | |
# - filter common social networks | |
# - only included email if it was found at least 2 times | |
# - extract display name | |
# - write to tab seperated file | |
require 'mail' # uses the mail gem => gem install mail | |
def sanitize_display_name(name) | |
name.gsub!(/["']/, "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use core::io::{BytesReader, BytesWriter}; | |
pub struct MockSocket { | |
recv: BytesReader, | |
send: BytesWriter | |
} | |
// Compile error | |
//test.rc:4:10: 4:21 error: Illegal anonymous lifetime: anonymous lifetimes are not permitted here | |
//test.rc:4 recv: BytesReader, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rbenv setup | |
export RBENV_ROOT=/usr/local/rbenv | |
export PATH="$RBENV_ROOT/bin:$PATH" | |
eval "$(rbenv init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 4437f3f80c3d168b626cd9ae1666aaef0ff378b5 Mon Sep 17 00:00:00 2001 | |
From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= <joerg@higgsboson.tk> | |
Date: Mon, 18 Feb 2013 22:57:39 +0100 | |
Subject: [PATCH] command: allow to omit END in ranges (START:END) | |
If END is omitted, mpd should use the highest possible value instead of raising an error. | |
This partially reverts 52e9cab1c1743f64a7 | |
--- | |
src/protocol/ArgParser.cxx | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) |