Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
const PRICE_ZONE_1 = 30; | |
const PRICE_ZONE_2 = 50; | |
if(! TCT_ADDRESSES.every(a => a.postalCode)) { | |
return { transportation: 0, handling: 0, | |
error: "Merci de renseigner des adresses complètes comme 12 rue .." | |
}; | |
}; |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages
and install them manually as needed.
echo 'require "objspace"; ObjectSpace.trace_object_allocations_start; Kernel.send(:define_method, :sup) do |obj| ; puts "#{ ObjectSpace.allocation_sourcefile(obj) }:#{ ObjectSpace.allocation_sourceline(obj) }"; end' > tmp/tmp-gemfile | |
cat Gemfile >> tmp/tmp-gemfile | |
cat tmp/tmp-gemfile > Gemfile | |
# $ bundle exec irb | |
# irb(main):001:0> require 'rails' | |
# => true | |
# irb(main):002:0> sup(Rails) | |
# /Users/richardschneeman/.gem/ruby/2.4.0/gems/railties-5.0.0.1/lib/rails/initializable.rb:3 |
require 'objspace' | |
ObjectSpace.trace_object_allocations_start | |
Kernel.send(:define_method, :sup) do |obj| | |
puts "#{ ObjectSpace.allocation_sourcefile(obj) }:#{ ObjectSpace.allocation_sourceline(obj) }" | |
end | |
# sup some_thing |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
mkdir -p /tmp/sslInfo | |
rm -f /tmp/sslInfo/* | |
awk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "/tmp/sslInfo/cert." c ".pem"}' < $1 | |
for f in `ls /tmp/sslInfo` | |
do | |
echo "===========================================================" | |
openssl x509 -in /tmp/sslInfo/$f -text -noout | grep 'Subject\|Issuer' | |
cat /tmp/sslInfo/$f | |
echo "===========================================================" |
#!/bin/sh | |
#ocsp_prepare web_site_name crt_file root_ca result_trusted_chain | |
touch $4 | |
cat $3 > $4 | |
DOMAIN=$1 | |
awk 'BEGIN {c=0;} /BEGIN CERT/{c++} { print > "cert." c ".pem"}' < $2 | |
for f in cert.*.pem | |
do | |
echo "Processing: $f" |
[ | |
{name: 'Afghanistan', code: 'AF'}, | |
{name: 'Åland Islands', code: 'AX'}, | |
{name: 'Albania', code: 'AL'}, | |
{name: 'Algeria', code: 'DZ'}, | |
{name: 'American Samoa', code: 'AS'}, | |
{name: 'AndorrA', code: 'AD'}, | |
{name: 'Angola', code: 'AO'}, | |
{name: 'Anguilla', code: 'AI'}, | |
{name: 'Antarctica', code: 'AQ'}, |