- Clearly state your task or question at the beginning of your message.
- Provide context and details to help Claude understand your needs.
- Break complex tasks into smaller, manageable steps.
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
{ | |
"autoscaling": { | |
"CreateAutoScalingGroup": "autoscaling:CreateAutoScalingGroup", | |
"CreateLaunchConfiguration": "autoscaling:CreateLaunchConfiguration", | |
"CreateOrUpdateScalingTrigger": "autoscaling:CreateOrUpdateScalingTrigger", | |
"CreateOrUpdateTags": "autoscaling:CreateOrUpdateTags", | |
"DeleteAutoScalingGroup": "autoscaling:DeleteAutoScalingGroup", | |
"DeleteLaunchConfiguration": "autoscaling:DeleteLaunchConfiguration", | |
"DeleteNotificationConfiguration": "autoscaling:DeleteNotificationConfiguration", | |
"DeletePolicy": "autoscaling:DeletePolicy", |
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 'open-uri' | |
require 'json' | |
data = JSON.load(open("https://ip-ranges.amazonaws.com/ip-ranges.json")) | |
ip_total = data['prefixes'].reduce(0) do | sum, item | | |
sum += 2 ** (32 - item['ip_prefix'].split('/')[1].to_i) | |
end | |
puts "AWS Total IPs: #{ip_total}" |
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 'json' | |
$access_token = <your own token> | |
def add_word(word) | |
puts "Checking word : #{word}" | |
begin | |
result = `curl https://api.shanbay.com/bdc/search/?word=#{word}&access_token=#{$access_token}` | |
result = JSON.parse(result) | |
word_id = result['data']['id'] | |
word_learning_id = result['data']['learning_id'] | |
puts " word #{word}; id : #{word_id} ; learning_id: #{word_learning_id}" |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
sudo ifconfig lo0 alias 127.0.0.2 up |
In a perfect world, where things are done well, not just quickly, I would expect to find the following when joining the company:
Documentation
-
Accurate / up-to-date systems architecture diagram
-
Accurate / up-to-date network diagram
-
Out-of-hours support plan
-
Incident management plan
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
perl -p -i -e 's/\$\{([^}]+)\}/defined $ENV{$1} ? $ENV{$1} : $&/eg' $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
conn L2TP-PSK-noNAT │ | |
authby=secret │ | |
pfs=no │ | |
auto=add │ | |
keyingtries=3 │ | |
rekey=no │ | |
ikelifetime=8h │ | |
keylife=1h │ | |
type=transport |
NewerOlder