Skip to content

Instantly share code, notes, and snippets.

@rain-1
rain-1 / LLM.md
Last active November 2, 2024 12:14
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.

@ob1-sc
ob1-sc / git-crypt.md
Last active June 3, 2022 15:38
Setup git-crypt

install

sudo apt install git-crypt

init your git repo

cd <root of git repo>
git-crypt init
1. Go to your sublime home directory, then Packages/SublimeREPL/config/
2. Open 'Ruby' directory in config, make the changes in this PR to pry_repl.rb
https://github.com/wuub/SublimeREPL/pull/372/files
3. Run 'which ruby' in your terminal, and copy the path it returns.
eg. /Users/sudhagarsachin/.rbenv/shims/ruby
4. In Main.sublime-menu, line 33, the "osx" to this JSON.
"osx": [
"/Users/sudhagarsachin/.rbenv/shims/ruby", // replace this with your path
"${packages}/SublimeREPL/config/Ruby/pry_repl.rb",
"$editor"
@LeCoupa
LeCoupa / nodejs-cheatsheet.js
Last active November 4, 2024 04:19
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@ematta
ematta / ags-install
Last active January 1, 2016 22:39
How to install AGS on Fedora
# Install AGS in Fedora 20
# https://github.com/adventuregamestudio/ags/blob/master/debian/README.md
# Change this to whatever you use for home dir apps
cd ~/app
git clone git://github.com/adventuregamestudio/ags.git
cd ags
sudo yum -y install python-devel freetype-devel libvorbis-devel allegro-devel allegro libtheora libtheora-devel dumb-devel dumb
make --directory=Engine
sudo make --directory=Engine install
@willurd
willurd / web-servers.md
Last active November 13, 2024 13:44
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
class Application < Sinatra::Base
configure do
enable :static
set :views, File.join(File.dirname(__FILE__), 'views')
end
get '/' do
slim :index
end
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active November 5, 2024 18:44
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@donpdonp
donpdonp / gist:2258175
Created March 31, 2012 00:28
sublime text 2 Slim
donp@sparky:~/.config/sublime-text-2/Packages$ git clone git://github.com/fredwu/ruby-slim-tmbundle.git Ruby-Slim.tmbundle
Cloning into Ruby-Slim.tmbundle...
remote: Counting objects: 142, done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 142 (delta 89), reused 114 (delta 61)
Receiving objects: 100% (142/142), 21.44 KiB, done.
Resolving deltas: 100% (89/89), done.
donp@sparky:~/.config/sublime-text-2/Packages$ ls Ruby-Slim.tmbundle/
Commands info.plist Preferences README.md Snippets Syntaxes
donp@sparky:~/.config/sublime-text-2/Packages$
@CristinaSolana
CristinaSolana / gist:1885435
Created February 22, 2012 14:56
Keeping a fork up to date

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream