Skip to content

Instantly share code, notes, and snippets.

View jalcine's full-sized avatar
💭
Decentralize and democratize the Web.

jalciné jalcine

💭
Decentralize and democratize the Web.
View GitHub Profile
@dphiffer
dphiffer / email_to_google_recruiter.md
Created January 9, 2019 21:58
Re: Greetings from Google!

Hi B—,

I appreciate that I made it through your candidate filters, it is a true privilege. I have friends at Google and, from what I've heard, it seems like it can be a great place to work.

Unfortunately I cannot imagine working at Google and I feel a responsibility to pass along my reasoning to you in the hopes that I might (if marginally) make a case for better corporate business practices. I want to make a case that key strategic choices are impacting your capacity to attract talent.

  • It doesn't seem like the conditions that motivated the Google Walkout have been fundamentally addressed.
  • Project Maven, Dragonfly, and probably other things that haven't yet come to light are extremely troubling.
  • A detail from the Dragonfly story that struck me was how the company excluded the privacy review team from its considerations.
  • From CNBC: "Google's annual diversity report reveals that the company's workforce is still largely white and male and that it made very little progress in the last year to change th
@cleverdevil
cleverdevil / overcast-recently-played.py
Last active March 4, 2024 09:28
Fetch recently played episodes from Overcast.fm. Then, publish history to my website.
'''
You'll need to pip install some dependencies:
* python-dateutil
* requests
Also, populate your EMAIL and PASSWORD below.
'''
from xml.etree import ElementTree
@pnathan
pnathan / fb_to_blog.lisp
Created December 23, 2018 09:13
facebook post archive -> md file generator
;; this code is (C) Paul Nathan (@[email protected]), licensed
;; under AGPL3, or CC0, or Public Domain. Whichever the reader
;; desires.
;;
;; essential instructions:
;;
;; download and unzip the archive file, IN JSON FORMAT, from the Zuckerland.
;; this file goes in the toplevel of that directory.
@dominictarr
dominictarr / readme.md
Created November 26, 2018 22:39
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.

@broros

otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

@dariusk
dariusk / friendcamp.md
Last active January 12, 2020 18:49
Friend Camp Info

Some quick things about Friend Camp

from your admin, Darius

  • Friend Camp is compatible with any mobile Mastodon app BUT you will not have friend camp specific features like the ability to post local-only posts just to Friend Camp. For this reason I recommend using the web client (https://friend.camp in your mobile browser) whenever possible.

    • On Android this is fine because Android lets a website send native notifications. Just go to Friend Camp in your browser and choose "add to home screen" from the browser menu. It will behave just like an app and you'll get notifications like normal.
    • On iOS you can pin the website to your home page and it will work great EXCEPT there are no native notifications, so for that reason a lot of users on iOS use other clients like Amaroq or Mast. But I also recommend trying out friend camp without notifications at all! It's nice.
  • Please file bugs with me. Just DM them to me or @ them to me. I will add them to the Friend Camp todo list.

  • We have lots of friend

@RRethy
RRethy / gist:ad8a9a3b1112a48226ec3336fa981224
Last active March 10, 2025 08:53
Seamlessly editing remote files in (Neo)Vim with Netrw and scp

Seamlessly editing remote files in (Neo)Vim with Netrw and scp

Neovim and Vim both come bundled with a standard plugin called Netrw. Netrw acts a file explorer (similar to NERDTree), but more importantly has the ability to work with scp (as well as sftp, rcp, ftp, and lots of others :h netrw-nread) to let you edit files and browse directories that are hosted on a remote machine, inside of your local Vim instance.

This is useful since you are able to use your Vim setup and plugins without copying over your dotfiles to the remote machine. As well, since the file is copied to your local machine, there will be no delay when typing.

Setup

This is optional for Vim, but required for Neovim (check this Neovim issue explaining why).

gif-from-tweet

There are so many great GIFs out there and I want to have copies of them. Twitter makes that harder than it should be by converting them to MP4 and not providing access to the source material. To make it easier, I made a bash pipeline that takes a tweet URL and a filename, extracts the MP4 from that tweet and uses ffmpeg to convert back to GIF.

Dependencies

  • ffmpeg
    • macOS: brew install ffmpeg
    • Ubuntu/Debian: apt install ffmpeg

Some suggestions for Twitter to help devs struggling with the Streaming API deprecation

I'm writing this up in a hurry tonight, apologies if it's a little rambly/ranty. There are a lot of devs out there who have really great apps that rely on the Streaming API and really want to port their apps to webhooks but have no idea how to do it because the technical communication around all this has been scattershot.

-Darius Kazemi, @tinysubversions, 14 May 2018

Make your Securing Webhooks document more helpful

If there is one thing that your team has been clear on, it is this: we need to replace our usage of the Streaming API with the Account Activity API, which uses webhooks. In your Getting Started with webhooks document, the first step is "get your auth keys", which is fine. The second step refers the reader to [Securing webhooks](https://deve

@debsahu
debsahu / HA_RTLAMR.yaml
Last active July 8, 2024 17:48
RTLAMR: RTL-SDR to read electric/gas/water meters
shell_command:
rtlamr_start: 'python3.6 /home/pi/work/rtlamrmqtt.py'
kill_rtlamr: 'pkill -f rtlamr'
automation:
- action:
- data: {}
service: shell_command.rtlamr_start
alias: Start RTLAMR Script
condition: []
@nolanlawson
nolanlawson / how_to_check_signal_apk.md
Last active June 22, 2023 18:28
How to check Signal APK SHA256 fingerprint

To verify the SHA256 fingerprint of a Signal APK you downloaded from their website, use apksigner on the command line, like so:

/path/to/android-sdk/build-tools/26.0.2/apksigner verify --print-certs \
    /path/to/Signal-website-release-4.12.3.apk | grep SHA-256
> dSigner #1 certificate SHA-256 digest: 29f34e5f27f211b424bc5bf9d67162c0eafba2da35af35c16416fc446276ba26
echo 29:F3:4E:5F:27:F2:11:B4:24:BC:5B:F9:D6:71:62:C0 EA:FB:A2:DA:35:AF:35:C1:64:16:FC:44:62:76:BA:26 \