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
| hint.apm.0.disabled="1" | |
| hint.acpi.0.disabled="1" | |
| beastie_disable="YES" | |
| if_ed_load="YES" | |
| hint.ed.0.at="isa" | |
| hint.ed.0.disabled="0" | |
| hint.ed.0.port="0x300" | |
| hint.ed.0.irq="10" | |
| hint.ed.0.maddr="0xd8000" | |
| hint.ed.1.at="isa" |
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
| <?xml version="1.0"?> | |
| <root> | |
| <list> | |
| <item> | |
| <name>Ctrl+Tab for Terminal</name> | |
| <identifier>private.sumikawa_ctrlTabForTerminal</identifier> | |
| <only>TERMINAL</only> | |
| <autogen>--KeyToKey-- KeyCode::TAB, VK_CONTROL | ModifierFlag::NONE, KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_R | ModifierFlag::SHIFT_R</autogen> | |
| <autogen>--KeyToKey-- KeyCode::TAB, VK_CONTROL | VK_SHIFT | ModifierFlag::NONE, KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_R | ModifierFlag::SHIFT_R</autogen> | |
| </item> |
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
| diff --git files/prefpane/checkbox.xml files/prefpane/checkbox.xml | |
| index 152a9c6..df6156e 100644 | |
| --- files/prefpane/checkbox.xml | |
| +++ files/prefpane/checkbox.xml | |
| @@ -1018,6 +1018,14 @@ | |
| <name>Remap Command_L to Option_L</name> | |
| <sysctl>remap.app_term_commandL2optionL</sysctl> | |
| </item> | |
| + <item> | |
| + <name>Remap Ctrl+Tab to Command+Shift+BracketRight</name> |
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
| aws ec2 run-instances --image-id ami-bdcda3bc --key-name xxxxxxx --instance-type t2.micro --block-device-mapping '[ {"DeviceName":"/dev/xvda","Ebs":{"VolumeType":"gp2","VolumeSize":10}} ]' |
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 ruby | |
| require 'optparse' | |
| m = /((?<user>[\w-]+)@)?((?<instance>i-[\w]+)|(?<name>[\w]+))/.match(ARGV.pop) | |
| user = m[:user] || "ec2-user" | |
| if m[:instance] | |
| dnsname = `aws ec2 describe-instances --instance-ids #{m[:instance]} | jq -r '.Reservations[].Instances[].NetworkInterfaces[].Association.PublicDnsName' | grep -v null | tail -1` | |
| end | |
| if dnsname.nil? || dnsname.empty? | |
| puts "No such instance" |
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 ruby | |
| require 'prime' | |
| days = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] | |
| (201301..201312).each do |m| | |
| sd = (m.to_s + "01").to_i | |
| ed = (m.to_s + days[m % 12].to_s).to_i | |
| (sd..ed).each do |n| |
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
| <?xml version="1.0"?> | |
| <root> | |
| <symbol_map type="KeyCode" name="META_L" value="0xff" /> | |
| <devicevendordef> | |
| <vendorname>OCTI</vendorname> | |
| <vendorid>0x0b39</vendorid> | |
| </devicevendordef> | |
| <deviceproductdef> | |
| <productname>OCTI_PS2_TO_USB</productname> | |
| <productid>0x0001</productid> |
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
| javascript:var i = 0;for (i = 0; i < document.main.check.length; i++) {document.main.check[i].checked=1;};checkInput(); |
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
| sed '{ | |
| :a | |
| /\\$/N | |
| /\\$/b a | |
| s/\\\n//g | |
| }' Makefile |
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/perl | |
| for $i (1..$ARGV[0]) { | |
| $r = ""; | |
| $r .= ((Fizz)[$i % 3]); | |
| $r .= ((Buzz)[$i % 5]); | |
| print $r || $i; | |
| print "\n"; | |
| } |