sudo rfkill list
sudo bluetoothctl -a
sudo bluetoothctl
This file contains hidden or 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
| terraform { | |
| backend "local" {} | |
| required_providers { | |
| aws = { | |
| source = "hashicorp/aws" | |
| } | |
| } | |
| } |
This file contains hidden or 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/bash -e | |
| # Dependencies: | |
| # - k3d (github.com/rancher/k3d) | |
| # - kubectl (github.com/kubernetes/kubectl) | |
| # - jq (github.com/stedolan/jq) | |
| setup_cluster() { | |
| k3d cluster create dev \ | |
| --agents 1 \ |
This file contains hidden or 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
| // http://www.bajdi.com/continuous-rotation-servos-and-arduino/ | |
| // Continuous Servo controls | |
| // Counter clock-wise rotation is achieved using values from 45-89, fastest to slowest speed. | |
| // Clock-wise rotation is achieved using values from 91-135, slowest to fastest speed. | |
| // Servo Library | |
| // https://www.arduino.cc/reference/en/libraries/servo/ | |
| #include <Servo.h> | |
| Servo servo; |
This file contains hidden or 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 the ChefDK first | |
| # * curl -L https://omnitruck.chef.io/install.sh | sudo bash -s -- -P chefdk | |
| # 2) Execute this recipe with chef-client | |
| # * chef-client -z linux.rb | |
| # | |
| directory "#{ENV['HOME']}/bin" | |
| directory "#{ENV['HOME']}/go" | |
| directory "#{ENV['HOME']}/src" |
This file contains hidden or 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/bash -e | |
| chef-server-ctl stop || chef-server-ctl kill | |
| killall -9 -u opscode | |
| killall -9 runsvdir | |
| killall -9 rabbitmq | |
| killall -9 nginx | |
| chef-server-ctl uninstall |
This file contains hidden or 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.sbin.sshd | |
| # Last Modified: Mon Oct 24 22:15:48 2016 | |
| #include <tunables/global> | |
| /usr/sbin/sshd flags=(complain) { | |
| #include <abstractions/base> | |
| #include <abstractions/consoles> | |
| #include <abstractions/nameservice> | |
| #include <abstractions/openssl> |
This file contains hidden or 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
| require 'pp' | |
| class Chef | |
| class Node | |
| attr_accessor :chef_callers | |
| def cumulative_callers | |
| @chef_callers ||= { | |
| 'accessor' => [], | |
| 'normal' => [], | |
| 'default' => [] |
This file contains hidden or 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
| node.default['lita']['plugins'] = {'lita-flowdock' => '0.1.2', 'lita-wolfram-alpha' => '2.0.0' } | |
| node['lita']['plugins'].each do |name, ver| | |
| chef_gem name do | |
| version ver | |
| compile_time true | |
| action :install | |
| end | |
| end |
This file contains hidden or 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
| name: default | |
| config: | |
| user.user-data: | | |
| #cloud-config | |
| users: | |
| - name: admin | |
| groups: sudo | |
| sudo: ALL=(ALL) NOPASSWD:ALL | |
| shell: /bin/bash | |
| gecos: Local Admin |
NewerOlder