Skip to content

Instantly share code, notes, and snippets.

View lxe's full-sized avatar
🌮
Taco

Aleksey Smolenchuk lxe

🌮
Taco
View GitHub Profile
@dhh
dhh / linux-setup.sh
Last active May 24, 2024 06:35
linux-setup.sh
# CLI
sudo apt update -y
sudo apt install -y \
git curl fzf eza \
docker.io docker-buildx \
build-essential pkg-config autoconf bison rustc cargo clang \
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \
rbenv apache2-utils
@MSFTserver
MSFTserver / disco_v5_plus_Win_Install.md
Last active June 25, 2023 02:13
guide to installing disco v5+ locally on windows

Install Disco Diffusion v5 for Windows

NOTE: Pytorch3d no longer has to be compiled i have stripped out the function we use to make this a lot easier and also so we do not have to use WSL2 with linux and can now run directly on your windows system.

Comments section is not checked often for issues please join the disco diffusion discord for assistance

https://discord.gg/mK4AneuycS

You may now use the official disco diffusion notebook with this tutorial as it has been uodated to reflect the changes here for better cross platform support

@lxe
lxe / README.md
Last active February 27, 2023 14:59
Portable Hex Beam - K6LXE

Portable Hex Beam - K6LXE

THIS IS A VERY EARLY UNREFINED PROTOTYPE -- NO MEASUREMENTS AND TOLERANCES ARE A BIT WACKY

Pictures and measurements are coming soon.

Parts

image

@kinoc
kinoc / j6b_train_hf_ds.py
Last active August 9, 2023 03:05
So now you want to finetune that GPT-J-6B on a 3090/TITAN GPU ... okay, using HF and DeepSpeed too
# So now you want to finetune that GPT-J-6B on a 3090/TITAN GPU ... okay
# More exploratory coding. It uses the Huggingface model port, deepspeed and reads all text/md files from a target directory
# It is a fragment of a larger system with remote editing, but that's another story
# This is the raw, training tester. Items to look out for:
# - uses DeepSpeed and has a DS config
# - to save space uses SGD instead of ADAM
# - uses gradient checkpointing
# - freezes 25% of the layers to fit
# Assumes you can already run https://gist.github.com/kinoc/2d636a68876cd3de7b6e9c9452b61089
@lxe
lxe / goes16-rtlsdr.md
Last active May 8, 2024 20:43
Receive GOES-16 and GOES-17 Images with a Raspberry Pi and RTL-SDR dongle
@ecto
ecto / maybe_exit.sh
Last active September 15, 2016 17:51
~ :q 10:50 AM
Your shell has no parents. Are you sure you want to exit? (y/n)n
@lhecker
lhecker / bytesum_intrinsics.c
Created May 13, 2014 15:14
Optimized version of bytesum_intrinsics.c from http://jvns.ca/blog/2014/05/12/computers-are-fast/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <emmintrin.h>
/*
* Round up n to the next multiple of m.
* m needs to be a power of 2.
*/
@takeshixx
takeshixx / hb-test.py
Last active March 9, 2024 13:37
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@vicapow
vicapow / .bash_profile
Created March 24, 2014 18:53
a small .bash_profile snippet to force renew a new local ip from a DHCP server
random-mac()
{
node -e "var v = [1,2,3,4,5,6,7,8,9,0,'a','b','c','d','e','f']; var r = function(){ return v[Math.floor(Math.random() * v.length)] }; console.log( '00:' + r() + r() + ':' + r() + r() + ':' + r() + r() + ':' + r() + r() + ':' + r() + r())"
}
new-ip()
{
sudo ifconfig en0 ether `random-mac`
sudo ipconfig set en0 BOOTP
sudo ipconfig set en0 DHCP
@mikeal
mikeal / gist:9242748
Last active June 23, 2020 05:17
Response to Nodejitsu NPM Trademark

I've known people at nodejitsu for years, since before the company even existed. I still consider many of them friends. That said, somebody over there has lost their mind.

Trademarks are an important part of open source. They protect the integrity of the trust that is built by any project. A classic example of why this is the case is Firefox. Suppose that a malware producer takes the Firefox codebase, which is free and open source, packages up their malware with it and then releases it as "Firefox". Then they buy search advertising and suddenly their bad and malicious version of Firefox is the first result on search engines across the web. This is clearly a bad thing for Firefox and open source everywhere, but what can Mozilla do to protect their community of users?

They can't enforce a software license since the use is permitted under the Mozilla Public License. They can, however, enforce on these hypothetical bad actors using their trademark on the word "Fi