Skip to content

Instantly share code, notes, and snippets.

View krzemienski's full-sized avatar
💭
📼

Nick Krzemienski krzemienski

💭
📼
View GitHub Profile
@chanducky
chanducky / install-java
Created June 20, 2018 06:27
Install java in linux
download java ex jdk-8u171-linux-x64.tar.gz
scp -i /Users/chandrakumar/pmay/chanduaws.pem jdk-8u171-linux-x64.tar.gz ec2-user@host-name:
ssh -i /Users/chandrakumar/pmay/chanduaws.pem ec2-user@host-name
mkdir /usr/java create dir java in usr
cd /usr/java
cp /home/ec2-user/temp/jdk-8u171-linux-x64.tar.gz .
. means copy to current directory
tar xzf jdk-8u171-linux-x64.tar.gz
chown -R root:root jdk1.8.0_171
@mrbar42
mrbar42 / README.md
Last active July 25, 2025 18:19
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@Arclite
Arclite / .gitlab-ci.yml
Last active August 12, 2018 19:05
Companion files for "Adding GitLab CI Support"
stages:
- test
- beta
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
test:
dependencies: []
stage: test
artifacts:
@asus4
asus4 / ffmpeg_hevc_options.txt
Last active December 12, 2024 16:25
ffmpeg GPU HEVC(H.265) encoder options
Encoder hevc_nvenc [NVIDIA NVENC hevc encoder]:
General capabilities: delay
Threading capabilities: none
Supported pixel formats: yuv420p nv12 p010le yuv444p yuv444p16le bgr0 rgb0 cuda d3d11
hevc_nvenc AVOptions:
-preset <int> E..V.... Set the encoding preset (from 0 to 11) (default medium)
default E..V....
slow E..V.... hq 2 passes
medium E..V.... hq 1 pass
@kean
kean / AutoRetry.swift
Last active November 2, 2024 15:47
Smart Auto Retry using RxSwift
// The MIT License (MIT)
//
// Copyright (c) 2017 Alexander Grebenyuk (github.com/kean).
import Foundation
import RxSwift
import RxCocoa
extension ObservableType {
@tehmoon
tehmoon / main.go
Created December 19, 2017 02:30
Download from s3 in a streaming fashion
package main
import (
"net/url"
"fmt"
"github.com/tehmoon/errors"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3/s3manager"
"github.com/aws/aws-sdk-go/service/s3"
"io"
@pedro-stanaka
pedro-stanaka / 0_base_post_install.sh
Created November 28, 2017 19:03
Post Install Script for Manjaro
#!/bin/bash
################################
######### VARIABLES ############
################################
EMAIL="[email protected]"
AUTHOR="Pedro Tanaka"
################################
# Update pacman and install keyring to avoid signature problems
@styblope
styblope / docker-api-port.md
Last active August 4, 2025 10:54
Enable TCP port 2375 for external connection to Docker

Enable TCP port 2375 for external connection to Docker

See this issue.
Docker best practise to Control and configure Docker with systemd.

  1. Create daemon.json file in /etc/docker:

     {"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
    
Updated 2025-01-17 thanks to Yemster's comment.
This should work on any architecture of Amazon Linux 2.
(_Although not tested , should also work for Amazon Linux 2023_).
**Prereq**
- visit https://johnvansickle.com/ffmpeg/ to grab the link to the relevant tarball for your specific server architecture.
- Use `uname -a` to find out your arch if unknown
### TL;DR
anonymous
anonymous / conky_orange_4k.lua
Created October 27, 2017 17:11
conky orange 4k resolution config files
--==============================================================================
-- conky_orange.lua
--
-- author : SLK
-- version : v2011062101
-- license : Distributed under the terms of GNU GPL version 2 or later
--
-- modified: me
-- version : v20171027
-- notes : works on 4k screen. uses conky conf newer >v1.1