Skip to content

Instantly share code, notes, and snippets.

View hising's full-sized avatar

Mattias Hising hising

View GitHub Profile
@hising
hising / bootstrap.js
Created January 23, 2020 16:52
vanilla js for bootstrap
import { fetchHTML } from "../utils";
const bspfCollapse = (collapseLink) => {
if (collapseLink.dataset.target) {
let collapseTarget = document.querySelector(collapseLink.dataset.target);
collapseLink.addEventListener("click", (event) => {
event.preventDefault();
collapseTarget.classList.toggle("in");
});
}
@hising
hising / wallpapers.json
Created January 16, 2020 15:32
chromecast wallpapers json
[
{
"url": "https://lh6.googleusercontent.com/-A0tXm8gjfMU/U08VDMRGtuI/AAAAAAAAvrI/IQEscTGZyJY/s1920-w1920-h1080-c/IMG_0293%2Bhe.jpg",
"author": "Ziv Horesh"
},
{
"url": "https://lh6.googleusercontent.com/-3LiF-MBl6OE/UO5TXZ724aI/AAAAAAAAE50/JWLqdeEM9QY/s1920-w1920-h1080-c/Colorado%2BRiver%2BSunset.jpg",
"author": "Romain Guy"
},
{
@hising
hising / y-color-theme.html
Last active January 12, 2020 16:27
WiP - Yetric Color Theme
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono:300,400,700|IBM+Plex+Sans+Condensed:300,400,700|IBM+Plex+Sans:300,400,700|IBM+Plex+Serif:300,400,700&display=swap" rel="stylesheet">
<title>Yetric Color Theme - Y-theme</title>
<style>
@hising
hising / bootloading.html
Created January 6, 2020 20:48
Bootloading PWA
<!DOCTYPE html>
<html lang="en" class="loading">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style type="text/css">
@keyframes text-loader {
@hising
hising / unixts.js
Created January 3, 2020 11:35
Unix Timestamp Client
const unixTimestamp = () => Math.floor(Date.now() / 1000);
@hising
hising / index.html
Last active December 25, 2019 13:52
pwa
<html>
<head>
...
</head>
<body ontouchstart=””>
...
</body>
</html>
@hising
hising / game-theme.html
Last active December 8, 2019 18:47
Theme WiP
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="https://unpkg.com/ionicons@4.5.10-0/dist/ionicons.js"></script>
@hising
hising / keybase.md
Created December 4, 2019 16:42
keybase.md

Keybase proof

I hereby claim:

  • I am hising on github.
  • I am emccracken (https://keybase.io/emccracken) on keybase.
  • I have a public key ASDAsj8ASIKpAIZn0Uz_6xbDkIydlyPbJ24qiNcx-jDmMwo

To claim this, I am signing this object:

@hising
hising / kill-it-with-fire.sh
Created October 29, 2019 21:23
Localhost EADDRINUSE
lsof -i tcp:<portnr>
kill -9 <pid>
@hising
hising / force-restart-nginx.sh
Created October 25, 2019 18:17
Job for nginx.service failed because the control process exited with error code
sudo fuser -k 80/tcp
sudo fuser -k 443/tcp
sudo service nginx restart