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 / xampp\apache\conf\extra\httpd-vhosts.conf
Last active August 4, 2020 12:34
How to setup directory subdomains for xampp on Windows
# Replace content or add this to xampp\apache\conf\extra\http-vhosts.conf
UseCanonicalName Off
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/"
ServerName localhost
</VirtualHost>
<VirtualHost *:80>
ServerAlias *.localhost
VirtualDocumentRoot "C:/xampp/htdocs/%1/"
@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 / install_vscode.sh
Last active July 19, 2019 09:27
vscode through x11
#!/bin/bash
sudo apt-get install -y xvfb xdm xfonts-base
sudo apt-get install -y twm "xfonts-100dpi*" xterm
sudo snap install --classic code
#needed as it's somehow missing
sudo apt-get install -y ssh-askpass
@devolution2409
devolution2409 / fixmyshit.sh
Created May 9, 2019 08:15
Fixes retard pointer errors that on docker build after installing docker compose
#!/bin/bash
sudo dpkg -- --force-depends golang-docker-credential-helpers
@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
@devolution2409
devolution2409 / create_installer.sh
Created March 24, 2019 20:57
bash script to create the lidl_soundboard installer
#!/bin/bash
# red=`tput setaf 1`
# green=`tput setaf 2`
# reset=`tput sgr0`
# cyan=`tput setaf 6`
Black='\033[0;30m' # Black
Red='\x1b[0;31m' # Red
Green='\033[0;32m' # Green
Yellow='\033[0;33m' # Yellow
Blue='\033[0;34m' # Blue