Skip to content

Instantly share code, notes, and snippets.

@pedrogomes29
pedrogomes29 / hadoop-cluster-setup-guide.md
Last active May 13, 2024 21:11
Building a Pseudo-Distributed Hadoop Cluster with HBase, HDFS, YARN and embedded Zookeeper using Docker: A Step-by-Step Guide

Building a Pseudo-Distributed Hadoop Cluster with HBase, HDFS, YARN and embedded Zookeeper using Docker: A Step-by-Step Guide

Introduction

In a recent project, I had to set up a pseudo-distributed Hadoop cluster with HBase, HDFS, YARN and embedded Zookeeper using Docker. This guide aims to simplify the process of setting such a cluster, providing clear instructions and practical insights.

Within the repository, you'll discover not only the setup of the Hadoop ecosystem but also it's integration with a Java service, named hbase-client, which uses both the HBase and the MapReduce Java APIs to interact with the Hadoop Cluster. Additionally, search through the backend folder to explore a Python service, which uses Happybase, enabling indirect interaction with HBase via Thrift.

In the course of this project, I encountered the challenge of lacking an official Docker image for HBase. Over a day was dedicated to crafting a custom Dockerfile, ensuring the seamless

@nunofgs
nunofgs / README.md
Last active May 13, 2024 21:08
Use any RTSP camera with Prusa Connect

I use a cheap Tapo C100 webcam to monitor my 3D prints. It supports RTSP.

Screenshot 2023-07-17 at 23 26 34

Instructions

  1. Go to the Cameras section at https://connect.prusa3d.com
  2. Add a new camera.
  3. Click the QR code link
  4. Click "Start Camera"
@standinga
standinga / AudioPlayground.swift
Last active May 13, 2024 21:01
Swift Playground shows how to play multiple wav files on top of background audio file, using AVAudioPlayerNode, AVAudioMixerNode, AVAudioEngine
import AVFoundation
import UIKit
import PlaygroundSupport
PlaygroundPage.current.needsIndefiniteExecution = true
class AudioPlayer {
var backgroundAudioFile:AVAudioFile
var topAudioFiles: [AVAudioFile] = []
@andferrari
andferrari / JoyDivision.jl
Last active May 13, 2024 21:00
Julia Unknown Pleasures plot
using CSV, Tables, Plots
pulsar = CSV.read(download("https://gist.githubusercontent.com/borgar/31c1e476b8e92a11d7e9/raw/0fae97dab6830ecee185a63c1cee0008f6778ff6/pulsar.csv"), Tables.matrix)
α = 2
p = plot(border=:none, bg = :black)
for k in 79:-1:1
plot!(pulsar[80 - k ,:] .+ α*k, label="", fillrange = α*k,
fillalpha = 1, fillcolor = :black, c=:white)
end
p
@Daan-Grashoff
Daan-Grashoff / google_search_maps_addon.js
Last active May 13, 2024 21:00
Bring back the google maps button when searching on google
// ==UserScript==
// @name Google maps addon
// @namespace http://tampermonkey.net/
// @version 2024-03-21
// @description Bring google maps button back
// @author You
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
@SteveALee
SteveALee / README.md
Last active May 13, 2024 21:02
Build audacity with ASIO support on Windows

Build your own Audacity for Windows with ASIO driver support

You might want Audacity to work with the ASIO drivers supplied with your sound devices. Commmon reasons for this are:

  • Only ASIO drivers are available (eg Behringer mixers)
  • Performance - ASIO has low latency (delays)
  • You don't want to use the ASIO4All bridging driver with non ASIO drivers
  • Multi channel support - though Audacity is not so good at handling other than Stereo or Mono

Due to licensing restrictions the Audacity team cannot provide a prebuilt version with Windows ASIO driver support. But with this guide and script you can easily build your own Audacity with ASIO support.

@robschmuecker
robschmuecker / README.md
Last active May 13, 2024 20:57
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@MarvinJWendt
MarvinJWendt / wordlist-german.txt
Created September 7, 2017 03:19
All german words (german wordlist).
This file has been truncated, but you can view the full file.
AA
AAA
Aachen
Aachener
Aachenerin
Aachenerinnen
Aachenern
Aacheners
Aachens
@noraj
noraj / gulp-cjs-to-esm.md
Last active May 13, 2024 20:55
Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Moving gulpfile from CommonJS (CJS) to ECMAScript Modules (ESM)

Context

del v7.0.0 moved to pure ESM (no dual support), which forced me to move my gulpfile to ESM to be able to continue to use del.

The author sindresorhus maintains a lot of npm packages and does not want to provides an upgrade guide for each package so he provided a generic guide. But this guide is a bit vague because it's generic and not helping for gulp, hence this guide.

Guide

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 13, 2024 20:55
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory