Skip to content

Instantly share code, notes, and snippets.

View ademar111190's full-sized avatar
Lightning Networking the Bitcoin

Ademar ademar111190

Lightning Networking the Bitcoin
  • CEO of Bitcoin
  • Itatiba
View GitHub Profile
@ademar111190
ademar111190 / install-minerd.sh
Last active July 25, 2024 12:01
A helper to mining using Public Pool and cpuminer
#!/bin/sh
pkg upgrade
apt install build-essential
pkg install git
pkg install libjansson
pkg install libcurl
pkg install neovim
git clone https://github.com/pooler/cpuminer.git
cd cpuminer
@ademar111190
ademar111190 / fontsize.dart
Created January 15, 2024 12:45
Font size experiment
class BAT extends StatelessWidget {
final double fontSize;
const BAT({
super.key,
required this.fontSize,
});
@override
Widget build(BuildContext context) {
@ademar111190
ademar111190 / handbreak.sh
Created October 2, 2023 16:57
Reduce the size of a video (handbreak does better)
#!/usr/bin/env bash
filename=$(basename -- "$1")
filename="${filename%.*}"
ffmpeg -i $1 -vcodec libx265 -crf 30 ${filename}-min.mp4
@ademar111190
ademar111190 / reduce.sh
Created September 28, 2023 16:31
Reduce a video file size with ffmpeg
ffmpeg -i input.xyz -vcodec libx265 -crf 30 output.mp4
@ademar111190
ademar111190 / umbrel.dockerfile
Created March 18, 2023 16:07
Just a docker file to create an umbrel distrobox
FROM docker.io/library/ubuntu:22.10
# distrobox stuff
RUN export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt upgrade -y; \
apt-get install -y \
bash \
apt-utils \
bc \
@ademar111190
ademar111190 / autherror.diff
Created March 16, 2023 12:46
Auth error diff
diff --git a/android/app/src/main/java/com/breez/client/plugins/breez/breezlib/GoogleAuthenticator.java b/android/app/src/main/java/com/breez/client/plugins/breez/breezlib/GoogleAuthenticator.java
index 52319507..0b05f5b8 100644
--- a/android/app/src/main/java/com/breez/client/plugins/breez/breezlib/GoogleAuthenticator.java
+++ b/android/app/src/main/java/com/breez/client/plugins/breez/breezlib/GoogleAuthenticator.java
@@ -90,22 +90,8 @@ public class GoogleAuthenticator implements PluginRegistry.ActivityResultListene
} catch (Exception e) {
Log.w(TAG, "getAccessToken failed", e);
if (e instanceof UserRecoverableAuthException) {
- Log.w(TAG, "getAccessToken failed but it is recoverable, trying to sign in again");
- GoogleSignInAccount signInResult = Tasks.await(signIn());
@ademar111190
ademar111190 / Containerfile
Last active March 6, 2023 19:06
Just a container to use on distrobox
# podman build -f Containerfile -t radebarao
FROM registry.opensuse.org/opensuse/tumbleweed:latest
# distrobox stuff
RUN zypper -n install bash bc curl diffutils findutils gnupg less libvte-2* libvulkan1 libvulkan_intel libvulkan_radeon lsof Mesa-dri ncurses pinentry procps shadow sudo systemd time util-linux util-linux-systemd wget
# my stuff
RUN zypper -n install bat exa git neofetch neovim zsh
RUN echo "#!/usr/bin/env bash" > /bin/init-radebarao
RUN echo "cd ~" >> /bin/init-radebarao
@ademar111190
ademar111190 / .zshrc
Created March 6, 2023 17:56
Just a zsh file
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
export ZSH="${HOME}/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git
)
source $ZSH/oh-my-zsh.sh
@ademar111190
ademar111190 / .p10k.zsh
Created March 6, 2023 17:27
Just a power 10 shell config
# Generated by Powerlevel10k configuration wizard on 2022-08-02 at 19:38 -03.
# Based on romkatv/powerlevel10k/config/p10k-rainbow.zsh, checksum 15312.
# Wizard options: nerdfont-complete + powerline, large icons, rainbow, unicode,
# 24h time, round separators, round heads, round tails, 2 lines, dotted, full frame,
# dark-ornaments, sparse, many icons, concise, instant_prompt=verbose.
# Type `p10k configure` to generate another config.
#
# Config for Powerlevel10k with powerline prompt style with colorful background.
# Type `p10k configure` to generate your own config based on it.
#
@ademar111190
ademar111190 / preview.dart
Last active August 1, 2022 21:41
Preview your widgets
import 'gits…/fill_view_port_column_scroll_view.dart';
import 'package:flutter/material.dart';
class Preview extends StatelessWidget {
final List<Widget> children;
const Preview(
this.children, {
Key? key,
}) : super(key: key);