Skip to content

Instantly share code, notes, and snippets.

View RolandWarburton's full-sized avatar
🍃

Roland RolandWarburton

🍃
View GitHub Profile
@RolandWarburton
RolandWarburton / autoindex_fancy.html
Created June 27, 2020 10:05
fancy index for nginx autoindex
<style>
body {
background: #121212 !important;
color: #dedede !important;
font-size: 1.25em;
}
a, a:visited {
color: #dedede;
}
</style>
body {
// yeet scrollbars
::-webkit-scrollbar {
display: none; // Safari and Chrome
}
-ms-overflow-style: none; // Internet Explorer 10+
scrollbar-width: none; // Firefox
}
@RolandWarburton
RolandWarburton / test.md
Last active April 10, 2021 07:35
testing markdown parser

Test doc

Hello world!

The quick brown fox h2 heading

Cras ac ipsum conubia porttitor nostra vitae himenaeos elit congue vehicula sit amet eu turpis. Class aptent sagittistaciti sociosqu ad litora torquent per conubia porttitor nostra, per inceptos himenaeos. Phasellus sudo apt install molestie sagittis sudo apt install placeholders et conubia porttitor nostra aliquam. echo "hello world" porttitor commodo tellus ut nisi rutrum dapibus. In hac habitasse platea dictumst. sudo apt install placeholders luctus iaculis augue sit amet laoreet. Nulla ac porttitor sagittis sem, et placerat neque.

Some subtext about the fox

@RolandWarburton
RolandWarburton / filewalker.js
Created March 29, 2020 05:37
traverse a directory and subdirectories
const fs = require('fs')
const path = require('path')
// traverse a directory and subdirectories
// provide with a callback to do something with each file
const filewalker = function (dir, callback) {
fs.readdir(dir, function (err, result) {
result.forEach(function (file, i) {
@RolandWarburton
RolandWarburton / moveWindowLeftOrRight.sh
Last active April 10, 2020 07:10
move screen to left/right monitor
#!/bin/bash
# Move the window to the left or right of the monitor
# get the window id
WINDOWID=$(xdotool getwindowfocus)
WINDOWSTATE=$(xprop -id $WINDOWID _NET_WM_STATE | awk -F '=' '{print $2}')
WINDOWPOS=$(xdotool getwindowfocus getwindowgeometry | egrep -o '[0-9]{1,4},[0-9]{1,4}')
WINX=$(echo $WINDOWPOS | cut -d "," -f1)
WINY=$(echo $WINDOWPOS | cut -d "," -f2)
@RolandWarburton
RolandWarburton / nginx-default-config
Created February 29, 2020 12:38
nginx default config
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@RolandWarburton
RolandWarburton / CSS_in_JS.jsx
Created February 3, 2020 02:37
CSS ub HS examples and notes
// Define a simple class
const red = {
margin: '40px',
backgroundColor: 'red'
}
<div style={red}>a div that is red</div>
@RolandWarburton
RolandWarburton / shitty_github_dark_theme.css
Last active January 11, 2020 06:35
shitty github dark theme
/* ==UserStyle==
@name Empty @name replaces the default template - 1/11/2020, 3:08:38 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description A new userstyle
@author Me
==/UserStyle== */
@-moz-document url-prefix("https://github.com/"), url-prefix("https://gist.github.com") {
@RolandWarburton
RolandWarburton / mc_plugin_repo_links
Created December 24, 2019 05:44
plugin update links for my minecraft server
@RolandWarburton
RolandWarburton / missing_firmware
Created December 20, 2019 12:04
missing firmware
==> WARNING: Possibly missing firmware for module: csiostor
==> WARNING: Possibly missing firmware for module: cxgb3
==> WARNING: Possibly missing firmware for module: cxgb4
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: isci
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: advansys
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: qla1280