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
# on hostA, the initial home of the repo | |
hostA$ git bundle create hostA.bundle --branches --tags | |
# transfer the bundle to hostB, and continue: | |
hostB$ git clone /path/to/hostA.bundle my-repo | |
# you now have a clone, complete with remote branches and tags | |
# just to make it a little more obvious, rename the remote: | |
hostB$ git remote rename origin hostA | |
# make some commits on hostB; time to transfer back to hostA |
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
> rPrint({first={true,1.3,"abc",{1,2,5}},22,33,last={nil,5},2},nil,"Junk") | |
Junk table | |
Junk [1] number 22 | |
Junk [2] number 33 | |
Junk [3] number 2 | |
Junk [last] table | |
Junk [last] [2] number 5 | |
Junk [first] table | |
Junk [first] [1] boolean true | |
Junk [first] [2] number 1.3 |
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
#define STB_TRUETYPE_IMPLEMENTATION | |
#define STB_IMAGE_IMPLEMENTATION | |
#include "glm/glm/glm.hpp" | |
#include "glm/glm/ext.hpp" | |
#include "stb/stb_truetype.h" | |
#include "stb/stb_image.h" | |
#include "zen/sdlu.h" |
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
# 1. On a internet-connected device, download the package and its dependencies to a directory | |
mkdir pip-es-curator | |
pip install --ignore-installed -d ./pip-es-curator elasticsearch-curator | |
# 2. Move the directory containing the packages to the offline device | |
# 3. On the offline device, install the package from the transferred directory | |
pip install --no-index --find-links ./pip-es-curator elasticsearch-curator |
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
" An example for a vimrc file. | |
" | |
" Maintainer: Bram Moolenaar <[email protected]> | |
" Last change: 2011 Apr 15 | |
" | |
" To use it, copy it to | |
" for Unix and OS/2: ~/.vimrc | |
" for Amiga: s:.vimrc | |
" for MS-DOS and Win32: $VIM\_vimrc |
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
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-gui-common | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libatk1.0-dev libx11-dev libxpm-dev libxt-dev gnome-devel canberra-gtk-module | |
#Optional: so vim can be uninstalled again via `dpkg -r vim` | |
sudo apt-get install checkinstall | |
sudo rm -rf /usr/local/share/vim /usr/bin/vim | |
cd ~ |
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
set nocompatible " required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
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
silent !stty -ixon > /dev/null 2>/dev/null | |
" Here is the Vundle stuff | |
set nocompatible " be iMproved, required | |
filetype off " required | |
set path+=** | |
set wildmenu | |
let mapleader="," | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim |
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
#include "zen_alloc.h" | |
#include <stdlib.h> | |
#include <assert.h> | |
zen_allocator_i *zen_allocator_default; | |
typedef struct zen_alloc_default_t { | |
zen_allocator_i base; | |
uint32_t total_memory; | |
} zen_alloc_default_t; |
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
@echo off | |
setlocal enableextensions enabledelayedexpansion | |
set target=stretch_buffer_test | |
set target_c=%target% | |
set target_exe=%target% | |
set compiler=cl | |
set configuration=debug | |
set target_src=..\src\async.c | |
set target_include=-I..\include |
OlderNewer