Skip to content

Instantly share code, notes, and snippets.

View desyncr's full-sized avatar

DC* desyncr

View GitHub Profile
@desyncr
desyncr / emacs-installation.org
Last active September 10, 2022 15:13 — forked from digizeph/emacs-installation.org
Emacs 28 and Doom Emacs Setup Guide

Emacs 28 and Doom Emacs Setup Guide

Goal

Build Emacs 28 from source code and install Doom Emacs

Install Emacs

Checkout sourcecode

strace -e pattern command #match pattern, don't pipe to grep because strace prints to stderr
strace -e open man cat 2> strace.txt #filter open calls and save to strace.txt (via stderr)
strace -p pid #attach to running process
strace -f #also strace child processes
strace -c #show histogram table of num calls
strace -f -e trace=network curl google.com #networrk calls (parent and child processes)
strace -f -e trace=network -s 100 curl google.com #limit string args to 100 chars
@desyncr
desyncr / tmux-cheatsheet.markdown
Created August 28, 2018 15:47 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@desyncr
desyncr / ThrottleRequests.php
Created May 31, 2017 17:55 — forked from developerdino/ThrottleRequests.php
Lumen Middleware for rate limiting - based on Laravel's implementation.
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Response;
use Illuminate\Cache\RateLimiter;
class ThrottleRequests
{
@desyncr
desyncr / travis.yml
Last active February 7, 2017 13:14
Simplest way to ad osx?
language: c
os:
- linux
- osx
compiler:
- clang
- gcc
@desyncr
desyncr / .travis.yml
Last active February 7, 2017 00:11
basic travis support
language: c
compiler:
- clang
- gcc
before_script:
- sudo apt-get install zsh
install:
@desyncr
desyncr / github_search_cli.sh
Created December 17, 2016 23:25 — forked from defel/github_search_cli.sh
Search Github for Projects which README file contains "antigen bundle"
curl https://api.github.com/search/repositories\?q\=antigen bundle+in:readme | json -a items| json -a id name full_name html_url
@desyncr
desyncr / release
Created December 10, 2016 16:59 — forked from foca/release
Small shell script to create GitHub releases from the command line
#!/usr/bin/env bash
set -e
[ -z "$DEBUG" ] || set -x;
usage() {
echo "$0 <repo> <tag> [<release name>] [-- <asset>...]" >&2;
}
if [ "$1" = "-h" -o "$1" = "--help" ]; then
@desyncr
desyncr / README
Created December 10, 2016 05:54
Notes on making a signed software release
Notes on making a signed software release
=========================================
Create a signed tag called NAME-VERSION with
git tag --message=NAME-VERSION --sign NAME-VERSION
Generate a release tar.gz and signature with
git archive --output=NAME-VERSION.tar.gz --prefix=NAME-VERSION/ NAME-VERSION