Skip to content

Instantly share code, notes, and snippets.

@glallen01
glallen01 / protobuf_spark_schema_convertor.py
Created June 12, 2024 22:01 — forked from ragoragino/protobuf_spark_schema_convertor.py
Protobuf schema to Spark schema conversion
import google.protobuf.descriptor
from pyspark.sql.types import (
StructType,
StructField,
StringType,
IntegerType,
LongType,
DoubleType,
FloatType,
module Jekyll
# Convert org-mode files.
require 'org-ruby'
class OrgConverter < Converter
safe true
def setup
# No-op
end
@glallen01
glallen01 / puppet_gem_installer.sh
Last active July 2, 2016 02:30 — forked from jim80net/puppet_gem_installer.sh
Install puppet via gem on smartos
#!/bin/bash
# For installation of puppet by gem for smartos
#
pkgin -y in ruby21 openssl
gem install puppet
# gem install deep_merge
sudo puppet resource group puppet ensure=present
sudo puppet resource user puppet ensure=present gid=puppet shell='/bin/false'