| layout | post | ||
|---|---|---|---|
| title | clamav - install and configure on mac osx | ||
| published | true | ||
| tags |
|
Install clamav via homebrew
| <?php | |
| require 'vendor/autoload.php'; | |
| $headers = array('X-Api-Key' => 'tu-api-key', | |
| 'Accept' => 'application/json'); | |
| $params = array('issue_from' => '2019-01-01', | |
| 'issue_to' => '2019-12-31', | |
| 'page_size' => '10', | |
| 'page' => '1', |
| def generar_clave_acceso(self, fecha, numero, codigo, ambiente): | |
| hoy = fecha | |
| codigonumerico = str( | |
| Decimal('%02d%02d%04d' % (hoy.day, hoy.month, hoy.year)) + Decimal( | |
| self.entidad.ruc) + Decimal('%3s%3s%9s' % ( | |
| self.codigoestablecimiento, self.codigopuntoemision, str( | |
| numero).zfill(9))))[:8] | |
| parcial = "%02d%02d%04d%2s%13s%1d%3s%3s%9s%8s%1d" % ( | |
| hoy.day, hoy.month, hoy.year, codigo, self.entidad.ruc, |
| ;;; Expects a CSV with one column including the document Datil id. | |
| (ns datil-reissue.core | |
| (:require [clojure.data.csv :as csv] | |
| [clojure.java.io :as io] | |
| [clj-http.client :as http] | |
| [cheshire.core :as json]) | |
| (:gen-class)) | |
| (def params {:api-host "https://link.datil.co" |
| sed "s/$/,/g" file.csv |
| find . -type f -name *RUC* -execdir mv {} ruc.pdf \; |
| for i in ???*; do mv -i "$i" "${i%???}"; done |
| ;; http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure | |
| (require '[clojure.reflect :as r]) | |
| (use '[clojure.pprint :only [print-table]]) | |
| (print-table (:members (r/reflect "foo"))) |
| sudo wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo | |
| sudo yum install -y apache-maven | |
| mvn --version |