Skip to content

Instantly share code, notes, and snippets.

View fujin's full-sized avatar

AJ Christensen fujin

  • Rotorua, New Zealand
View GitHub Profile
function ReloadPath
{
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine")
+ ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
}
-----BEGIN CERTIFICATE-----
MIIEXDCCA0SgAwIBAgIQWXLmuNFFbaFU3NV6x3TExDANBgkqhkiG9w0BAQsFADCB
tTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xGjAYBgNVBAoTEURvdWJsZUR1dGNoLCBJbmMuMSkwJwYDVQQL
DCBFbmdpbmVlcmluZyBPcGVyYXRpb25zIC0g4LKgX+CyoDEyMDAGA1UEAxMpRG91
YmxlRHV0Y2ggUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgWDEwHhcNMTYxMDI2
MDIwMTIxWhcNMzYxMDIxMDIwMTIxWjCBtTELMAkGA1UEBhMCVVMxEzARBgNVBAgT
CkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGjAYBgNVBAoTEURv
dWJsZUR1dGNoLCBJbmMuMSkwJwYDVQQLDCBFbmdpbmVlcmluZyBPcGVyYXRpb25z
IC0g4LKgX+CyoDEyMDAGA1UEAxMpRG91YmxlRHV0Y2ggUm9vdCBDZXJ0aWZpY2F0
@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'