Skip to content

Instantly share code, notes, and snippets.

View nanocosmos-ol's full-sized avatar

nanocosmos - Oliver Lietz nanocosmos-ol

View GitHub Profile
@nanocosmos-ol
nanocosmos-ol / 0_reuse_code.js
Created March 14, 2017 01:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@nanocosmos-ol
nanocosmos-ol / test.md
Last active August 18, 2018 09:27
test table
test
@nanocosmos-ol
nanocosmos-ol / sync-projects
Created August 22, 2018 08:35 — forked from JonasGroeger/sync-projects
Gitlab: Clone / Pull all projects in a group
#!/usr/bin/env bash
# Documentation
# https://docs.gitlab.com/ce/api/projects.html#list-projects
NAMESPACE="YOUR_NAMESPACE"
BASE_PATH="https://gitlab.example.com/"
PROJECT_SEARCH_PARAM=""
PROJECT_SELECTION="select(.namespace.name == \"$NAMESPACE\")"
PROJECT_PROJECTION="{ "path": .path, "git": .ssh_url_to_repo }"
@nanocosmos-ol
nanocosmos-ol / ansible_local_playbooks.md
Created March 4, 2019 18:25 — forked from alces/ansible_local_playbooks.md
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
Download Google Drive files with WGET
Example Google Drive download link:
https://docs.google.com/open?id=[ID]
To download the file with WGET you need to use this link:
https://googledrive.com/host/[ID]
Example WGET command:
@nanocosmos-ol
nanocosmos-ol / 360player.html
Created March 31, 2023 20:35 — forked from bepro-dev/360player.html
Implement 360 Video Player in JS
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>360 Video Player</title>
</head>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
@nanocosmos-ol
nanocosmos-ol / index.html
Created November 7, 2023 17:04
Video.js fullscreen 360 video
<div class="player-wrapper">
<video id="player" class="player video-js vjs-default-skin vjs-big-play-centered" crossorigin="anonymous" preload="metadata" autoplay controls>
<source poster="https://raw.githubusercontent.com/Pierrinho/elephant/master/elephant.jpg" src="https://raw.githubusercontent.com/Pierrinho/elephant/master/elephant.mp4">
</video>
</div>
@nanocosmos-ol
nanocosmos-ol / Compiling GoSungrow.md
Created September 19, 2024 21:28 — forked from Paraphraser/Compiling GoSungrow.md
Compiling GoSungrow

Updating GoSungrow

This gist is intended to help you deal with the following error messages:

  • Error: appkey is incorrect 'er_invalid_appkey
  • Error: unknown error 'Request is not encrypted'

This gist has four parts. The instructions you should follow depend on what you want to do:

| Part | Explains how to |