Β© oskr.nl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
print("HI") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
# Quick script to install node (v14) | |
# - oskr | |
echo "\tWelcome to Node Install script\n\n" | |
set -o xtrace | |
wget "https://deb.nodesource.com/setup_14.x" -O setup_14x.sh | |
chmod +x setup_14x.sh |
css
background-color: rgba(0,0,0,.8);
backdrop-filter: url(#sharpBlur) saturate(180%);
html
<svg class="hideSvgSoThatItSupportsFirefox">
<filter id="sharpBlur">
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM move this file to "C:\Windows\System32" | |
curl -F "file=@%1" file.io | |
pause |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "something", | |
"version": "2.2.0", | |
"description": "", | |
"main": "index.js", | |
"dependencies": { | |
"ejs": "^3.1.5", | |
"express": "^4.17.1", | |
"helmet": "^4.2.0" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Turn off that annoying start up message | |
startup_message off | |
# Turn the even more annoying whole-screen-flash-on-tab-complete "feature" | |
vbell off | |
# Window list at the bottom. hostname, centered tabs and redmarked active windows: | |
#shelltitle '$ |' | |
backtick 1 1 1 $HOME/bin/battery |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logo = document.querySelector('#logo') | |
document.addEventListener('scroll', e => { | |
let yo = parseInt(pageYOffset) | |
let maxHeight = 150 | |
if(yo <= maxHeight) { | |
let per = (yo / maxHeight) * 100 | |
// console.log(yo, ' ----> ', per, '// ', Math.abs(per - 100)) | |
logo.style.scale = `clamp(0.75, ${Math.abs(per - 100) * 0.01}, 1)` | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express') | |
const app = express() | |
// ~ all routes | |
// last route | |
app.use((req, res) => { | |
res.status(404).send('Custom 404 handler') | |
}) |