Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Dario Garcia dario61081

🎯
Focusing
View GitHub Profile
@dario61081
dario61081 / Android.mk
Created Dec 2, 2020 — forked from kanru/Android.mk
Android GPS using libhardware
View Android.mk
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= \
gps_test.cpp
LOCAL_SHARED_LIBRARIES := \
libcutils libhardware
LOCAL_MODULE:= test-gps
@dario61081
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
dario61081 / docker-api-port.md
Created Sep 18, 2020 — forked from styblope/docker-api-port.md
Enable TCP port 2375 for external connection to Docker
View docker-api-port.md

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://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
@dario61081
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
View pi-hole-setup-methode-with-bind9.md

Installation of bind9

apt install bind9

Create a virtual interface (eth0:1)

Note: i have the IP : 192.168.1.109 by DHCP

edit the network settings file

@dario61081
dario61081 / home.html
Created Apr 9, 2020
inicializar vue app con vuetify
View home.html
const app = new Vue({
el:'#app',
vuetify: new Vuetify()
});
View testing.oracle
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
dario61081 / numero_letras.py
Last active Mar 26, 2020 — forked from efrenfuentes/numero_letras.py
Numero a letras (Python)
View numero_letras.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
__author__ = 'efrenfuentes'
MONEDA_SINGULAR = 'guarani'
MONEDA_PLURAL = 'guaranies'
CENTIMOS_SINGULAR = 'centimo'
@dario61081
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>[[item.numero]]</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
dario61081 / servidor_video.py
Created Apr 20, 2019
Servidor de video desde la webcam
View servidor_video.py
import cv2
from flask import *
class Camera:
def __init__(self, index):
self.index = index
self.cap = cv2.VideoCapture(0)