Skip to content

Instantly share code, notes, and snippets.

View devolution2409's full-sized avatar

Devolution devolution2409

  • Toulouse, France
View GitHub Profile
@devolution2409
devolution2409 / gh-pages-deploy.md
Created August 7, 2020 18:06 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@devolution2409
devolution2409 / tmux.md
Created September 23, 2019 21:02 — forked from andreyvit/tmux.md
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

@devolution2409
devolution2409 / async_logger.cpp
Created July 21, 2019 14:22 — forked from averne/async_logger.cpp
Asynchronous logger for the Switch
#include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <switch.h>
#include "async_logger.hpp"
Result AsyncLogger::start() {
if (is_running()) return -1;
@devolution2409
devolution2409 / docker-compose.yml
Last active April 29, 2019 14:40 — forked from bpetetot/docker-compose.yml
Docker Seedbox
version: "2"
services:
plex:
image: linuxserver/plex
container_name: plex
network_mode: host
environment:
- VERSION=latest
- PUID=0
- PGID=0
@devolution2409
devolution2409 / repo-reset.md
Created April 5, 2019 11:53 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A