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
class Data | |
class << self | |
def all | |
(1..10).to_a | |
end | |
def created | |
[4, 5, 6, 8, 9] |
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
git rev-parse --short HEAD |
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 listfile in /var/lib/dpkg/info/*.list; do | |
listfilename=$(basename -- "$listfile") | |
listfilename="${listfilename%.*}" | |
echo ${listfilename} | |
#break | |
output=$(file ${listfile}| awk '{print $2}') | |
#echo "${output}" | |
if [[ $output == *"data"* ]]; then | |
echo "${listfile} is DATA!" |
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 listfile in /var/lib/dpkg/info/*.list.broken; do | |
#echo ${listfile##*/} | |
listfilename=$(basename -- "$listfile") | |
listfilename="${listfilename%.*}" | |
echo "list file name: ${listfilename}" | |
if [ -f "/var/lib/dpkg/info/${listfilename}" ]; then | |
output=$(file "/var/lib/dpkg/info/${listfilename}" | awk '{print $2}') | |
echo $output | |
#break |
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
# | |
#/etc/nginx/sites_available/rails_app | |
# | |
upstream rails_app { | |
server unix:///home/deployer/apps/rails_app/shared/tmp/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80; |
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 dhparam -out /etc/ssl/certs/dhparam.pem 4096 |
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
aws acm list-certificates --profile=<profile_name> |
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 |
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
#!/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: |