Skip to content

Instantly share code, notes, and snippets.

View makemek's full-sized avatar
☁️
vimming

MakeMek makemek

☁️
vimming
  • OOZOU
  • /dev/null
View GitHub Profile
@makemek
makemek / .tmux.conf
Created February 17, 2025 03:36
my tmux conf
unbind r
bind r source-file ~/.tmux.conf
unbind C-b
set -g prefix \\
bind \\ send-prefix
set -g base-index 1
setw -g pane-base-index 1
unbind x
bind x kill-pane
@makemek
makemek / Dockerfile
Created December 11, 2023 18:45
libfaketime v0.9.10 docker build debian
FROM debian:bullseye-slim as e2e-builder
RUN apt-get update && apt-get install -y --no-install-recommends make=4.3-4.1 gcc=4:10.2.1-1 libc6-dev=2.31-13+deb11u7 wget=1.21-1+deb11u1 ca-certificates=20210119 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /libfaketime
RUN wget https://github.com/wolfcw/libfaketime/archive/refs/tags/v0.9.10.tar.gz -O libfaketime-0.9.10.tar.gz
RUN tar -xzvf ./libfaketime-0.9.10.tar.gz --strip-components=1 && rm ./libfaketime-0.9.10.tar.gz
RUN make
{{#boom}}
{{/boom}}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<script src="js/jquery-1.12.4.min.js"></script>
<script src="js/fastclick.js"></script>
<script src="js/player.js"></script>
<script src="js/render.js"></script>
<script src="js/vmsuicore.js"></script>
@makemek
makemek / console
Created April 10, 2017 18:23 — forked from dmitriy-kiriyenko/console
Init.d to start/stop xvfb. Put it into /etc/init.d and chmod it to 755
apt-get install xvfb
apt-get install firefox
@makemek
makemek / spyString.js
Created June 26, 2016 05:54
use sinon to spy a string in nodeJs
var sinon = require("sinon")
str = new String('foo');
var spy = sinon.spy(str, 'replace');
str.replace(str, 'bar');
spy.firstCall.returnValue
@makemek
makemek / 1088.js
Created April 2, 2016 17:17 — forked from aheckmann/1088.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var assert = require('assert')
console.log('\n===========');
console.log(' mongoose version: %s', mongoose.version);
console.log('========\n\n');
mongoose.connect('localhost', 'testing_1088');
mongoose.connection.on('error', function () {