Skip to content

Instantly share code, notes, and snippets.

View suryansh011's full-sized avatar

Suryansh Singh suryansh011

View GitHub Profile
@ChristianAlexander
ChristianAlexander / Podcast Transcription.livemd
Created April 12, 2024 23:03
Podcast Transcription LiveBook

Podcast Transcription

Mix.install([
  {:req, "~> 0.4.14"},
  {:fast_rss, "~> 0.5.0"},
  {:bumblebee, "~> 0.5.3"},
  {:exla, "~> 0.7.1"},
  {:kino, "~> 0.12.3"}
])
@suryansh011
suryansh011 / nginx.conf
Created August 30, 2021 12:19
Nginx configuration with per user web directory
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@cwgem
cwgem / build_guide.md
Last active July 10, 2024 01:31
Building `dockerd` and `docker-cli` from source

Introduction

This guide looks at what it will take to build dockerd and docker-cli from source with Ubuntu. Ubuntu was chosen as the OS as it uses the same apt-get calls the standard Dockerfile method uses making the experience a bit more seamless. While the official method is building docker in a container, here are some reasons why you may want to build this way:

  • Custom source modifications for testing
  • System that does not yet have a docker(d) binary release
  • You want to test things on a non-standard toolchain
  • You just want to deep dive

As you can probably tell using this method means you're delving away from support. Please don't file issues/PRs unless you can reproduce in the official build environment. In fact unless you really have one of the strong needs above you're better off building off a container since this guide is mostly a lot of copy/paste from the Dockerfile used in the official build system.

@d-bo
d-bo / nginx
Created July 28, 2014 03:14
nginx rc.d init script freebsd
#!/bin/sh
# if compiled from sources
# place this file inside /usr/local/etc/rc.d
# point _pidfrefix where nginx holds pid file
. /etc/rc.subr
name="nginx"
rcvar=nginx_enable