Skip to content

Instantly share code, notes, and snippets.

View drvinceknight's full-sized avatar
😀
👍

Vince Knight drvinceknight

😀
👍
View GitHub Profile
@alcarney
alcarney / count_lines.c
Last active August 29, 2015 14:11
A simple C program to count all the lines in a file
#include <stdio.h>
#include <stdbool.h>
int main(int argc, char* argv[])
{
// Check that enough arguments were given
if(argc != 2)
{
fprintf(stderr, "Usage:\n\tcount_lines <filename>\n");
return 1;
@meatballs
meatballs / gist:5046771
Last active April 14, 2017 21:07
Empiria Ltd's Git Workflow

Git Workflow used by Empiria Ltd

This is the workflow we use on projects for our customers. We know it won't suit everyone as it depends upon our particular circumstances, but if it's useful to anyone else, please drop us a comment.

Context

  • We are a small company and our projects tend to have small teams of trusted developers.
  • Our customers rarely have experience of development work and are unfamiliar with tools like git or issue trackers.
  • We want to provide our customers with access to code that we have written for them and a system for them to record issues that they find.
  • We do not want to expose our 'work in progress' to our customers either during the course of development or even when the work is complete.
@theronhitchman
theronhitchman / SageCell.html
Last active June 4, 2018 13:02
Sage Cell code for a web page
<!-- put this in the header-->
<script src="http://sagecell.sagemath.org/static/jquery.min.js"></script>
<script src="http://sagecell.sagemath.org/static/embedded_sagecell.js"></script>
<link rel="stylesheet" type="text/css" href="http://sagecell.sagemath.org/static/sagecell_embed.css">
<!-- put this in the body where you want a cell. adjust your inputs, of course. -->
<div class="sage">
<script type="text/x-sage">
1+2
</script></div>
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 13, 2024 14:35
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@andreyvit
andreyvit / tmux.md
Created June 13, 2012 03:41
tmux cheatsheet

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a