I hereby claim:
- I am grizmio on github.
- I am grizmio (https://keybase.io/grizmio) on keybase.
- I have a public key ASBhHACv7ldFziUY8ktU2876xxLN6ubFdWbVN_Ryl1I5pQo
To claim this, I am signing this object:
| diff --git a/source/c_adc.c b/source/c_adc.c | |
| index e0c754c..5269407 100644 | |
| --- a/source/c_adc.c | |
| +++ b/source/c_adc.c | |
| @@ -30,29 +30,28 @@ SOFTWARE. | |
| #include "c_adc.h" | |
| #include "common.h" | |
| -char adc_prefix_dir[40]; | |
| +char adc_prefix_dir[49]; |
I hereby claim:
To claim this, I am signing this object:
| http://blog.grizmio.cl/post/157828022813/easy-fast-bash-removeline | |
| On a MAC sed needs -i '' on a Linux box it won´'t. | |
| This is the most annoying message you could read in a ssh hurry: | |
| baz:foo grizmio$ ssh root@192.168.1.2 | |
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
| @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ | |
| @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ | |
| IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! |
| #!/bin/python2.7 | |
| # python2.7 agi using pyst2 | |
| # A function to dial an extension with pjsip and get the result status | |
| from asterisk.agi import * # pyst2 | |
| def dial_pjsip(anexo=''): | |
| """ |
| package javaapplication4; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| /** | |
| * | |
| * @author grizmio | |
| */ | |
| public class JavaApplication4 { |
| Serial.println( | |
| WiFi.softAPConfig(ip, gateway, subnet, nullptr) ? "Ready" : "Failed!"); // se llamo desde alguna libreria | |
| Serial.println( | |
| WiFi.softAPConfig(ip, gateway, subnet, INADDR_NONE) ? "Ready" : "Failed!"); // no se enviara el gateway | |
| IPAddress dhcp_gateway(1, 2, 3, 4); // o cualquier otra ip | |
| Serial.println( | |
| WiFi.softAPConfig(ip, gateway, subnet, dhcp_gateway) ? "Ready" : "Failed!"); // se enviara la ip del esp8266 como gateway |
| #include <DHTesp.h> | |
| #include <WiFiClientSecure.h> | |
| #include <ThingerESP32.h> | |
| #define TO_SECONDS 1000 * 1000 | |
| #define USERNAME "usuario" | |
| #define DEVICE_ID "dispositivo" | |
| #define DEVICE_CREDENTIAL "contrasenia" | |
| #define DEEPSLEEP_SECONDS 30 | |
| #define SENSOR_PIN 19 |
| # Credits to: https://github.com/peter-evans | |
| # Extracted from: https://github.com/peter-evans/docker-compose-healthcheck/blob/master/docker-compose.yml | |
| # TL;DR; | |
| version: "2.2" | |
| services: | |
| foo: | |
| image: an_image:tag | |
| networks: |
| import pg8000 | |
| # thanks to: Sucas Venior https://stackoverflow.com/questions/58658690/retrieve-query-results-as-dict-in-sqlalchemy | |
| def rows_as_dicts(cursor): | |
| """convert tuple result to dict with cursor""" | |
| col_names = [i[0].decode() for i in cursor.description] | |
| for row in cursor: | |
| x = dict(zip(col_names, row)) | |
| yield x |
| 'cause Amnesia. | |
| webpack.config.js: | |
| .setOutputPath('public/') | |
| // public path used by the web server to access the output path | |
| .setPublicPath('/') | |
| assets.yaml: | |
| json_manifest_path: '%kernel.project_dir%/public/manifest.json' |