Skip to content

Instantly share code, notes, and snippets.

View fujin's full-sized avatar

AJ Christensen fujin

View GitHub Profile
@fujin
fujin / keybase.md
Last active August 25, 2016 01:01
keybase.md

Keybase proof

I hereby claim:

  • I am fujin on github.
  • I am fujin (https://keybase.io/fujin) on keybase.
  • I have a public key ASB0koRD0ugkTicVLKltsoKZiAmQumTGea4cFkAd4kMxbQo

To claim this, I am signing this object:

static const TIM_TimeBaseInitTypeDef tim_apb2_time_base = {
.TIM_Prescaler = (PIOS_PERIPHERAL_APB2_CLOCK / 1000000) - 1,
.TIM_ClockDivision = TIM_CKD_DIV1,
.TIM_CounterMode = TIM_CounterMode_Up,
.TIM_Period = ((1000000 / PIOS_SERVO_UPDATE_HZ) - 1),
.TIM_RepetitionCounter = 0x0000,
};
#!/usr/bin/env python
from titan.pantheon import workflow_utilities
f = open('freeze-sites.txt', 'r')
for line in f.readlines():
for wf_res in workflow_utilities.create_site_workflow(line.strip(), 'freeze_site', block_until_complete=True):
print(wf_res)
f.close()
it 'should manually link the socket service' do
link = chef_run.link(
format(
'/etc/systemd/system/containers.target.wants/%s',
stunnel_socket_name
))
expect(link).to link_to(
format(
'/etc/systemd/system/%s',
GF6045CF-3s #2 RPM: 16414 Volt_MIN: 12.472 Volt_MAX: 12.645 Current: 17.140 Grams: 726.57
GF6045N-3s #1 RPM: 17100 Volt_MIN: 12.488 Volt_MAX: 12.643 Current: 15.411 Grams: 702.53
GF6045N-3s #2 RPM: 17091 Volt_MIN: 12.488 Volt_MAX: 12.645 Current: 15.343 Grams: 695.35
HQ6045CFN-3s #1 RPM: 16962 Volt_MIN: 12.455 Volt_MAX: 12.611 Current: 15.684 Grams: 715.74
HQ6045CFN-3s #2 RPM: 16945 Volt_MIN: 12.449 Volt_MAX: 12.603 Current: 15.648 Grams: 716.80
GF6045CFN-3s #1 RPM: 17040 Volt_MIN: 12.441 Volt_MAX: 12.602 Current: 15.470 Grams: 695.52
GF6045CFN-3s #2 RPM: 17014 Volt_MIN: 12.434 Volt_MAX: 12.589 Current: 15.405 Grams: 689.30
HQ6045x3CFN-3s #1 RPM: 15488 Volt_MIN: 12.394 Volt_MAX: 12.592 Current: 19.819 Grams: 785.27
HQ6045x3CFN-3s #2 RPM: 15462 Volt_MIN: 12.391 Volt_MAX: 12.585 Current: 19.752 Grams: 786.42
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
;; or `spacemacs'. (default 'spacemacs)
dotspacemacs-distribution 'spacemacs
;; List of additional paths where to look for configuration layers.
dotspacemacs-configuration-layers
'(
;; ----------------------------------------------------------------
;; Example of useful layers you may want to use right away.
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
;; <M-m f e R> (Emacs style) to install them.
;; ----------------------------------------------------------------
auto-completion
better-defaults
spell-checking
@fujin
fujin / -
Created August 28, 2015 07:32
[aj@endpoint1df988a3]~% sudo cat /var/chef/cache/chef-stacktrace.out
Generated at 2015-08-28 07:29:31 +0000
NoMethodError: service[cloud-config.service] (pantheon::cloud_init line 15) had an error: NoMethodError: undefined method `+' for false:FalseClass
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:134:in `platform_has_systemd_unit?'
/opt/chef/embedded/apps/chef/lib/chef/platform/service_helpers.rb:98:in `config_for_service'
/opt/chef/embedded/apps/chef/lib/chef/provider/service/redhat.rb:36:in `supports?'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `block in supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `select'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:79:in `supported_handlers'
/opt/chef/embedded/apps/chef/lib/chef/provider_resolver.rb:91:in `prioritized_handlers'
@fujin
fujin / -
Created August 26, 2015 21:38
[aj@consul88d3cc8e]~% curl https://gist.githubusercontent.com/fujin/de906a474ab5b451d218/raw/cf984f3264a91887830e672eb3d4e35abf507c4e/chef-upgrade.sh | sudo bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 435 100 435 0 0 810 0 --:--:-- --:--:-- --:--:-- 810
Loaded plugins: fastestmirror, priorities, versionlock
pantheon_internal/x86_64/signature | 836 B 00:00:00
pantheon_internal/x86_64/signature | 1.0 kB 00:00:00 !!!
pantheon_internal_/x86_64/signature
@fujin
fujin / -
Created August 24, 2015 23:05
[aj@joe-onebox-f22-3]~/infrastructure% git fetch && git reset --hard FETCH_HEAD
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From github.com:pantheon-systems/infrastructure
+ 3881ebf...50a9cdc bump-onebox-to-crazy-shit -> origin/bump-onebox-to-crazy-shit (forced update)
HEAD is now at 50a9cdc Point onebox to pki fixes
[aj@joe-onebox-f22-3]~/infrastructure% sudo chef-solo -c substrate.rb -o recipe\[onebox\]
Starting Chef Client, version 12.4.1