Skip to content

Instantly share code, notes, and snippets.

View lfdominguez's full-sized avatar
🍜
Coding the world....

Luis Felipe Dominguez Vega lfdominguez

🍜
Coding the world....
View GitHub Profile
@lfdominguez
lfdominguez / fix_copilot.sh
Created April 10, 2023 13:11
Fix Github Copilot agent NixOS
#! /usr/bin/env nix-shell
#! nix-shell -i bash -p patchelf
## Pass the github copilot agent as first parameter.
## Example: /home/luis/.local/share/JetBrains/CLion2023.1/github-copilot-intellij/copilot-agent/bin/copilot-agent-linux
binaryLocation="$1"
cp "${binaryLocation}" "${binaryLocation}.bak"
@lfdominguez
lfdominguez / guita.rb
Created November 24, 2022 17:48 — forked from dcadenas/guita.rb
Script para ver el estado de una cuenta del banco Itaú Uruguay
#!/usr/local/bin/ruby
# encoding: UTF-8
require 'rubygems'
gem 'mechanize'
gem 'main'
gem 'highline'
gem 'money'
gem 'change_watcher'
@lfdominguez
lfdominguez / freeotp_migrator.py
Last active August 25, 2022 16:32
Get FreeOTP backup json file and create the QRCode to import into other apps
#
# Get FreeOTP backup json file and create the QRCode to import into other apps
#
# python <this-script> </path/to/freeotp/backup/file.json>
#
import ctypes
import base64
import sys
import json
@lfdominguez
lfdominguez / docker_lxc.md
Created June 11, 2021 02:07 — forked from kuanghan/docker_lxc.md
Setting up docker to run in a PRIVILEGED LXC container

Setting up docker to run in a PRIVILEGED LXC container

Set up a privileged container

Create container

Let's call the container docker_test1.

$ sudo lxc-create -t download -n docker_test1
...
Follow the prompts on the screen to set up the new container.
@lfdominguez
lfdominguez / alerta-web.log
Created January 29, 2019 15:04
Alerta-Web log
2019-01-29 09:42:17,188 DEBG received SIGCLD indicating a child quit,
2019-01-29 09:42:18,192 INFO spawned: 'heartbeats' with pid 7844,
2019-01-29 09:42:19,194 INFO success: heartbeats entered RUNNING state, process has stayed up for > than 1 seconds (startsecs),
2019-01-29 09:42:40,612 DEBG 'uwsgi' stdout output:,
[pid: 1913|app: 0|req: 3399/5933] 127.0.0.1 () {38 vars in 438 bytes} [Tue Jan 29 09:42:40 2019] GET /api/config => generated 690 bytes in 3 msecs (HTTP/1.1 200) 6 headers in 180 bytes (1 switches on core 0),
,
2019-01-29 09:42:40,616 DEBG 'nginx' stdout output:,
ip=\- [\29/Jan/2019:09:42:40 +0000] "\GET /api/config HTTP/1.1" \200 \690 "\-" "\python-requests/2.21.0",
2019/01/29 09:42:40 [info] 72#72: *13092 client 127.0.0.1 closed keepalive connection,
,
@lfdominguez
lfdominguez / rate_to_influx.sh
Last active June 28, 2023 14:15
Send traffics stats by ip from pfsense to influxdb
#!/bin/sh
#
# Author: Luis Felipe Domínguez Vega <[email protected]>
#
# Program to use with the rate software to send to InfluxDB the
# rate of each IP on interface
#
# rate_to_influx <influxdb_url> <influxdb_database> <local_network> <interface>
# rate_to_influx http://127.0.0.1:8086 network 192.168.0.0/24 re1
@lfdominguez
lfdominguez / radio.log
Created February 26, 2018 14:37
Radio log of my Samsung Galaxy s6 G920P (Sprint) in data connection
02-26 09:28:07.895 5234 5234 D DCT-0/1 : buildWaitingApns: adding prefer apn which Bearer is perfectly matched =[ApnSettingV3] desoftmtz, 28, 36801, desoftmtz, 10.11.1.2, , , , 8898, 3, default | dun, IP, IP, true, 0, 18180, 0, false, 20, 0, 300, 0, , ffffffffffffffffff, false
02-26 09:28:07.897 5234 5234 D RetryManager: [default] mInterApnDelay = 5000, mFailFastInterApnDelay = 3000
02-26 09:28:07.897 5234 5234 D RetryManager: [default] configure: 'max_retries=infinite,default_randomization=2000,5000,10000,20000,40000,80000:5000,160000:5000,320000:5000,640000:5000,1280000:5000,1800000:5000'
02-26 09:28:07.898 5234 5234 D RetryManager: [default] configure: not empty
02-26 09:28:07.898 5234 5234 D RetryManager: [default] configure: strArray[0]='max_retries=infinite'
02-26 09:28:07.898 5234 5234 D RetryManager: [default] configure: splitStr[0]='max_retries'
02-26 09:28:07.898 5234 5234 D RetryManager: [default] configure: splitStr[1]='infinite'
02-26 09:28:07.898 5234 5234 D RetryManager: [defaul