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 / cherry-pick.sh
Created June 2, 2022 12:58
Cherry pick the last commit from buildable branch
git --no-pager log -n 1 buildable --pretty=format:"%H" | xargs git cherry-pick $1
@ademar111190
ademar111190 / install-protoc.sh
Created January 19, 2022 18:16
install protoc
#!/usr/bin/env sh
# https://github.com/protocolbuffers/protobuf/releases
# PB_VERSION="3.19.3"
PB_VERSION="3.15.8"
# https://pkg.go.dev/google.golang.org/protobuf/cmd/protoc-gen-go?tab=versions
# PB_GEN_GO="1.27.1"
PB_GEN_GO="1.25.0"
@ademar111190
ademar111190 / sips-helper.py
Created December 9, 2021 16:48
Sips helper to crop android images
#!/usr/bin/env python3
import subprocess
path_prefix = "/Users/…/src/main/res"
configs = [
(648, 648, "drawable-xxhdpi"),
(432, 432, "drawable-xhdpi"),
(324, 324, "drawable-hdpi"),
@ademar111190
ademar111190 / another.rss
Last active June 28, 2021 15:12
A rss sample
<?xml version="1.0" encoding="UTF-8" ?><?xml-stylesheet href="https://feeds.buzzsprout.com/styles.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:podcast="https://podcastindex.org/namespace/1.0" version="2.0">
<channel>
<atom:link href="https://gist.githubusercontent.com/ademar111190/491db45d63953d9d60fc5ff4d41b0ac2/raw/4c66cf3dd6271b239e4036e1d11801689f20566f/another.rss" rel="self" type="application/rss+xml" />
<atom:link href="https://pubsubhubbub.appspot.com/" rel="hub" xmlns="http://www.w3.org/2005/Atom" />
<title>Another RSS feed</title>
<lastBuildDate>Mon, 28 Jun 2021 10:33:30 -0400</lastBuildDate>
<link></link>
<language>pt-br</language>
<copyright>© 2021 Another RSS feed</copyright>
@ademar111190
ademar111190 / Character Viewer Privacy Policy.txt
Created February 6, 2021 19:19
Character Viewer Privacy Policy
Privacy Policy
Your privacy is important to us. It is Character Viewer's policy to respect your privacy regarding any information we may collect from you through our app, Character Viewer.
We only ask for personal information when we truly need it to provide a service to you. We collect it by fair and lawful means, with your knowledge and consent. We also let you know why we’re collecting it and how it will be used.
We only retain collected information for as long as necessary to provide you with your requested service. What data we store, we’ll protect within commercially acceptable means to prevent loss and theft, as well as unauthorized access, disclosure, copying, use or modification.
We don’t share any personally identifying information publicly or with third-parties, except when required to by law.
Our app may link to external sites that are not operated by us. Please be aware that we have no control over the content and practices of these sites, and cannot accept responsibility or liability for their r
@ademar111190
ademar111190 / AndroidManifest.xml
Created December 3, 2020 11:52
Disable all uses feature
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- region hardware -->
<!-- Audio -->
<uses-feature
android:name="android.hardware.audio.low_latency"
android:required="false" />
<uses-feature
android:name="android.hardware.audio.output"
@ademar111190
ademar111190 / Tabuada privacy police
Created November 30, 2020 21:41
Tabuada privacy police
Privacy Policy
Your privacy is important to us. It is Tabuada's policy to respect your privacy regarding any information we may collect from you through our app, Times tables.
We only ask for personal information when we truly need it to provide a service to you. We collect it by fair and lawful means, with your knowledge and consent. We also let you know why we’re collecting it and how it will be used.
We only retain collected information for as long as necessary to provide you with your requested service. What data we store, we’ll protect within commercially acceptable means to prevent loss and theft, as well as unauthorized access, disclosure, copying, use or modification.
We don’t share any personally identifying information publicly or with third-parties, except when required to by law.
Our app may link to external sites that are not operated by us. Please be aware that we have no control over the content and practices of these sites, and cannot accept responsibility or liability for their respective pri
@ademar111190
ademar111190 / shield.svg
Created August 5, 2020 20:03
Learning quadratic curves
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ademar111190
ademar111190 / test.svg
Last active August 5, 2020 19:11
Some svgs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ademar111190
ademar111190 / compress.sh
Last active August 2, 2020 16:57
Create several 7z files with Keka
find . -name "*.psd" | xargs -L 1 open -a Keka