Skip to content

Instantly share code, notes, and snippets.

@Beyarz
Beyarz / untaggedImage.md
Last active May 21, 2019 21:39
Docker <none> (untagged) images

When building lots of images you end up with a list of untagged builds at the end.

Beyarz 福 ~/Desktop/Work/Web ➤ n1bqd8a|content✓
3287 ± : docker images                                                                                 [0m]
REPOSITORY              TAG                 IMAGE ID            CREATED             SIZE
web                     latest              0a27aff6030f        2 days ago          401MB
<none>                  <none>              bd215f291219        2 days ago          401MB
<none>                  <none>              faa2d8135eeb        2 days ago          102MB
<none>                  <none>              06bcd360bcd0        2 days ago          102MB
<none>                  <none>              4ee9b19c451b        2 days ago          102MB
@Beyarz
Beyarz / half.html
Last active June 7, 2019 21:51
A simple designed website split in half. I believe this type of style got lots of potential and could be used in a variety of ways with simplicity in mind.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Split</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="stylesheet" type="text/css" href="style.css" />
<link href="https://fonts.googleapis.com/css?family=Nunito:200,600" rel="stylesheet">
</head>
@Beyarz
Beyarz / Dockerfile
Last active March 14, 2024 10:52 — forked from jcavat/Dockerfile
Updated version of: docker-compose with Php 7.2.6, Mysql 8.0.16, Phpmyadmin 4.8 & Apache
FROM php:7.2.6-apache
RUN docker-php-ext-install mysqli
@Beyarz
Beyarz / multiplication_table.rb
Last active June 27, 2019 17:11 — forked from ph3nx/multiplication_table.rb
Ruby program that prints a multiplication table (12 x 12 field).
# frozen_string_literal: true
range = 1.upto(12)
range.each do |item|
range.map { |element| print "#{item * element} " } && puts
end
@Beyarz
Beyarz / aftonbladet.js
Last active October 29, 2020 23:02
Get rid of all the articles from the sports category on aftonbladet.se
// ==UserScript==
// @name Aftonbladet sportfilter
// @description Filter out sport related articles
// @match https://*.aftonbladet.se/*
// ==/UserScript==
window.addEventListener('DOMContentLoaded', () => {
//let x = document.getElementsByClassName('abTheme-sportbladet')
let x = document.querySelectorAll('[href^="/sportbladet"]')
@Beyarz
Beyarz / angle-desgin.html
Last active June 7, 2020 12:47
angle desgin
<!DOCTYPE html>
<html lang="en">
<head>
<title>Angle design</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css' />
@Beyarz
Beyarz / Reinstall vscode.md
Created October 9, 2019 20:03
Fresh copy of vscode

Reinstall vscode

Delete everything vscode stored

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist && rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist && rm -fr ~/Library/Caches/com.microsoft.VSCode && rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/ && rm -fr ~/Library/Application\ Support/Code/ && rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/ && rm -fr ~/.vscode/

Download a fresh copy

https://code.visualstudio.com/Download

@Beyarz
Beyarz / brew.md
Last active November 11, 2021 23:38
Keep Homebrew packages clean

Update, upgrade & clean /Cellar/

All in one

brew upgrade && brew upgrade --cask && brew cleanup

Clean cached versions

@Beyarz
Beyarz / ssh.md
Last active May 1, 2024 11:42
Ssh key

SSH

Create key

ssh-keygen -t rsa -b 4096 -C "[email protected]"

Get public key

cat /Users/NAME/.ssh/id_rsa.pub

@Beyarz
Beyarz / grep.md
Last active September 11, 2024 17:11
Notes

Grep notes

Find in current dir with recurs

grep "FIND" . -r

Find & replace in current dir (macOS)

grep -rl "FIND" ./ | xargs sed -i "" 's/FIND/REPLACE/g'