Skip to content

Instantly share code, notes, and snippets.

View aiphee's full-sized avatar

Jiří Forst aiphee

View GitHub Profile
@tonithenhausen
tonithenhausen / offline_v5.xml
Last active September 24, 2024 12:40
Karoo Rendertheme
<?xml version="1.0" encoding="UTF-8"?>
<rendertheme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" map-background="#dcd5d0"
map-background-outside="#dcd5d0" version="5" xmlns="http://mapsforge.org/renderTheme"
xsi:schemaLocation="http://mapsforge.org/renderTheme https://raw.githubusercontent.com/mapsforge/vtm/master/resources/rendertheme.xsd">
<!-- AREA STYLES -->
<style-area fill="#6e91cd" id="water" mesh="true"/>
<!-- LINE CASINGS -->
<style-line id="unpaved_casing" stroke="#669e844c" stroke-linecap="round"/>
@rupeshtiwari
rupeshtiwari / Setting up Webpack for Typescript Project From Scratch.md
Last active November 14, 2024 12:25
Setting up Webpack for Typescript Project From Scratch

Setting up Webpack for any Typescript project from Scratch

Welcome to step by step hands-on guide to setup webpack in your upcoming typescript project. Please follow the steps and you should be able to create your own webpack project. Please download the source code from github.

You will learn below things:

  1. ✅Create a Typescript node.js project.
  2. ✅Install Dependencies with webpack & typescripts.
  3. ✅Use Webpack CLI to crate webpack.config.js file and modify webpack.config.js based on our need.
@vcavallo
vcavallo / explanation.md
Created June 14, 2018 19:30
remote dev VPS webpack-dev-server nginx setup

Remote Dev machine webpack-dev-server HMR + static serving combo

Make sure you have port 8080 (or whatever you use) open on the remote machine!! Don't be like Vinney.

I'm no webpack expert (in fact this is the first project I've set up by hand ever...), but if you know what you're doing you should be able to change the relevant parts of this to fit your project:

# webpack.config.js

module.exports = {
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@Fizzadar
Fizzadar / gist:953ec565d10a1ef9e1d5
Created February 23, 2016 23:39
pyinfra vs. Ansible: 150 hosts
root@pyinfra-perf-tests:/opt/performance# PYINFRA_TEST_HOSTS=150 ./run_tests.sh
### pyinfra Performance Tests
--> Running with 150 hosts
--> Removing any containers
--> Spawning 150 containers...
--> Resting for 5s...
--> Running tests: pyinfra -i tests/deploy/inventory.py tests/deploy/deploy.py
--> First complete in 17.239548271 seconds
--> Second complete in 8.706844236 seconds
@endolith
endolith / readme.md
Last active December 5, 2024 22:01
How to stream a webcam to a web browser in Ubuntu

Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.

First install motion:

~> sudo apt-get install motion

Then create a config file:

~> mkdir ~/.motion

~> nano ~/.motion/motion.conf