Skip to content

Instantly share code, notes, and snippets.

View peterbrinck's full-sized avatar
🤔
 

Peter Brinck peterbrinck

🤔
 
View GitHub Profile
@karlbaillie
karlbaillie / docker-compose.yml
Created November 24, 2017 16:30
Media Server Setup
version: '2'
services:
unifi:
image: linuxserver/unifi
environment:
PUID: '1012'
GUID: '1012'
stdin_open: true
volumes:
- /storage/data/unifi:/config:rw
aardvark
aardwolf
Aaronite
abaction
abaculus
abaissed
abampere
Abarambo
abasedly
abatable
@peterbrinck
peterbrinck / RESTART GNOME WITHOUT RESTART.md
Created June 18, 2017 09:58
How to restart GNOME Shell without restart

Restart GNOME Shell without restart

The easiest way is to ALT + F2 and then run this command: gnome-shell -r (--replace)

@marktopper
marktopper / PageController.php
Last active December 24, 2020 20:55
[Voyager] Routes for Pages BREAD
<?php
class PageController extends \App\Http\Controllers\Controller
{
public function show()
{
$slug = request()->segment(1);
$page = \TCG\Voyager\Models\Page::where('slug', $slug)
->firstOrFail();
<?
/////////////////////
// slack2html
// by @levelsio
/////////////////////
//
/////////////////////
// WHAT DOES THIS DO?
/////////////////////
//
@mrmrs
mrmrs / github-display-none.css
Last active November 2, 2019 03:09
Single purpose rulesets to set an element to display none from githubs production css
.table-list-triage {
display: none;
}
.triage-mode .table-list-non-triage, .triage-mode .table-list-filters {
display: none;
}
.boxed-group-list>li.approved .btn-sm, .boxed-group-list>li.rejected .btn-sm {
display: none;
}
.repo-list .participation-graph.disabled {
@norfair00
norfair00 / main.sh
Last active November 17, 2015 22:18
VPS Install
apt-get update
apt-get install build-essential
apt-get install python
apt-get install git
apt-get install curl
#wget --no-check-certificate --output-document=Python.tgz https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
#tar xfz Python.tgz
#cd Python-3.4.3
@calebmer
calebmer / _utils.scss
Created February 26, 2015 12:15
A set of utilities I use with my sass
// ==================
// Misc
// ==================
$infinity: 9999;
@mixin clearfix() {
&:before,
&:after {
content: "";
@stefanzweifel
stefanzweifel / index.php
Last active April 3, 2020 07:07
Screeenly API Example
<?php
$payload = array(
'key' => 'YOUR-API-KEY',
'url' => 'https://www.youtube.com/'
'height' => 800, // Optional
'width' => 500 // Optional
);
$payload = json_encode($payload);
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active July 25, 2025 09:29
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {