Skip to content

Instantly share code, notes, and snippets.

View webstandardcss's full-sized avatar

Trey Brister webstandardcss

View GitHub Profile
@webstandardcss
webstandardcss / 55-bytes-of-css.md
Created September 30, 2022 20:56 — forked from JoeyBurzynski/55-bytes-of-css.md
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@webstandardcss
webstandardcss / mv.sh
Created April 13, 2020 21:50 — forked from premek/mv.sh
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
function mv() {
if [ "$#" -ne 1 ]; then
command mv "$@"
return
@webstandardcss
webstandardcss / it-ebooks.md
Created April 1, 2020 16:19 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@webstandardcss
webstandardcss / ANSI-Test.sh
Created December 18, 2019 03:50 — forked from mxmerz/ANSI-Test.sh
Shell script to test support of ANSI color and style codes
# ANSI Start Codes
# Styles.
Normal="\x1b[0m"
Bold="\x1b[1m"
Faint="\x1b[2m"
Italic="\x1b[3m"
Underline="\x1b[4m"
Blink_Slow="\x1b[5m"
Blink_Rapid="\x1b[6m"
@webstandardcss
webstandardcss / built_in.ahk
Created August 11, 2019 22:45 — forked from davebrny/built_in.ahk
(autohotkey) - change, restore or reset various built-in script settings
/*
[built-in defaults]
a_autoTrim = on
a_batchLines = 10ms
a_controlDelay = 20
a_coordModeCaret = screen
a_coordModeMenu = screen
a_coordModeMouse = screen
a_coordModePixel = screen
a_coordModeToolTip = screen
@webstandardcss
webstandardcss / built_in.ahk
Created August 11, 2019 22:45 — forked from davebrny/built_in.ahk
(autohotkey) - change, restore or reset various built-in script settings
/*
[built-in defaults]
a_autoTrim = on
a_batchLines = 10ms
a_controlDelay = 20
a_coordModeCaret = screen
a_coordModeMenu = screen
a_coordModeMouse = screen
a_coordModePixel = screen
a_coordModeToolTip = screen
@webstandardcss
webstandardcss / sizes.rb
Created April 18, 2019 15:32 — forked from ttscoff/sizes.rb
sizes: Calculate and sort all filesizes for current folder
#!/usr/bin/env ruby
# Sizes - Calculate and sort all filesizes for current folder
# Includes directory sizes, colorized output
# Brett Terpstra 2019 WTF License
VERSION = "1.0.0"
require 'shellwords'
# Just including term-ansicolor by @flori and avoiding all the
# rigamarole of requiring multiple files when it's not a gem... - Brett
@webstandardcss
webstandardcss / websters-chrome.md
Created January 31, 2019 22:50 — forked from jsomers/websters-chrome.md
Adding Webster's as a Chrome search engine

Instructions courtesy of @chancelionheart:

  1. Access the Settings menu by clicking the Options icon in the upper-right corner of the browser window. It is the icon with three horizontal lines stacked on top of each other. Click on “Settings” near the bottom of the Options menu.

  2. Under the “Search” heading in the Settings menu, click the "Manage search engines" button.

  3. At the bottom of the Search Engines window that comes up, enter the following: Name: Use whatever you like (I used "Webster's Revised 1913+1928 Dictionary") Keyword: Also whatever you like, I just use 'd' for easy access. Url: http://machaut.uchicago.edu/?resource=Webster%27s&word=%s&use1913=on&use1828=on (replaces the search term with %s, what google chrome uses for the query)

### Flatpak Repos
List packages on a repo :
flatpak remote-ls repon-name --user
flatpak remote-ls
Install packages :
flatpak --user install repo-name package-name io.liri.Platform
Flathub:
@webstandardcss
webstandardcss / docker-clear.bat
Created July 16, 2018 04:53 — forked from daredude/docker-clear.bat
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i