<commit_before>name = node[:user]

group name
user name do
  gid name
  home "/home/#{name}"
end

directory "/home/#{name}" do
  owner name
  group name
  mode "0755"
end

directory "/home/#{name}/.ssh" do
  owner name
  group name
  mode "0700"
end

directory "/var/run/#{name}" do
  owner name
  group name
  mode "0700"
end

file "/home/#{name}/.ssh/config" do
  owner name
  group name
  mode "0600"
  content "StrictHostKeyChecking no"
end

bash "ssh-keygen" do
  user name
  code "ssh-keygen -P '' -f /home/#{name}/.ssh/id_rsa"
  creates "/home/#{name}/.ssh/id_rsa"
end

ruby_block 'alert ssh-keys' do
  block do
    print <<-CODE

     _________________________
    |                         |
    | You have a new SSH key: |
    |   /home/*/.ssh/id_rsa   |
    |_________________________|
    (|__/) |
    ( •_•) |
    /  >  >*
CODE
  end
end<commit_msg>Removed UTF-8 eyes<commit_after>name = node[:user]

group name
user name do
  gid name
  home "/home/#{name}"
end

directory "/home/#{name}" do
  owner name
  group name
  mode "0755"
end

directory "/home/#{name}/.ssh" do
  owner name
  group name
  mode "0700"
end

directory "/var/run/#{name}" do
  owner name
  group name
  mode "0700"
end

file "/home/#{name}/.ssh/config" do
  owner name
  group name
  mode "0600"
  content "StrictHostKeyChecking no"
end

bash "ssh-keygen" do
  user name
  code "ssh-keygen -P '' -f /home/#{name}/.ssh/id_rsa"
  creates "/home/#{name}/.ssh/id_rsa"
end

ruby_block 'alert ssh-keys' do
  block do
    print <<-CODE

     _________________________
    |                         |
    | You have a new SSH key: |
    |   /home/*/.ssh/id_rsa   |
    |_________________________|
    (|__/) |
    ( ^_^) |
    /  >  >*
CODE
  end
end
{'fraction_non_alphanumeric': 0.14054366685945632, 'fraction_numerical': 0.019086176980913822, 'mean_word_length': 2.33976833976834, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1186311', 'n_tokens_mistral': 691, 'n_tokens_neox': 640, 'n_words': 174}