Skip to content

Instantly share code, notes, and snippets.

View mmore500's full-sized avatar

Matthew Andres Moreno mmore500

View GitHub Profile
@lunhg
lunhg / job_ci.yml
Created January 26, 2022 19:23
A build script CI/CD job that download a testpypi whl, change the current version and build a whl file again to install it with pip. Must define PROGRAM and VERSION variables.
.build_testpypi_to_oficial_pypi: &build_production_script
- pip install virtualenv wheel
- python -m virtualenv venv && source venv/bin/activate
- python -m pip download --no-deps --index-url https://test.pypi.org/simple/ $PROGRAM
- PACKAGE=$(ls -la $PROGRAM* | awk '{ print $9 }')
- wheel unpack $PACKAGE
- rm $PACKAGE
- WHEEL_FOLDER=$(ls -la | awk '{ print $9 }' | grep $PROGRAM)
- mkdir $PROGRAM-$VERSION
- mkdir $PROGRAM-$VERSION/$PROGRAM
@TrueBrain
TrueBrain / Dockerfile
Created December 8, 2020 20:16
Emscripten + LZMA
FROM emscripten/emsdk
COPY emsdk-liblzma.patch /
RUN cd /emsdk/upstream/emscripten && patch -p1 < /emsdk-liblzma.patch
@william8th
william8th / .tmux.conf
Last active April 21, 2025 15:44
Tmux open new pane in same directory
# Set the control character to Ctrl+Spacebar (instead of Ctrl+B)
set -g prefix C-space
unbind-key C-b
bind-key C-space send-prefix
# Set new panes to open in current directory
bind c new-window -c "#{pane_current_path}"
bind '"' split-window -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
@mmore500
mmore500 / pc
Last active April 23, 2025 19:25
/usr/share/X11/xkb/symbols/pc
default partial alphanumeric_keys modifier_keys
xkb_symbols "pc105" {
key <ESC> { [ Caps_Lock ] };
// The extra key on many European keyboards:
key <LSGT> { [ less, greater, bar, brokenbar ] };
// The following keys are common to all layouts.
key <BKSL> { [ backslash, bar ] };
@jdblischak
jdblischak / Makefile
Last active February 10, 2025 18:06
Hide supplement but retain cross-referencing with LaTeX
NAME := main
all: $(NAME).pdf
%.pdf: %.tex
sed -i s/'\\includeonly'/'%\\includeonly'/ $(NAME).tex
pdflatex -shell-escape $(NAME)
# Insert additional calls to pdflatex or bibtex here,
# depending on the complexity of your document
@samrocketman
samrocketman / libimobiledevice_ifuse_Ubuntu.md
Last active July 3, 2024 07:05
On Ubuntu 16.04, since iOS 10 update, libimobiledevice can't connect to my iPhone. This is my attempt to document a fix.

Why this document?

I upgraded my iPhone 5s to iOS 10 and could no longer retrieve photos from it. This was unacceptable for me so I worked at achieving retrieving my photos. This document is my story (on Ubuntu 16.04).

The solution is to compile libimobiledevice and ifuse from source.

Audience

Who is this guide intended for?

@brianspiering
brianspiering / .bash_profile
Last active June 16, 2023 18:08
This file holds all my BASH configurations and aliases
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@willprice
willprice / .travis.yml
Last active June 15, 2024 04:29
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@nicktoumpelis
nicktoumpelis / repo-rinse.sh
Created April 23, 2014 13:00
Cleans and resets a git repo and its submodules
git clean -xfd
git submodule foreach --recursive git clean -xfd
git reset --hard
git submodule foreach --recursive git reset --hard
git submodule update --init --recursive
@natelandau
natelandau / .bash_profile
Last active April 25, 2025 02:45
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management