Certainly the best way to understand how Prelude enhances the default
Emacs experience is to peruse Prelude's source code (which is
obviously written in Emacs Lisp). Understanding the code is not
necessary of course. Prelude includes a prelude-mode
minor Emacs mode
which collects some of the additional functionality added by
Prelude. It also adds an additional keymap that binds many of those
extensions to keybindings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
neo4j: | |
image: neo4j:latest | |
ports: | |
- "7474:7474" | |
- "7687:7687" | |
environment: | |
- NEO4J_AUTH=none | |
- NEO4J_ACCEPT_LICENSE_AGREEMENT=yes | |
- NEO4J_apoc_export_file_enabled=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt install build-essential texinfo libx11-dev libxpm-dev libjpeg-dev libpng-dev libgif-dev libtiff-dev libgtk2.0-dev libncurses-dev libgnutls28-dev | |
wget http://ftp.gnu.org/gnu/emacs/emacs-29.3.tar.gz | |
tar xvzf emacs-29.3.tar.gz | |
cd emacs-29.3 | |
./configure --with-mailutils | |
make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -O http://www.lua.org/ftp/lua-5.1.5.tar.gz | |
tar xvzf lua-5.1.5.tar.gz | |
cd lua-5.1.5/src | |
make macosx | |
sudo cp lua /usr/local/bin/lua | |
Helper script to map ports to other servers.
had a database that was only accesible in the VPC on aws, so i created an dev intance and did a ssh tunnel to that dev instance with netcat mapping the port to the database
Forward all request from local 5432 to remote host google.com port 80
./nc-proxy.sh 5432 google.com 80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# checkout, compile & install | |
git clone https://github.com/facebook/watchman.git | |
cd watchman/ | |
git checkout v4.9.0 | |
sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool | |
./autogen.sh | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local http = require "socket.http" | |
local data = "" | |
local function collect(chunk) | |
if chunk ~= nil then | |
data = data .. chunk | |
end | |
return true | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Plain Ol' Node | |
node --max-old-space-size=1024 app.js # increase to 1gb | |
node --max-old-space-size=2048 app.js # increase to 2gb | |
node --max-old-space-size=3072 app.js # increase to 3gb | |
node --max-old-space-size=4096 app.js # increase to 4gb | |
node --max-old-space-size=5120 app.js # increase to 5gb | |
node --max-old-space-size=6144 app.js # increase to 6gb | |
# For pm2 | |
pm2 start app.js --node-args="--max-old-space-size=1024" # increase to 1gb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"gopkg.in/mgo.v2" | |
"gopkg.in/mgo.v2/bson" | |
"time" | |
) | |
type Person struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# util stuff | |
# | |
sudo apt install htop mosh | |
# |
NewerOlder