This file contains 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 | |
docker run -d \ | |
--name gitlab-runner \ | |
--restart always \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v gitlab-runner-config:/etc/gitlab-runner \ | |
gitlab/gitlab-runner | |
docker logs -f gitlab-runner |
This file contains 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 | |
docker run --name gitlab-runner-register -d \ | |
-v /var/run/docker.sock:/var/run/docker.sock \ | |
-v gitlab-runner-config:/etc/gitlab-runner \ | |
gitlab/gitlab-runner register \ | |
--non-interactive \ | |
--executor "docker" \ | |
--docker-image alpine:latest \ | |
--url "<GITLAB_URL_HERE>" \ | |
--registration-token "<TOKEN_HERE>" \ |
This file contains 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 | |
docker ps -a | grep runner | cut -d' ' -f1 | xargs -d $'\n' bash -c 'for arg do docker stop -t 1 "$arg"; docker rm "$arg"; done' _ |
This file contains 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 | |
docker volume rm gitlab-runner-config | |
docker volume create gitlab-runner-config |
This file contains 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
# "@ampproject/remapping", # name | |
# "2.2.0", # version | |
# "Apache-2.0", # license | |
# "git+https://github.com/ampproject/remapping.git", # repository | |
# "Unknown", # homepage | |
# "Justin Ridgewell" # author | |
require 'json' | |
require 'csv' | |
# Read data from the JSON file | |
file = File.read('yarn_licenses.json') |
This file contains 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
rails new my_api_service \ | |
--skip-action-mailer \ | |
--skip-action-mailbox \ | |
--skip-action-cable \ | |
--skip-action-text \ | |
--skip-asset-pipeline \ | |
--skip-javascript \ | |
--skip-hotwire \ | |
--skip-bootsnap \ | |
--skip-system-test \ |
This file contains 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
Warden::Manager.after_set_user except: :fetch do |user, auth, opts| | |
if user.class.respond_to?(:pwned_password_check_on_sign_in) && user.class.pwned_password_check_on_sign_in | |
password = auth.request.params.fetch(opts[:scope], {}).fetch(:password, nil) | |
is_pwned = password && auth.authenticated?(opts[:scope]) && user.respond_to?(:password_pwned?) && user.password_pwned?(password) | |
if is_pwned | |
Devise.sign_out_all_scopes | |
if defined?(::Devise::Models::Recoverable) && user.respond_to?(:send_reset_password_instructions) | |
user.send_reset_password_instructions | |
message = :pwned_recoverable | |
else |
This file contains 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 | |
for file in *; | |
do | |
if [ -f "./$file/.ruby-version" ]; then | |
cat "$file/.ruby-version" | sed -e 's/ruby-//g' | tr '\n' ' '; | |
echo "in folder: $file"; | |
fi | |
done; | |
### example: |
This file contains 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
Failed running python -E "/Applications/Unity/Hub/Editor/2019.3.5f1/PlaybackEngines/WebGLSupport/BuildTools/Emscripten/emcc" @"/Users/username/prj/Lzero/Assets/../Temp/emcc_arguments.resp" | |
stdout: | |
stderr:[0;33mwarning:[0m unexpected number of arguments 1 in call to '__cxa_pure_virtual', should be 0[0;33mwarning:[0m unexpected number of arguments 2 in call to '_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv', should be 0[0;33mwarning:[0m unexpected number of arguments 4 in call to '_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv', should be 0[0;33mwarning:[0m unexpected number of arguments 2 in call to '_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv', should be 0[0;33mwarning:[0m unexpected number of arguments 4 in call to '_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv', should be 0[0;33mwarning:[0m unexpected number of arguments 5 in call to '_ZN6il2cpp6icalls8mscorlib6System6String22RedirectToCreateStringEv', should b |
This file contains 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
openssl s_client -CApath /etc/ssl/certs/ -connect address.com:443 |
NewerOlder