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/php | |
<?php | |
function test($array) { | |
$start = 0; | |
$end = 0; | |
$total = 0; | |
foreach( $array as $index => $time) { | |
if($start == 0 AND $end == 0) { | |
$start = $time['start']; | |
$end = $time['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
1. Install Ruby | |
pkg_add ruby | |
- I chose 2.3.0 | |
2. Install gems | |
pkg_add ruby-gems | |
3. Add ~/.gem/ruby/2.3/bin to PATH | |
PATH="~/.gem/ruby/2.3/bin:"$PATH | |
4. Install bundle | |
gem23 install --user-install bundler | |
5. Install nokogiri (or run into problems installing rails) |
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
I'm attempting to set up an OpenBSD OpenBazaar node (and document the setup for repeatability). | |
Docs can be found here: https://github.com/OpenBazaar/OpenBazaar-Server, https://slack-files.com/T02FPGBKB-F0KJU1CLX-cbbcf8a02c | |
Current hang-up: It looks like the openbazaar-server needs docker. I don't want to run such a thing and can't (in openbsd). |
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
gcc -DHAVE_CONFIG_H -I. -I/usr/local/include/postgresql -Wall -g -MT m_openbsd.o -MD -MP -MF .deps/m_openbsd.Tpo -c -o m_openbsd.o `test -f 'machine/m_openbsd.c' || echo './'`machine/m_openbsd.c | |
machine/m_openbsd.c: In function 'get_system_info': | |
machine/m_openbsd.c:226: error: storage size of 'vmtotal' isn't known | |
machine/m_openbsd.c:239: warning: suggest explicit braces to avoid ambiguous 'else' | |
machine/m_openbsd.c:226: warning: unused variable 'vmtotal' | |
*** Error 1 in . (Makefile:617 'm_openbsd.o') | |
*** Error 1 in /home/bucky/pg_top-3.7.0 (Makefile:270 'all') |
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
/** | |
* get_joined_meta - Recursively gets and builds a JSON compatible array of all of the selected trigger options to dynamically build trigger events | |
* | |
* @param string $meta_id: The string for checking the meta_id of the trigger. Default: "is null" | |
* | |
* @returns array: The compiled list of nested options for a trigger meta item in JSON format. | |
*/ | |
public function get_joined_meta($meta_id = "is null") | |
{ | |
/** get the global db connection */ |
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
0. Make sure some dependencies are installed! | |
automake (1.15), autoconf (2.69), git, libtool, berkleydb (installed from source 4.8), boost, protobuf, python > 3.5, gmake, leveldb | |
5.9 guide: https://github.com/bitcoin/bitcoin/blob/master/doc/build-openbsd.md | |
1. Clone the repo | |
git clone https://github.com/bitcoin/bitcoin.git | |
2. Checkout newest stable branch (0.13.0 currently) | |
git checkout v0.13.0 | |
3. run autogen script | |
./autogen.sh | |
Error: Provide an AUTOCONF_VERSION environment variable, please. |
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
bucky@hal:~/openbazaar_test/OpenBazaar-Server$ make [191/191] | |
./scripts/pycheck.sh | |
/usr/local/bin/pylint | |
.: Checking python source files... | |
find: -not: unknown option | |
PASS: Successfully checked 0 files. | |
nosetests -vs --with-doctest --with-coverage --cover-package=dht --cover-package=db --cover-package | |
=market --cover-inclusive ./dht/tests ./db/tests ./market/tests | |
Failure: AttributeError ('NoneType' object has no attribute 'endswith') ... ERROR | |
test_getNoneNodeById ... ok |
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
[ 26.876] (--) checkDevMem: using aperture driver /dev/xf86 | |
[ 26.889] (--) Using wscons driver on /dev/ttyC4 | |
[ 26.898] | |
X.Org X Server 1.18.3 | |
Release Date: 2016-04-04 | |
[ 26.898] X Protocol Version 11, Revision 0 | |
[ 26.898] Build Operating System: OpenBSD 6.0 amd64 | |
[ 26.898] Current Operating System: OpenBSD 11e.my.domain 6.0 GENERIC.MP#2319 amd64 | |
[ 26.898] Build Date: 26 July 2016 01:23:40PM | |
[ 26.898] |
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
" Starting at line 401 | |
403 " OpenBSD doesn't use -V, so make sure it is > 5.8 " | |
1 import platfor9 | |
2 os = platform.system() | |
3 rel = platform.release() | |
4 | |
5 if not version: | |
6 proc = tmux_cmd('-V') | |
7 " OpenBSD hack " | |
8 if os != 'OpenBSD' and float(rel) <= 5.9:· |
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
<% prefix = "contact_address" %> | |
<%= fields_for prefix, @address do |address_form| -%> | |
<div class="field"> | |
<%= address_form.label :name %> | |
<%= address_form.text_field :name, id: :address_name %> | |
</div> | |
<div class="field"> | |
<%= address_form.label :street %> | |
<%= address_form.text_field :street, id: :address_street %> | |
OlderNewer