Skip to content

Instantly share code, notes, and snippets.

Sineer sineer

Block or report user

Report or block sineer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sogaiu
sogaiu / gist:44e69fa39606264b3c3581323640a213
Created Dec 21, 2018
trying arcadia.internal.tracker's track and history functionality
View gist:44e69fa39606264b3c3581323640a213
;; see top of arcadia/internal/tracker.clj for more info on usage
user=> (require '[arcadia.internal.tracker])
nil
;; track a fn (via a var)
user=> (arcadia.internal.tracker/track #'arcadia.internal.leiningen/project-data-loadpath)
#'arcadia.internal.leiningen/project-data-loadpath
;; calling a fn which calls the tracked fn
@zg
zg / freebsd-qemu-xhyve-mac-os-x-virtual-machine.md
Last active Feb 5, 2020
Create FreeBSD virtual machine using qemu. Run the VM using xhyve.
View freebsd-qemu-xhyve-mac-os-x-virtual-machine.md

TL;DR

  • Create 10GB FreeBSD image using QEMU.
  • Run the VM using xhyve.
  • Mount host directory.
  • Resize the image.

Requisites

@somebox
somebox / osx-setup.sh
Last active Mar 13, 2020 — forked from foz/osx-setup.sh.md
Set up an OSX machine from zero to awesome. Uses Homebrew (and cask, fonts, etc). Focused on Ruby/Rails development, includes rvm, xquartz, editor fonts, sublime text, and many tools.
View osx-setup.sh
#!/bin/bash
# A script to set up a new mac. Uses bash, homebrew, etc.
# Focused for ruby/rails development. Includes many utilities and apps:
# - homebrew, rvm, node
# - quicklook plugins, terminal fonts
# - browsers: chrome, firefox
# - dev: iterm2, sublime text, postgres, chrome devtools, etc.
# - team: slack, dropbox, google drive, skype, etc
@tylerneylon
tylerneylon / call_graph.awk
Created Oct 7, 2014
Parse Lua code and draw its call graph.
View call_graph.awk
#!/usr/bin/awk -f
#
# call_graph.awk
#
# Usage:
# ./call_graph.awk my_program.lua | dot -Tpng > call_graph.png
#
# This is a script that generates a visual call graph
# for a Lua file. This script only shows calls made
# to functions defined within the input Lua file; that is,
@solusipse
solusipse / 01_postfix_installer.md
Last active Feb 26, 2020
Postfix + Dovecot + Postgresql + Postfixadmin + Roundcube
View 01_postfix_installer.md

Postfix Installer

Following script may be used for configuring complete and secure email server on fresh install of Debian 7. It will probably work on other distributions using apt-get. After minor changes you'll be able to use it on other Linux distros.

Usage

  1. Run postfix.sh script.
  2. Configure postgres to allow connections.
  3. Configure postfix admin. Remember to set these:
@denvazh
denvazh / gitlab
Last active Sep 6, 2019
Freebsd port of script to manage gitlab as system service.
View gitlab
#!/bin/sh
#
# Written by Denis Vazhenin <denis.vazhenin@me.com>
#
# This script was ported from Debian/Ubuntu version of start script for Gitlab:
# https://raw.github.com/gitlabhq/gitlabhq/master/lib/support/init.d/gitlab
#
# PROVIDE: gitlab
# REQUIRE: NETWORKING SERVERS DAEMON LOGIN
# KEYWORD: shutdown
@jalaziz
jalaziz / graphite.nginx
Created Oct 12, 2012
uWSGI and nginx configuration for Graphite (assumes /opt/graphite/conf/graphite.wsgi.example has been renamed to /opt/graphite/conf/wsgi.py)
View graphite.nginx
server {
listen 8080 default_server deferred;
charset utf-8;
access_log /var/log/nginx/graphite.access.log;
error_log /var/log/nginx/graphite.error.log;
root /opt/graphite/webapp;
location /static/admin/ {
@drawks
drawks / graphite
Created Feb 14, 2012
Graphite on uwsgi/nginx
View graphite
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {
You can’t perform that action at this time.