Version String | 64 bit storage version |
---|---|
0.2.1 | 0000000000000000000000000000000000001000000000000000000011100000 |
2.10.5 | 0000000000000000010000000000000000101000000000000000001011100000 |
1.0.1a | 0000000000000000001000000000000000000000000000000000000010000000 |
1.0.1a2 | 0000000000000000001000000000000000000000000000000000000010000010 |
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
#!/bin/sh | |
# Copyright 2019 Ian Stapleton Cordasco | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to | |
# deal in the Software without restriction, including without limitation the | |
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
# sell copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# |
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 bash | |
# Builds Polybar on Fedora-based systems | |
# Tested on Fedora 25, Fedora 26 and Korora 25, untested on others | |
# To get started: | |
# | |
# wget -O- https://gist.githubusercontent.com/nathanchere/22491daf4f917b100a35e5c284a5fec5/raw/install-polybar-ex.sh | bash | |
sudo dnf install -y cmake @development-tools gcc-c++ i3-ipc jsoncpp-devel alsa-lib-devel wireless-tools-devel libmpdclient-devel libcurl-devel cairo-devel xcb-proto xcb-util-devel xcb-util-wm-devel xcb-util-image-devel |
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
# Python 3.3 only | |
class klass(object): | |
def __init__(self, name, klass, bases, children=None): | |
self.name = name | |
self.klass = klass | |
self.bases = bases | |
self.children = children or [] |
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
class Object | |
alias :"__send!__" :__send__ | |
alias :send! :send | |
def send(*args) | |
puts "Nuh uh uh!" | |
end | |
alias :__send__ :send | |
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
#content |
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
palettes: | |
- name: solarized | |
comment: ['dark blue', ''] | |
comment-name: ['white,bold', ''] | |
context-button: ['white,bold', ''] | |
filename: ['light gray', ''] | |
focused-filename: ['light magenta', ''] | |
focused: ['black', 'light gray'] | |
focused-added-line: ['light gray', 'dark green'] | |
focused-added-word: ['white', 'dark gray'] |
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
import argparse | |
B_DEFAULT = 'default_b' | |
def function_a(**kwargs): | |
arg_a = kwargs.pop('arg_a') | |
arg_b = kwargs.pop('arg_b', B_DEFAULT) | |
do_something(parsed_args.arg_a) | |
return something | |
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 keystoneclient import session as ksc_session | |
from keystoneclient.auth.identity import v3 | |
from keystoneclient.v3 import client as keystone_v3 | |
from cratonclient.v1.client import Client | |
from cratonclient import session as c_session | |
import pdb | |
auth = v3.Password(auth_url='http://10.0.2.15:5000/v3', username = 'admin', password = 'secret', project_name = 'admin', user_domain_id = 'default', project_domain_id = 'default') | |
session = ksc_session.Session(auth=auth) | |
craton = Client(session=c_session.Session(session), url='127.0.0.1:8083/v1/') | |
craton.inventory(1).hosts.create(**{'name':'test', 'project_id':1,'ip_address':'1.1.1.1', 'region_id':1, 'device_type':'test'}) |
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
def block = { | |
echo(it) | |
} | |
def streams = [a: block.curry('a'), b: block.curry('b'), c: block.curry('c')] | |
parallel streams | |
//streams.each { item -> | |
// item.value(item.key) | |
//} |
NewerOlder