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
@-moz-document domain("home.camect.com") | |
{ | |
body { | |
background-color: #1a1a1a; | |
} | |
top-bar:not(.tabbed-top-bar), | |
.fs-modal .modal-header { | |
color: black; | |
background: #0c8; | |
} |
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 python | |
import requests, json, time, sys | |
password='password' | |
host='hostname' | |
login = ('root', password) | |
headers = {'Content-Type': "application/json"} | |
url = 'http://'+host+'/api/v1.0/system/certificate/' |
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
# frozen_string_literal: true | |
module Nanoc::Helpers | |
# @see http://nanoc.ws/doc/reference/helpers/#blogging | |
module Blogging_JSON | |
# @return [Array] | |
def articles | |
blk = -> { @items.select { |item| item[:kind] == 'article' } } | |
if @items.frozen? | |
@article_items ||= blk.call |
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
# frozen_string_literal: true | |
module Nanoc::Helpers | |
# @see http://nanoc.ws/doc/reference/helpers/#blogging | |
module Blogging_JSON | |
include Nanoc::Helpers::Blogging | |
class JSONFeedBuilder < AtomFeedBuilder | |
def build | |
require 'json' |
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
### Keybase proof | |
I hereby claim: | |
* I am fracai on github. | |
* I am fracai (https://keybase.io/fracai) on keybase. | |
* I have a public key ASCDlpfcLaKXgjBQUFYZdqWloGdYjjKuzPVRZ0o6CeJe1Ao | |
To claim this, I am signing this object: |
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 python | |
import requests, json, time | |
password='root_password' | |
host='freenas_hostname' | |
login = ('root', password) | |
headers = {'Content-Type': "application/json"} | |
url = 'http://'+host+'/api/v1.0/services/services/afp/' |
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
module Nanoc::Filters | |
class StripBlankLines < Nanoc::Filter | |
identifier :strip_blank_lines | |
def run(content, params={}) | |
count_pre = 0 | |
content.split("\n").each do |line| | |
line << "\n" |
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
module Nanoc::Filters | |
class Compact < Nanoc::Filter | |
identifier :compact | |
def run(content, params={}) | |
count_pre = 0 | |
content.split("\n").each do |line| | |
line << "\n" |
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 python | |
# rollup.py - Arno Hautala <[email protected]> | |
# This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License. | |
# (CC BY-SA-3.0) http://creativecommons.org/licenses/by-sa/3.0/ | |
# | |
# For the latest version, visit: | |
# https://github.com/fracai/zfs-rollup | |
# https://bitbucket.org/fracai/zfs-rollup |
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
# build the classes hash | |
classes = Hash.new{|h, k| h[k] = []} | |
items.reject { |i| ! i[:class] }.each do |i| | |
classes[i[:class]] << i | |
end | |
# iterate each class, then each sequence in that class | |
classes.keys.sort.each do |class, class_items| | |
class_items.sort_by { |c| c[:sequence] }.each do |c| | |
# |
NewerOlder