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
| .iter() | |
| .map(|path| { | |
| path.strip_prefix(repo_dir) | |
| .map(|value| value.display().to_string()) | |
| .with_context(|| format!("{} did not live under repo root", path.display())) | |
| }) | |
| .collect() | |
| } | |
| fn apply_ticket_via_selected_adapter( |
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
| } | |
| #[test] | |
| #[serial] | |
| fn apply_ticket_with_opencode_rejects_non_doc_family_target() { | |
| let tempdir = tempdir().unwrap(); | |
| let event = MatrixEvent { | |
| event_id: "$runtime-opencode-reject:example.com".to_string(), | |
| room_id: "!room:example.com".to_string(), | |
| sender: "@alice:example.com".to_string(), |
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
| fn ticket_section_value(value: &str) -> String { | |
| value.trim().to_string() | |
| } | |
| fn trusted_opencode_target_family(path: &Path) -> bool { | |
| let file_name = path | |
| .file_name() | |
| .and_then(|value| value.to_str()) | |
| .unwrap_or(""); | |
| let first = path |
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/sh | |
| # Git gpg.program wrapper for keybase pgp sign | |
| # Usage: git config gpg.program /path/to/keybase-git-gpg.sh | |
| set -e | |
| debug() { | |
| [ -n "$KEYBASE_GIT_DEBUG" ] && printf '[keybase-git-gpg] %s\n' "$*" >&2 | |
| return 0 | |
| } |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [{ | |
| "Effect": "Allow", | |
| "Action": [ | |
| "ec2:DescribeImages", | |
| "ec2:DescribeSubnets", | |
| "ec2:RequestSpotInstances", | |
| "ec2:TerminateInstances", | |
| "ec2:DescribeInstanceStatus", |
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/bin/env python3 | |
| import argparse | |
| import itertools | |
| import maya | |
| import icalendar | |
| SEQUENCE = ('Total Body Cardio Fix', |
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
| $r = (Get-NetRoute | Where {$_.DestinationPrefix -eq '0.0.0.0/0'}) | |
| New-NetRoute -DestinationPrefix 169.254.169.254/32 -InterfaceIndex $r.ifIndex -NextHop $r.NextHop |
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
| <powershell> [87/513] | |
| Set-ExecutionPolicy Unrestricted | |
| net user Administrator '{{ win_admin_password }}' | |
| iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex | |
| choco install -y jre8 git | |
| winrm quickconfig -q | |
| winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="2048"}' | |
| winrm set winrm/config '@{MaxTimeoutms="1800000"}' | |
| winrm set winrm/config/service '@{AllowUnencrypted="true"}' | |
| winrm set winrm/config/service/auth '@{Basic="true"}' |
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/sh | |
| # | |
| # libinput by default will disable the touchpad while a key is pressed. | |
| # to disable this, run `xinput` to list the inputs. find the name of your | |
| # touchpad (mine is 'Microsoft Surface Keyboard Touchpad'). | |
| # | |
| # Disable the setting 'Disable While Typing Enabled' | |
| # `xinput --set-prop 'Microsoft Surface Keyboard Touchpad' \ | |
| # 'libinput Disable While Typing Enabled' 0` | |
| # |
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
| /*Message Background*/ .Bk, .Bu { | |
| background: #111 !important; | |
| } | |
| /*Message Background*/ .Bk { | |
| background: #111 !important; | |
| } | |
| .kQ .Bk .G2 { | |
| background: #111 !important; |
NewerOlder