Skip to content

Instantly share code, notes, and snippets.

View eznj's full-sized avatar
👾

eznj

👾
View GitHub Profile
@rain-1
rain-1 / LLM.md
Last active May 17, 2024 05:49
LLM Introduction: Learn Language Models

Purpose

Bootstrap knowledge of LLMs ASAP. With a bias/focus to GPT.

Avoid being a link dump. Try to provide only valuable well tuned information.

Prelude

Neural network links before starting with transformers.

@Bryniac
Bryniac / Blue_Bird.ino
Created January 10, 2021 09:38
I have been learning Arduino for a few days so I tried modifying an existing project. This gist was based on https://gist.github.com/nicksort/4736535
const int d4s = 311;
const int e4 = 330;
const int f4s = 370;
const int g4s = 415;
const int a4 = 440;
const int b4 = 494;
const int c5s = 523;
const int buzzerPin = 4;
const int ledPinB = 12;
@knandersen
knandersen / morphagene_directory.py
Last active May 12, 2021 03:16
Takes an input directory containing wave files and splices them together into a morphagene reel
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
USAGE:
morphagene_directory.py -d <inputdirectory> -o <outputfile>'
Script will go through <inputdirectory> and splice all wave-files
together in alphabetic order and place a marker in between.
Requires all wave-files in directory to have the same number of channels and bitrate!
@eznj
eznj / approver.yml
Last active August 4, 2020 20:14
SQS structure sign-off service
provider: # s3, gcs
storage_location: # s3 location, gcs location
version: <generated schema vers>
approvals:
require_staging: true
required: 2
total: 1
team_a: 0
team_b: 1
structure:
@ageis
ageis / systemd_service_hardening.md
Last active May 4, 2024 15:57
Options for hardening systemd service units

security and hardening options for systemd service units

A common and reliable pattern in service unit files is thus:

NoNewPrivileges=yes
PrivateTmp=yes
PrivateDevices=yes
DevicePolicy=closed
ProtectSystem=strict
@jkras
jkras / newrelic-infra.config
Created January 2, 2017 23:08
New Relic Infrastructure Server Config file for AWS Elastic Beanstalk
files:
"/home/ec2-user/new_relic_servers_setup.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
printf "license_key: $NEW_RELIC_LICENSE_KEY" | sudo tee /etc/newrelic-infra.yml
printf "[newrelic-infra]\nname=New Relic Infrastructure\nbaseurl=http://download.newrelic.com/infrastructure_agent/linux/yum/el/6/x86_64\nenable=1\ngpgcheck=0" | sudo tee /etc/yum.repos.d/newrelic-infra.repo
yum -q makecache -y --disablerepo='*' --enablerepo='newrelic-infra'
@mandiwise
mandiwise / Update remote repo
Last active May 15, 2024 09:50
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket
@jamesonjlee
jamesonjlee / gist:11271979
Created April 24, 2014 22:40
dynamodb local setup
sudo apt-get install openjdk-7-jre-headless -y
cd /home/ubuntu/
mkdir -p dynamodb
cd dynamodb
wget http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest
tar -xvzf dynamodb_local_latest
rm dynamodb_local_latest
mv dynamodb_local_*/ dynamodb/
@eznj
eznj / star_wars.ino
Last active September 26, 2023 18:24
Arduino Star Wars Song
const int c = 261;
const int d = 294;
const int e = 329;
const int f = 349;
const int g = 391;
const int gS = 415;
const int a = 440;
const int aS = 455;
const int b = 466;
const int cH = 523;
@eznj
eznj / Apache mod_gizip stuff gzip
Created January 15, 2013 07:37
Apache 1.3 Gzip mod_gzip stuff..
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_keep_workfiles No
mod_gzip_can_negotiate Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_min_http 1000
mod_gzip_minimum_file_size 300