Here's a method to chat in a twitch #channel with IRSSI
Get your oauth token here: https://twitchapps.com/tmi/
Server block
server = {
address = "irc.chat.twitch.tv";
Here's a method to chat in a twitch #channel with IRSSI
Get your oauth token here: https://twitchapps.com/tmi/
Server block
server = {
address = "irc.chat.twitch.tv";
$ openssl s_client -servername token.actions.githubusercontent.com -showcerts -connect token.actions.githubusercontent.com:443 < /dev/null 2>/dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sed "0,/-END CERTIFICATE-/d" > certificate.crt | |
$ openssl x509 -in certificate.crt -fingerprint -noout | cut -f2 -d'=' | tr -d ':' | tr '[:upper:]' '[:lower:]' | |
6938fd4d98bab03faadb97b34396831e3780aea1 |
#/bin/bash | |
#set -x | |
#ZIP_URL="http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2015-11-24/2015-11-21-raspbian-jessie-lite.zip" | |
#ZIP_NAME="2015-11-21-raspbian-jessie-lite.zip" | |
#IMG_NAME="2015-11-21-raspbian-jessie-lite.img" | |
ZIP_URL="http://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-09-30/2019-09-26-raspbian-buster-lite.zip" |
##Dockerfile | |
FROM centos:7 | |
RUN yum update -y && yum install -y wget perl openssl-devel dmidecode | |
RUN wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash | |
RUN yum install -y srvadmin-idracadm7 | |
RUN cp /opt/dell/srvadmin/bin/idracadm7 /usr/local/bin/racadm | |
##Build via... (run inside somedir/Dockerfile) |
--- | |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: some-sftp-server | |
Parameters: | |
HostedZoneIdParam: | |
Type: String | |
Description: Hosted Zone ID | |
SFTPHostnameParam: | |
Type: String |
#include <ESP8266WiFi.h> | |
#include <ESP8266mDNS.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiManager.h> | |
#include <ArduinoOTA.h> | |
#include <WebSocketsClient.h> | |
#include <DNSServer.h> | |
void setup() { | |
Serial.begin(115200); |
The following are examples of the four types rate limiters discussed in the accompanying blog post. In the examples below I've used pseudocode-like Ruby, so if you're unfamiliar with Ruby you should be able to easily translate this approach to other languages. Complete examples in Ruby are also provided later in this gist.
In most cases you'll want all these examples to be classes, but I've used simple functions here to keep the code samples brief.
This uses a basic token bucket algorithm and relies on the fact that Redis scripts execute atomically. No other operations can run between fetching the count and writing the new count.
def convert(sqlContext: SQLContext, filename: String, schema: StructType, tablename: String) { | |
// import text-based table first into a data frame. | |
// make sure to use com.databricks:spark-csv version 1.3+ | |
// which has consistent treatment of empty strings as nulls. | |
val df = sqlContext.read | |
.format("com.databricks.spark.csv") | |
.schema(schema) | |
.option("delimiter","|") | |
.option("nullValue","") | |
.option("treatEmptyValuesAsNulls","true") |