Skip to content

Instantly share code, notes, and snippets.

View heroheman's full-sized avatar
🏠
Working from home

Flowrence heroheman

🏠
Working from home
View GitHub Profile
@CaptainVincent
CaptainVincent / README.md
Last active April 18, 2024 12:08
Improve your vscode quickinput-widget

Customize your quickinput-widget

This is a small tool designed to emulate the Sublime style Command Palette as follows.

Screenshot

It requires the use of a specific extension to load the js file from this gist.

I'm using the APC extension, and the usage is as follows.

@jnsprnw
jnsprnw / strapi-on-uberspace.md
Last active March 2, 2024 13:28
Tutorial on how to install Strapi on Uberspace

Strapi on Uberspace

Some people had problems building Strapi on Uberspace since it will kill your procress when it uses more than 1.5GB of RAM. I had the problem with some versions of Strapi, but the current (4.5) run through without any problems.

⚠️ Notice that you need to run Node version 14 on your Uberspace to run Strapi (uberspace tools version use node 14).

1. Database (Postgres)

I run into problems when running Postgres on Uberspace and using it for Strapi. (Something with pooling) And since I’m no expert in Postgres I decided to switch to Supabase’s free plan. This also saves Uberspace some ressources. If you want to run Postgres on Uberspace, follow this tutorial.

So for Supabase, first create an account and a new database/project. Next, go to Project Settings/Database. You find all the credetials there. Save them for later.

How to deploy the headless cms strapi on your uberspace 7

This summary describes the collection of necessary tutorials to host strapy on your uberspace

1. Install mongodb on your uberspace

just follow this well written tutorial.

2. Install strapi and pm2 within a subdirectory of your public html folder on your uberspace

take just a segment of this tutorial. be sure to use the before defined credentials (like, ip address, port, username e.g. of your freshly created database)

@heroheman
heroheman / spacemacs-cheatsheet.md
Last active December 4, 2022 21:26
Spacemacs Cheatsheet - A cheat sheet for my most common shortcuts in Spacemacs

General

Shortcut Description
SPC f e d Open Configuration
SPC f e R Reload Configuration
SPC SPC Search Emacs
SPC h SPC Search Spacemacs Layer
SPC f s Save Buffer
SPC q q Quit Emacs w/ Prompt
SPC q Q Quit Emacs w/o Prompt
@heroheman
heroheman / tmux-cheatsheet.md
Last active July 1, 2022 11:34
Tmux Simple Cheatsheet

Basic Tmux Cheatsheet

Sessions

In Bash

  • start new session: tmux
  • start new session with name: tmux new -s sessionname
  • show running sessions: tmux ls
  • attach last session: tmux a
  • attach session by name: tmux a -t sessionname
@squarism
squarism / iterm2.md
Last active May 1, 2024 15:40
An iTerm2 Cheatsheet

Tabs and Windows

Function Shortcut
New Tab + T
Close Tab or Window + W (same as many mac apps)
Go to Tab + Number Key (ie: ⌘2 is 2nd tab)
Go to Split Pane by Direction + Option + Arrow Key
Cycle iTerm Windows + backtick (true of all mac apps and works with desktops/mission control)
@junegunn
junegunn / gist:f4fca918e937e6bf5bad
Last active March 30, 2024 23:40
Browsing git commit history with fzf
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort)
fshow() {
local out shas sha q k
while out=$(
git log --graph --color=always \
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" |
fzf --ansi --multi --no-sort --reverse --query="$q" \
--print-query --expect=ctrl-d --toggle-sort=\`); do
q=$(head -1 <<< "$out")
k=$(head -2 <<< "$out" | tail -1)
@freshyill
freshyill / gulpfile.js
Last active May 30, 2018 23:15
Gulp-Pattern Lab Helper
//
// Paths
//
var basePaths = {
src: 'source/',
dest: 'source/'
};
var paths = {
@anotheruiguy
anotheruiguy / extends-in-libsass.scss
Last active August 29, 2015 13:56
Where extended placeholder selectors go wrong in libsass
// ----
// libsass (v0.7.0)
// ----
// Where extends go wrong in libsass
// In the following placeholder selector, all the selectors are created as
// such using the % syntax
%default-parent {
mymodule {
@at-root {
.#{&}-header { ... }
.#{&}-footer { ... }
.#{&}-body {
a { ... }
span { ... }
p { ... }
}
}