Skip to content

Instantly share code, notes, and snippets.

View junwatu's full-sized avatar
🚀
Ship it!

Equan P. junwatu

🚀
Ship it!
View GitHub Profile

Raspberry Pi, Static HTTPS site with Docker and Nginx

This tutorial is dated Oct 2021, if it's much further on than that this information might be out of date.

This is a guide on setting up a static HTTPS website on your raspberry pi using docker and nginx. The aim is to have this running on the raspberry pi and to be able to access it from a host computer on the same local network. You should already be able to ssh into your pi from your host computer and have raspberry pi OS set up.

Find your raspberry pi

@junwatu
junwatu / nuxtjs-pagination-component.vue
Created January 12, 2021 20:52
Nuxt.js Pagination
<template>
<nav id="pagination">
<ul class="page-numbers" v-if="$store.state.totalPageCount">
<li v-for="num in this.pageNumbers" v-if="num != null" v-bind:style="{ width: (100 / pageNumberCount) + '%' }">
<nuxt-link v-if="num != $route.query.page && num != currentPage" :to="{ path: '/', query: { page: num } }">{{ num }}</nuxt-link>
<span v-else>{{ num }}</span>
</li>
</ul>
<ul class="page-guides" v-if="this.$store.state.totalPageCount != 1">
<li>
@junwatu
junwatu / .gitattributes-lfs-unity
Last active June 29, 2020 21:01 — forked from bpesquet/.gitattributes-lfs-unity
.gitattributes file for LFS with Unity
# put this on root directory as .gitattributes
* text=auto
# Unity files
*.meta -text -merge=unityamlmerge
*.unity -text -merge=unityamlmerge
*.asset -text -merge=unityamlmerge
*.prefab -text -merge=unityamlmerge
@junwatu
junwatu / gist:ef6a7c236a05e8feb5aa4f2312d7f467
Created March 28, 2019 01:40 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@junwatu
junwatu / CMakeLists.txt
Last active February 16, 2019 13:37
Cmake SDL2
cmake_minimum_required(VERSION 3.0)
project(test)
find_path(SDL2_INCLUDE_DIR SDL2/SDL.h)
find_library(SDL2_LIBRARY SDL2)
find_library(SDL2_MAIN SDL2main)
add_executable(main main.cpp)
target_include_directories(main PUBLIC ${SDL2_INCLUDE_DIR})
target_link_libraries(main PRIVATE ${SDL2_LIBRARY} ${SDL2_MAIN})
@junwatu
junwatu / main.cpp
Last active February 16, 2019 12:09
SDL2_Windows
// main.cpp
#include <stdio.h>
#include <SDL2/SDL.h>
#include <iostream>
const int SCREEN_WIDTH = 640;
const int SCREEN_HEIGHT = 480;
int main(int argc, char *argv[])
{
@junwatu
junwatu / _ilspy_hello.dll IL
Last active December 16, 2018 00:46
IL Hello
.method public hidebysig static
string Mendal (
string str
) cil managed
{
// Method begins at RVA 0x2050
// Code size 7 (0x7)
.maxstack 1
.locals init (
[0] string

Keybase proof

I hereby claim:

  • I am junwatu on github.
  • I am equan (https://keybase.io/equan) on keybase.
  • I have a public key ASB2CGGgEb6HuWkNan2RNj4act7Ur2W8OdAPIYkumq5trgo

To claim this, I am signing this object:

@junwatu
junwatu / xna4_vs2017.md
Last active August 4, 2020 13:21 — forked from roy-t/xna4_vs2017.md
Install XNA 4.0 under Microsoft Visual Studio 2017

This guide will provide you with a workaround for using XNA in Visual Studio 2017. This will solve problems with the target files and Microsoft.Build.Framework.dll such as: Error loading pipeline assembly "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Microsoft.Build.Framework.dll"

  1. Download a modified version of the XNA vsix: https://mxa.codeplex.com/
  2. Unzip XNA Game Studio 4.0.vsix and replace the <Installation /> tag in extension.vsixmanifest with this:
 <Installation InstalledByMsi="false">
    <InstallationTarget Version="[12.0,16.0)" Id="Microsoft.VisualStudio.VSWinDesktopExpress" />
    <InstallationTarget Version="[12.0,16.0)" Id="Microsoft.VisualStudio.Pro" />
@junwatu
junwatu / fourier.html
Created July 16, 2017 01:11 — forked from kazad/fourier.html
BetterExplained Fourier Example
<html>
<head>
<script src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.2/underscore-min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
<script src="//ajax.cdnjs.com/ajax/libs/json2/20110223/json2.js"></script>
<!--
TODO: