Skip to content

Instantly share code, notes, and snippets.

View wwalker's full-sized avatar

Wayne Walker wwalker

View GitHub Profile
.tab-background[selected="true"] {
background-color: red; /* this sets the color of the tab background */
}
.tab-line[selected="true"] {
background-color : red; /* this sets the color of the line above the tab */
}
@wwalker
wwalker / Steam-on-fedora.md
Created December 10, 2020 07:46 — forked from mattbell87/Steam-on-fedora.md
How to install Steam on Fedora

Installing Steam on Fedora

These instructions are currently for Fedora 30. I'll update them over the releases if anything changes.

Open Software

Press the Win/Super key, type software and press Enter.

Enable the Third party and Steam repositories

# debug-script a script/run script while gathering debug info
ds(){
local cmd
local PS4
local basename
basename=${1%%*/}
cmd=$(command -v "$1")
shift
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
you just need to switch to "Markdown Mode" then put 3 "accent grave" characters ('`) on a line before your code and on a line after your code, like this
```
\`\`\`
/etc/hosts:
file.managed:
- template: jinja
{% if grains['id'].startswith('r1.rack25') %}
- source: salt://files/etc.hosts.rack25
{% elif grains['id'].startswith('r1.rack25.s2') %}
@wwalker
wwalker / i3-msg -t get_tree
Created September 3, 2020 03:57
i3 and jq :-)
{
"id": 94102782737104,
"type": "root",
"orientation": "horizontal",
"scratchpad_state": "none",
"percent": 1,
"urgent": false,
"focused": false,
"layout": "splith",
"workspace_layout": "default",
#!/bin/bash
i3-sensible-terminal &
sleep 10
i3 > /tmp/i3.log 2>&1
@wwalker
wwalker / asdf
Created September 1, 2020 03:44
#!/bin/bash
xterm &
sleep 10
xterm -bg blue &
sleep 10
i3-with-shmlog || i3
-- Logs begin at Mon 2020-08-10 03:51:46 UTC, end at Mon 2020-08-10 03:51:47 UTC. --
Aug 10 03:51:46 centos7x64 systemd-journal[82]: Runtime journal is using 6.2M (max 49.7M, leaving 74.5M of free 490.8M, current limit 49.7M).
Aug 10 03:51:46 centos7x64 systemd-journal[82]: Runtime journal is using 6.2M (max 49.7M, leaving 74.5M of free 490.8M, current limit 49.7M).
Aug 10 03:51:46 centos7x64 kernel: Initializing cgroup subsys cpuset
Aug 10 03:51:46 centos7x64 kernel: Initializing cgroup subsys cpu
Aug 10 03:51:46 centos7x64 kernel: Initializing cgroup subsys cpuacct
Aug 10 03:51:46 centos7x64 kernel: Linux version 3.10.0-123.8.1.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Sep 22 19:06:58 UTC 2014
Aug 10 03:51:46 centos7x64 kernel: Command line: root=LABEL=DOROOT ro
Aug 10 03:51:46 centos7x64 kernel: e820: BIOS-provided physical RAM map:
Aug 10 03:51:46 centos7x64 kernel: BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
- alert: InstanceDown
expr: up{job="node"} == 0
for: 5m
labels:
name: InstanceDown
severity: critical
annotations:
description: '{{ $labels.instance }} of job {{ $labels.job }} has been down
for more than 5 minutes.'
summary: Down