Skip to content

Instantly share code, notes, and snippets.

View ftab's full-sized avatar

Dennis Field ftab

View GitHub Profile
@ftab
ftab / asrc_element.c
Created February 13, 2026 19:40
ASRC ESP-ADF audio element
#include "asrc_element.h"
#include "audio_common.h"
#include "audio_element.h"
#include "audio_error.h"
#include "audio_mem.h"
#include "esp_log.h"
#include <math.h>
#include <string.h>
@ftab
ftab / test.txt
Created September 11, 2024 21:49
test
v1.0.1
@ftab
ftab / build-bruteforce-wallet-for-mac.sh
Created February 11, 2021 05:14
Compile bruteforce-wallet for Mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install berkeley-db openssl automake autoconf
export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
git clone https://github.com/glv2/bruteforce-wallet
cd bruteforce-wallet
./autogen.sh
./configure
make -j
sudo make install
@ftab
ftab / playlist-maker.py
Last active March 20, 2020 21:06
Text file importer to a YouTube playlist
# This gist has been superseded by https://github.com/ftab/playlist-maker
# -*- coding: utf-8 -*-
# Sample Python code for youtube.playlistItems.insert
# See instructions for running these code samples locally:
# https://developers.google.com/explorer-help/guides/code_samples#python
import os
@ftab
ftab / job.log
Created January 27, 2018 16:11
Auto deploy registry retry on GitLab 10.4
Running with gitlab-runner 10.4.0 (857480b6)
on Beast (043170ff)
Using Docker executor with image docker:17.09.1-ce-git ...
Starting service docker:17.09.1-ce-dind ...
Pulling docker image docker:17.09.1-ce-dind ...
Using docker image docker:17.09.1-ce-dind ID=sha256:d6d625036792145b25ca36e0b031e6034e7d7ff2f1fd376c6a87c738ec44023b for docker service...
Waiting for services to be up and running...
Using docker image sha256:b4efc6f800c4c8870d64dbd0baf769da54bb4d8f6ae7b41c57d3d5f5e9ed4bf5 for predefined container...
Pulling docker image docker:17.09.1-ce-git ...
Using docker image docker:17.09.1-ce-git ID=sha256:b63f802e4727b8d7785622ac6082a6365bac38f27b5603e9975b814cc20771d5 for build container...
@ftab
ftab / Dockerfile
Created December 12, 2017 21:15
Trying to get into my rails console from docker image
FROM ruby:2.4.2-alpine
RUN apk add --update \
build-base \
postgresql-dev \
nodejs \
tzdata \
&& rm -rf /var/cache/apk/* && \
cp /usr/share/zoneinfo/US/Eastern /etc/localtime && \
echo "US/Eastern" > /etc/timezone
@ftab
ftab / doodad.h
Created September 26, 2017 23:55
Unpacking/packing variable sized packet data, C++ inheritance/introspection
#ifndef DOODAD_H
#define DOODAD_H
#include <string>
#include <deque>
/* Mock-up protocol for figuring out how to unpack bytes sent over the wire/air
into structures with C++ inheritance and introspection. Is it even possible?
Not included: separators, checksumming. Just dealing with the raw bytes