Skip to content

Instantly share code, notes, and snippets.

View egidijus's full-sized avatar
🏠
Working from home

Egidijus Ligeika egidijus

🏠
Working from home
View GitHub Profile
@egidijus
egidijus / README.md
Created March 14, 2023 18:36 — forked from lxe/README.md
How to get oobabooga/text-generation-webui running on Windows or Linux with LLaMa-30b 4bit mode via GPTQ-for-LLaMa on an RTX 3090 start to finish.

How to get oobabooga/text-generation-webui running on Windows or Linux with LLaMa-30b 4bit mode via GPTQ-for-LLaMa on an RTX 3090 start to finish.

This guide actually works well for linux too. Just don't bother with the powershell envs

  1. Download prerequisites

  2. (Windows Only) Open the Conda Powershell.

@egidijus
egidijus / reclaimWindows10.ps1
Created June 1, 2021 18:30 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@egidijus
egidijus / web-servers.md
Created October 23, 2019 20:11 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@egidijus
egidijus / run-tests.sh
Created May 25, 2019 12:17 — forked from criccomini/run-tests.sh
run-tests.sh
#!/bin/bash
# Runs airflow-dags tests.
# Set Nose defaults if no arguments are passed from CLI.
CWD="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
NOSE_ARGS=$@
if [ -z "$NOSE_ARGS" ]; then
NOSE_ARGS=" \
--with-coverage \
@egidijus
egidijus / test_dags.py
Created May 25, 2019 12:16 — forked from criccomini/test_dags.py
test_dags.py
import os
import unittest
from airflow.models import DagBag
class TestDags(unittest.TestCase):
"""
Generic tests that all DAGs in the repository should be able to pass.
"""
@egidijus
egidijus / create_fake_elasticsearch_indexes_and_data.py
Last active May 3, 2019 09:49
Use this script to generate some indexes and documents in your elasticsearch cluster, with some rules. I use this to "fake" log message documents.
#!/bin/env python
from elasticsearch import Elasticsearch as es
from datetime import datetime, timedelta
import random, sys, uuid
es = es("http://localhost:9200")
"""
create some sample data, so we can use the cleaner to test the cleaning
"""
@egidijus
egidijus / golang_onboarding.md
Last active October 2, 2018 10:42
how to start with golang

golang installation linux

download

wget https://dl.google.com/go/go1.11.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.11.linux-amd64.tar.gz
mkdir ~/go

set paths

add these paths to your bash/zsh profile

@egidijus
egidijus / decrypt.sh
Created September 9, 2018 10:07 — forked from PaulMaddox/decrypt.sh
LUKS encrypted image file
#!/bin/bash
FILENAME="private.img";
FILESIZE="100M";
# Create encrypted volume if it doesn't exist
if [ ! -f $FILENAME ]; then
echo "Creating image file...";
dd if=/dev/zero of=$FILENAME bs=$FILESIZE count=0 seek=1
@egidijus
egidijus / guest2skel.sh
Created January 18, 2018 16:32
snapshot guest user account in to a skeleton on ubuntu 16.04
#!/bin/bash
# Version: 1.1.0
# Date: 19/03/2016
# Origin: http://cascaval.com
#
# UBUNTU 16.04
# Start a guest session and customize it as you like, then switch users to the main/admin user, and run this script.
# The next time you login in to a "fresh" guest, the guest account will be setup from the skeleton.
@egidijus
egidijus / ssl-cert-info.sh
Created July 18, 2017 11:48
Shell script to check SSL certificate info like expiration date and subject. Taken from http://giantdorks.org/alain/shell-script-to-check-ssl-certificate-info-like-expiration-date-and-subject/
#!/bin/bash
usage()
{
cat <<EOF
Usage: $(basename $0) [options]
This shell script is a simple wrapper around the openssl binary. It uses
s_client to get certificate information from remote hosts, or x509 for local
certificate files. It can parse out some of the openssl output or just dump all