Skip to content

Instantly share code, notes, and snippets.

View nextlevelshit's full-sized avatar
💩
What?

Michael Werner Czechowski nextlevelshit

💩
What?
View GitHub Profile
@nextlevelshit
nextlevelshit / README.md
Last active November 4, 2020 08:49
Cronjob for Gatsby Deployment and Backup at Uberspace (https://uber.space)

1. Add both bash scripts to root folder of your repository to be deployed

Your root directory might look now like:

.
├── data
├── delete-old-backups.sh         # <------ Delete backups older than 15 days
├── deploy-and-backup-gatsby.sh   # <------ Deploy and backup "old" public directory
├── gatsby-browser.js
@vitorebatista
vitorebatista / login.feature
Created May 10, 2019 23:51
BDD - Login example with Cucumber
Feature: Login
I want to login on Keepfy
Background:
Given I go to '/login'
And the field 'email' is empty
And the field 'password' is empty
Scenario: Error on empty fields
@joshuacerbito
joshuacerbito / useScroll.js
Last active January 8, 2024 13:44
Custom React hook for listening to scroll events
/**
* useScroll React custom hook
* Usage:
* const { scrollX, scrollY, scrollDirection } = useScroll();
*/
import { useState, useEffect } from "react";
export function useScroll() {
const [lastScrollTop, setLastScrollTop] = useState(0);
@iNamik
iNamik / docker_compose-Makefile
Last active January 22, 2024 13:12
Makefile To Help Manage Docker-Compose Services
##
# Makefile to help manage docker-compose services
#
# Built on list_targets-Makefile:
#
# https://gist.github.com/iNamik/73fd1081fe299e3bc897d613179e4aee
#
.PHONY: help about args list targets services build up down rebuild clean start status ps logs stop restart sh bash shell
# If you need sudo to execute docker, then udpate these aliases
@nextlevelshit
nextlevelshit / install-laravel-on-ubuntu.md
Last active September 27, 2020 05:47
A installation guide to get Lumen 5.5 running on Ubuntu 17.04 including all dependencies and known issues

How to install Laravel Lumen 5.5 on Ubuntu 17.04

In that installation guide i will carry you through all dependencies of Lumen 5.5 on a system with Ubuntu 17.04. I will also provide known issues, that come along the installation of Lumen.

1. Requirements for installing Lumen 5.5

Type in the commands beneath the required package and check if you have yet installed them. If not, click the link for installation guide.

PHP >= 7.0

@morrisonbrett
morrisonbrett / package.json
Last active July 15, 2018 21:25
Example of npm script commands used in an Ionic project.
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "npm run ionic:build",
"start": "concurrently \"npm run build:watch\" \"npm run serve\"",
"serve": "lite-server -c=bs-config.json",
"ionic:build": "gulp default && npm run lint && ionic-app-scripts build",
"ionic:serve": "gulp default && npm run lint && ionic-app-scripts serve --sourceMap source-map --iscordovaserve --wwwDir platforms/browser/www/ --buildDir platforms/browser/www/build",
"build-prod-browser": "gulp browser && ionic-app-scripts build browser --wwwDir platforms/browser/www --sourceMap source-map",
"build-dev-browser": "gulp browser && ionic-app-scripts build browser --wwwDir platforms/browser/www --sourceMap source-map --dev",
"build-dev-android": "gulp default && cordova build android --debug",
@arniebradfo
arniebradfo / any.component.html
Last active May 16, 2023 18:05
Angular *ngFor recursive list tree template
<h1>Angular 2 Recursive List</h1>
<ul>
<ng-template #recursiveList let-list>
<li *ngFor="let item of list">
{{item.title}}
<ul *ngIf="item.children.length > 0">
<ng-container *ngTemplateOutlet="recursiveList; context:{ $implicit: item.children }"></ng-container>
</ul>
</li>
</ng-template>
@max-mapper
max-mapper / bibtex.png
Last active March 10, 2024 21:53
How to make a scientific looking PDF from markdown (with bibliography)
bibtex.png
@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
# Android SDK setup
## Install Java
```bash
sudo apt-get update
sudo dpkg --add-architecture i386
sudo apt-get install libbz2-1.0:i386
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1
sudo apt-get install openjdk-8-jdk openjdk-8-jre