Skip to content

Instantly share code, notes, and snippets.

View tsirysndr's full-sized avatar
🦀
I may be slow to respond.

Tsiry Sandratraina tsirysndr

🦀
I may be slow to respond.
View GitHub Profile
.progressBar {
background-color: #ab28fc;
}
@tsirysndr
tsirysndr / forward.md
Created April 27, 2022 08:12 — forked from jamestalmage/forward.md
Using Firebase to Authenticate to Google Drive

Note: There is a lot of information here, but if I have provided a link, it is probably something you should click on and read. OAuth is a complex enough subject on it's own, and hacking these two services together only adds to it.

Even so, I have found Firebase's API to be simpler than almost any other OAuth solution I have explored. When all is said and done, the important bits of code related to authentication is actually less than 10 lines. If you have ever tried to implement your own OAuth flow before, you know how amazing that is.

In the end, it may be worth using Firebase for authentication, even if that's the ONLY thing you use it for.

BEGIN MESSAGE.
2LYdKfijfTuio80 zZku9gW4GDkMABb GDibenCKND5Np6j lmWKKqJzTjxdkjP
QH1X9Ldb00CCFZj X7PpnG9uNo2TCKq 6Xr2MZHgg6vh0iQ eWJ0qedrJDCeXkJ
CiMZxv6s1RptuOt 5odHR3ZWT9QBXYH cHDgMuF46Mo30bt mMQZhEGSJXs1Gxk
Va5zFAc39Ac8AaE Tne9YIVA9j6z0q9 F2UPY29HFxl.
END MESSAGE.
@tsirysndr
tsirysndr / sendRawTransaction.js
Created March 12, 2020 22:18 — forked from raineorshine/sendRawTransaction.js
Sends a raw transaction with web3 v1.2.2, ethereumjs-tx v2.1.1, and Infura
const Web3 = require('web3')
const Tx = require('ethereumjs-tx').Transaction
// connect to Infura node
const web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.infura.io/INFURA_KEY'))
// the address that will send the test transaction
const addressFrom = '0x1889EF49cDBaad420EB4D6f04066CA4093088Bbd'
const privateKey = new Buffer('PRIVATE_KEY', 'hex')
@tsirysndr
tsirysndr / gist:e88f19c7a53c51007a7ee1d6df551e28
Created January 12, 2020 19:11 — forked from tranthamp/gist:2721326
D-Bus and Connman notes
# Connman Technology API examples: (Object Path: /net/connman/technology/<wifi/ethernet>, Interface: net.connman.Technology)
# GetProperties
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.GetProperties
# Scan
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.Scan
# Disable/Enable wifi
dbus-send --system --dest=net.connman --print-reply /net/connman/technology/wifi net.connman.Technology.SetProperty string:Powered variant:boolean:true
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box.
✅ did:muport:QmSZTyH97XiagWtGpUxFyA8wHV4JoDKBYTRxcpyK4rNdpj ✅
Create your profile today to start building social connection and trust online at https://3Box.io/
#!/bin/sh
apt-get update
apt-get install -y \
build-essential \
git-core \
subversion \
libjansson-dev \
sqlite \
autoconf \
@tsirysndr
tsirysndr / Dockerfile
Created April 24, 2019 21:30
Build Rockbox inside docker
FROM ubuntu:16.04
RUN apt-get update -y
RUN apt-get install -y build-essential libsdl1.2-dev zip unzip git
WORKDIR /usr/src
RUN git clone git://git.rockbox.org/rockbox
WORKDIR /usr/src/rockbox/build
RUN ../tools/configure --target=200 --type=N --lcdwidth=320 --lcdheight=240
RUN make && make install
WORKDIR /
;
var CryptoLib = { };
(function(root, factory) {
if (typeof exports === "object") {
// CommonJS
module.exports = exports = factory();
} else if (typeof define === "function" && define.amd) {
// AMD
define([], factory);
} else {
@tsirysndr
tsirysndr / ASimpleSOAPClient.java
Created August 23, 2017 17:08 — forked from kdelfour/ASimpleSOAPClient.java
A simple SOAP Client class to send request body to a SOAP Server. Useful when you want to test a SOAP server and you don't want to generate all SOAP client class from the WSDL.
package com.kdstudio.snippets.soap.client;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.MimeHeaders;