Skip to content

Instantly share code, notes, and snippets.


Dario Garcia dario61081

View GitHub Profile
dario61081 /
Created Dec 2, 2020 — forked from kanru/
Android GPS using libhardware
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
libcutils libhardware
LOCAL_MODULE:= test-gps
dario61081 / Config PyCharm
Created Sep 21, 2020 — forked from Jamp/Config PyCharm
Configure for pycharm auto compile sass
View Config PyCharm
First "gem install sass" on console
Go Menu File > Settings > Tools > File Watch > "+" > "sass"
On New Window > Section Watcher Settings
Program: /<home-directory>/.gem/ruby/2.5.0/bin/sass
Arguments: --no-cache --update --no-cache --update $FileName$:../css/$FileNameWithoutExtension$.css --style compressed
Compile sass file on folder css on file minified
dario61081 /
Created Sep 18, 2020 — forked from styblope/
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://", "unix:///var/run/docker.sock"]}
dario61081 / docker portainer install
Created Jun 12, 2020
lineas de comando para instalar portainer en instancia docker
View docker portainer install
$ docker volume create portainer_data
$ docker run -d -p 8000:8000 -p 9000:9000 --name=portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer

Installation of bind9

apt install bind9

Create a virtual interface (eth0:1)

Note: i have the IP : by DHCP

edit the network settings file

dario61081 / home.html
Created Apr 9, 2020
inicializar vue app con vuetify
View home.html
const app = new Vue({
vuetify: new Vuetify()
Here module deals with source files called .fmb file which is created by us. Then output_file deals with .fmx file which is generated after compiling the .fmb file.
frmcmp_batch module=/disk5/PROD/apps/apps_st/appl/au/12.0.0/forms/US/EMP_FORM.fmb userid=apps/apps output_file=/disk5/PROD/apps/apps_st/appl/ont/12.0.0/forms/US/EMP_FORM.fmx module_type=form batch=yes
dario61081 /
Last active Mar 26, 2020 — forked from efrenfuentes/
Numero a letras (Python)
# -*- coding: utf-8 -*-
__author__ = 'efrenfuentes'
MONEDA_PLURAL = 'guaranies'
dario61081 / table.vue
Last active Jul 16, 2019
vue.js render multiple tr
View table.vue
<template v-show="datos" v-for="item, index in datos">
<tr :key="index">
<td class="date">[[item.fecha|todate]]</td>
<td class="codigo">[[item.cuenta_codigo]]</td>
<td class="text-ellipsis" :title="item.descripcion">[[item.descripcion]]</td>
<td class="number">[[item.cotizacion|tonumber]]</td>
<td class="number">[[item.debe1|number]]</td>
<td class="number">[[item.haber1|number]]</td>
<td class="number">[[item.debe2|tonumber]]</td>
dario61081 /
Created Apr 20, 2019
Servidor de video desde la webcam
import cv2
from flask import *
class Camera:
def __init__(self, index):
self.index = index
self.cap = cv2.VideoCapture(0)