Skip to content

Instantly share code, notes, and snippets.

View AramZS's full-sized avatar
🎯
Focusing

Aram Zucker-Scharff AramZS

🎯
Focusing
View GitHub Profile

This gist has a self-contained HTML file with the intent that it can be dropped into any web page and work. The images are converted to data URIs to enable that.

You can also find the images here: https://imgur.com/a/DXi3nFp and they are hosted by GitHub in the Markdown file included.

This is a backup of the article at https://www.mediamatters.org/twitter/musk-endorses-antisemitic-conspiracy-theory-x-has-been-placing-ads-apple-bravo-ibm-oracle

Here is the page as a Web Archive WARC file - https://drive.google.com/file/d/1sTEZOtgX1Kqe5gjgdlZmIDtGjHVAsmK_/view?usp=sharing

@AramZS
AramZS / gpg-signing.md
Created April 21, 2023 15:44 — forked from xavierfoucrier/gpg-signing.md
GPG signing with Git and Github Desktop

Hi Github users,

You can now signed your commits on Github using at least Git 2.18.0 and Github Desktop 1.6.1.

  1. Generate a GPG key and add it to Github: https://help.github.com/articles/generating-a-new-gpg-key (if you don't want to type a passphrase on every commit, you need to press "Enter" when the console will prompt you to type a passphrase)

  2. Configure Git properly by editing the .gitconfig file using the command line git config --global --edit in a terminal, then replace YOUR_GITHUB_EMAIL, YOUR_SIGNING_KEY and GPG_BINARY_PATH with your data

@AramZS
AramZS / getSqliteWorking.sh
Created December 22, 2022 22:08
Get SQLite3 to work on Raspbian
sudo apt-get install libsqlite3-dev
npm install sqlite3 --build-from-source --sqlite=/usr
{
"props": {
"pageProps": {
"article": {
"_createdAt": "2022-10-18T11:14:31Z",
"_id": "a9c6ea0e-97c9-4647-b293-308bfeff9432",
"author": {
"authorSlug": "/author/karina-tsui",
"bio": [{
"_key": "c02c7d71fb6a",
@AramZS
AramZS / nvmrc-loader.plugin.zsh
Created June 13, 2021 01:58 — forked from quchao/nvmrc-loader.plugin.zsh
Calling `nvm use` automatically in a directory with a .nvmrc file
#! /usr/bin/env zsh
# Ref: https://github.com/creationix/nvm#calling-nvm-use-automatically-in-a-directory-with-a-nvmrc-file
# place this after nvm initialization!
autoload -Uz add-zsh-hook
# Function: load-nvmrc
load-nvmrc() {
local _CUR_NODE_VER="$(nvm version)"
@AramZS
AramZS / apple-news-redirect.html
Created February 18, 2021 20:14
Apple News Redirect Page
<!DOCTYPE html>
<html class="js no-touch svg no-oldie no-ie" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
prefix="og: http://ogp.me/ns#">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1" />
<script type="text/javascript">
if (window.self === window.top) {
@AramZS
AramZS / IABFrameworkTest.js
Created January 2, 2020 22:21
A Basic Testers Kit for USP API CCPA Compliance.
// Instantiate a function immediately to stack trace for finding what vendors are leveraging the function
Function.prototype.clone = function() {
var that = this;
var temp = function temporary() { return that.apply(this, arguments); };
for(var key in this) {
if (this.hasOwnProperty(key)) {
temp[key] = this[key];
}
}
return temp;
@AramZS
AramZS / FindOutWhatEmotionsNYT_ThinksIHave.js
Last active May 6, 2019 02:37
Find Out What Emotions The New York Times thinks you have about a story.
Object.keys(window.__preloadedData.initialState).forEach(function(key){
if (key.match(/AdTargetingParam/)){
// console.log(window.__preloadedData.initialState[key]);
if (window.__preloadedData.initialState[key].key.match(/emotion/)){
console.log(window.__preloadedData.initialState[key].value);
}
}
});
@AramZS
AramZS / lazyloading-cats.html
Created April 8, 2019 15:12
Testing new Lazyloading HTML feature with cats
<html>
<head></head>
<body onload='console.log("Body has loaded!");'>
<img src='https://upload.wikimedia.org/wikipedia/commons/6/69/June_odd-eyed-cat_cropped.jpg'
onload='console.log("visible cat");' />
<div style='height:10000px;'></div>
<img loading='lazy'
src='data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxAQEhIQEBAQEBUQFxAVFRAVFRAWFRUVFREXFhUVFRUYHSggGBolGxUXITEhJSkrLi4uGB8zODMsNygtLisBCgoKDg0OFxAQFS0dHR4tLS8rKy0tLS0tLS0tLS0tKy0rLS0tLS0tLS0tKystKy0tLS0tKystKy0tKzcuLi0tK//AABEIALcBFAMBIgACEQEDEQH/xAAcAAACAgMBAQAAAAAAAAAAAAAAAQUGAgMEBwj/xAA6EAABAwIEAwYEBQIGAwAAAAABAAIRAyEEBRIxQVFhBhMicYGRMqGx0QdCweHwcvEUFTNSYoIjQ7L/xAAYAQEBAQEBAAAAAAAAAAAAAAAAAQIDBP/EACQRAQEAAgMAAgIBBQAAAAAAAAABAhEDITESQRNRIgRhceHw/9oADAMBAAIRAxEAPwD2GEnFZLFwW2WklZBYkJhVGaSJQEDAWQSasggZQEJhRQmEIQCE0IEhNCAUL2rzduEw9Ss4gECGzzKmSV41+Mef66rcIwmKd3weJEx9PdTK6i4zdUGvXdWe6o93ieSST/PXpK68Lh9t3dLgeZK5MNQkiLzwH3UuGaBvHEkX/uuL0xlUbpb4v0ACsH4X43ucbonw1gWxwk3HrIVNzHE2IBPqbqb7OVO7fQqyZD2beYieizLrJvLHeD6CasljTMgHmsl6XiCEIUAhCEGJQmhU

Keybase proof

I hereby claim:

  • I am aramzs on github.
  • I am aramzs (https://keybase.io/aramzs) on keybase.
  • I have a public key ASDeNWmshQhFnp83d565t78yues4JCFUmrvKl2LhxOYS7wo

To claim this, I am signing this object: