https://github.com/USER/REPO/
Click the gear icon on the right sidebar next to "About".
Uncheck everything you don't need to remove clutter.
When in doubt, uncheck. You can always recheck later.
#!/bin/sh | |
#*************************************************************************** | |
# _ _ ____ _ | |
# Project ___| | | | _ \| | | |
# / __| | | | |_) | | | |
# | (__| |_| | _ <| |___ | |
# \___|\___/|_| \_\_____| | |
# | |
# Copyright (C) 1998 - 2020, Daniel Stenberg, <[email protected]>, et al. | |
# |
// joaat.c | |
#include <stdio.h> | |
unsigned long joaat_i(const unsigned char* s) { | |
unsigned long hash = 0; | |
while (*s) { | |
hash += ((*s>64&&*s<91)?((*s++)+32):*s++); // A-Z -> a-z | |
hash += (hash << 10); | |
hash ^= (hash >> 6); |
https://github.com/USER/REPO/
Click the gear icon on the right sidebar next to "About".
Uncheck everything you don't need to remove clutter.
When in doubt, uncheck. You can always recheck later.
This will blow away anything that is not committed.
git reset --hard
git submodule foreach --recursive 'git reset HEAD . || :'
git submodule foreach --recursive 'git checkout -- . || :'
git submodule update --init --recursive
git clean -d -f -f -x
git submodule foreach --recursive git clean -d -f -f -x
#!/bin/sh | |
xldd() { if [ -z "$1" ]; then echo 'xldd: usage: xldd <elf>'; else if [ -z "$CROSS_COMPILE" ]; then echo 'xldd: error: $CROSS_COMPILE not defined'; else if [ -x "$CROSS_COMPILE""readelf" ]; then echo "xldd: "$1""; "$CROSS_COMPILE""readelf" -d "$1" | grep "Shared library:"; else echo "xldd: error: "$CROSS_COMPILE""readelf" is not executable"; fi; fi; fi; } |
# Git | |
!/**/.gitkeep | |
!/**/.keep | |
# Object files | |
*.d | |
*.o | |
*.ko | |
*.obj | |
*.elf |
#!/bin/sh | |
# dt=$(echo -ne "GET / HTTP/1.1\r\nHost: whatismyip.akamai.com\r\nAccept: text/plain\r\nConnection: close\r\n\r\n" | nc -w1 whatismyip.akamai.com 80 | awk -F': ' '/Date: /{print $2;exit}') | |
# t=$(date -d "$dt" +%s) | |
a=$((printf "c%47s" | nc -uw1 pool.ntp.org 123 | xxd -s40 -l4 -p) 2>/dev/null) | |
if [ ! -z "$a" ]; then | |
b=$((printf "%d" 0x$a) 2>/dev/null) | |
if [ "$b" -gt 2208988800 ] 2>/dev/null; then | |
t=$((0x$a-2208988800)) |
#!/bin/sh | |
ipvalid() { | |
if expr "$1" : '[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*$' >/dev/null; then | |
return 0 | |
fi | |
return 1 | |
} | |
# IP=$(ifconfig wlan0 | grep -m1 'inet addr:' | cut -d: -f2 | cut -d' ' -f1) |
<# : | |
@echo off | |
cd /d "%~dp0" | |
md bin 2>nul | |
md models\gpt4-x-alpaca-13b-ggml 2>nul | |
md prompts 2>nul | |
if not exist "bin\wget.exe" ( | |
powershell -nol -noni -nop -ex bypass -c "&{[ScriptBlock]::Create((cat '%~f0') -join [Char[]]10).Invoke()}" | |
) | |
if not exist "bin\main.exe" ( |
# Convert a LLaMA model checkpoint to a ggml compatible file | |
# | |
# Load the model using Torch | |
# Iterate over all variables and write them to a binary file. | |
# | |
# For each variable, write the following: | |
# - Number of dimensions (int) | |
# - Name length (int) | |
# - Dimensions (int[n_dims]) | |
# - Name (char[name_length]) |