Skip to content

Instantly share code, notes, and snippets.

View razouck's full-sized avatar
๐Ÿ’ญ
I may be slow to respond.

Razouck razouck

๐Ÿ’ญ
I may be slow to respond.
View GitHub Profile
@razouck
razouck / image-reset.css
Created September 29, 2024 20:53 — forked from palashmon/image-reset.css
A More Effective CSS Image Reset
/**
* This CSS block is a More Effective CSS Image Reset.
* It resets the default styles of an image element
* and adds some additional styles to improve its rendering.
*
* The `max-width: 100%;` ensures that the image does not exceed its container's width,
* while maintaining its aspect ratio with `height: auto;`.
*
* The `vertical-align: middle;` aligns the image vertically with the text.
*
let a = [1, 2, [3, [4, [5, [6], [7, [8]]]]]];
function brainDeadDeepFlat(arr)
{
return Array.isArray(arr)
? arr.reduce( (arr, e) => arr.concat(brainDeadDeepFlat(e)), [] )
: [arr];
}
function normalBrainDeepFlat(arr)
@razouck
razouck / hosts
Created December 15, 2022 13:13
OpenSUSE default hosts file.
#
# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server.
# Syntax:
#
# IP-Address Full-Qualified-Hostname Short-Hostname
#
@razouck
razouck / hosts
Created December 15, 2022 13:11
Windows default hosts file.
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
@razouck
razouck / Home.desktop
Created December 15, 2022 13:10
KDE home desktop entry.
[Desktop Entry]
Encoding=UTF-8
Name=Home
Name[ca]=Inici
Name[ca@valencia]=Inici
Name[cs]=Mลฏj adresรกล™
Name[da]=Hjem
Name[de]=Persรถnlicher Ordner
Name[el]=ฮ ฯฮฟฯƒฯ‰ฯ€ฮนฮบฯŒฯ‚ ฯ†ฮฌฮบฮตฮปฮฟฯ‚
Name[en_GB]=Home
@razouck
razouck / trash.desktop
Created December 15, 2022 13:09
KDE trash bin desktop entry.
[Desktop Entry]
Name=Trash
Name[ar]=ุงู„ู…ู‡ู…ู„ุงุช
Name[az]=Sษ™bษ™t
Name[bg]=ะšะพัˆั‡ะต
Name[ca]=Paperera
Name[ca@valencia]=Paperera
Name[cs]=Koลก
Name[da]=Papirkurv
Name[de]=Papierkorb
@razouck
razouck / volume.sh
Last active April 3, 2022 23:37
Change the volume with Dunst.
#!/bin/bash
notify() {
if [ $1 -gt 60 ]
then
icon="๐Ÿ”Š"
elif [ $1 -gt 30 ]
then
๐Ÿ˜€ ๐Ÿ˜ƒ ๐Ÿ˜„ ๐Ÿ˜ ๐Ÿ˜† ๐Ÿ˜… ๐Ÿคฃ ๐Ÿ˜‚ ๐Ÿ™‚ ๐Ÿ™ƒ ๐Ÿ˜‰ ๐Ÿ˜Š ๐Ÿ˜‡ ๐Ÿฅฐ ๐Ÿ˜ ๐Ÿคฉ ๐Ÿ˜˜ ๐Ÿ˜— โ˜บ ๐Ÿ˜š ๐Ÿ˜™ ๐Ÿฅฒ ๐Ÿ˜‹ ๐Ÿ˜› ๐Ÿ˜œ ๐Ÿคช ๐Ÿ˜ ๐Ÿค‘ ๐Ÿค— ๐Ÿคญ ๐Ÿคซ ๐Ÿค” ๐Ÿค ๐Ÿคจ ๐Ÿ˜ ๐Ÿ˜‘ ๐Ÿ˜ถ ๐Ÿ˜ถโ€๐ŸŒซ๏ธ ๐Ÿ˜ ๐Ÿ˜’ ๐Ÿ™„ ๐Ÿ˜ฌ ๐Ÿ˜ฎโ€๐Ÿ’จ ๐Ÿคฅ ๐Ÿ˜Œ ๐Ÿ˜” ๐Ÿ˜ช ๐Ÿคค ๐Ÿ˜ด ๐Ÿ˜ท ๐Ÿค’ ๐Ÿค• ๐Ÿคข ๐Ÿคฎ ๐Ÿคง ๐Ÿฅต ๐Ÿฅถ ๐Ÿฅด ๐Ÿ˜ต ๐Ÿ˜ตโ€๐Ÿ’ซ ๐Ÿคฏ ๐Ÿค  ๐Ÿฅณ ๐Ÿฅธ ๐Ÿ˜Ž ๐Ÿค“ ๐Ÿง ๐Ÿ˜• ๐Ÿ˜Ÿ ๐Ÿ™ โ˜น ๐Ÿ˜ฎ ๐Ÿ˜ฏ ๐Ÿ˜ฒ ๐Ÿ˜ณ ๐Ÿฅบ ๐Ÿ˜ฆ ๐Ÿ˜ง ๐Ÿ˜จ ๐Ÿ˜ฐ ๐Ÿ˜ฅ ๐Ÿ˜ข ๐Ÿ˜ญ ๐Ÿ˜ฑ ๐Ÿ˜– ๐Ÿ˜ฃ ๐Ÿ˜ž ๐Ÿ˜“ ๐Ÿ˜ฉ ๐Ÿ˜ซ ๐Ÿฅฑ ๐Ÿ˜ค ๐Ÿ˜ก ๐Ÿ˜  ๐Ÿคฌ ๐Ÿ˜ˆ ๐Ÿ‘ฟ ๐Ÿ’€ โ˜  ๐Ÿ’ฉ ๐Ÿคก ๐Ÿ‘น ๐Ÿ‘บ ๐Ÿ‘ป ๐Ÿ‘ฝ ๐Ÿ‘พ ๐Ÿค– ๐Ÿ˜บ ๐Ÿ˜ธ ๐Ÿ˜น ๐Ÿ˜ป ๐Ÿ˜ผ ๐Ÿ˜ฝ ๐Ÿ™€ ๐Ÿ˜ฟ ๐Ÿ˜พ ๐Ÿ™ˆ ๐Ÿ™‰ ๐Ÿ™Š
๐Ÿ’‹ ๐Ÿ’Œ ๐Ÿ’˜ ๐Ÿ’ ๐Ÿ’– ๐Ÿ’— ๐Ÿ’“ ๐Ÿ’ž ๐Ÿ’• ๐Ÿ’Ÿ โฃ ๐Ÿ’” โค๏ธโ€๐Ÿ”ฅ โค๏ธโ€๐Ÿฉน โค ๐Ÿงก ๐Ÿ’› ๐Ÿ’š ๐Ÿ’™ ๐Ÿ’œ ๐ŸคŽ ๐Ÿ–ค ๐Ÿค ๐Ÿ’ฏ ๐Ÿ’ข ๐Ÿ’ฅ ๐Ÿ’ซ ๐Ÿ’ฆ ๐Ÿ’จ ๐Ÿ•ณ ๐Ÿ’ฃ ๐Ÿ’ฌ ๐Ÿ‘๏ธโ€๐Ÿ—จ๏ธ ๐Ÿ—จ ๐Ÿ—ฏ ๐Ÿ’ญ ๐Ÿ’ค
๐Ÿ‘‹ ๐Ÿคš ๐Ÿ– โœ‹ ๐Ÿ–– ๐Ÿ‘Œ ๐ŸคŒ ๐Ÿค โœŒ ๐Ÿคž ๐ŸคŸ ๐Ÿค˜ ๐Ÿค™ ๐Ÿ‘ˆ ๐Ÿ‘‰ ๐Ÿ‘† ๐Ÿ–• ๐Ÿ‘‡ โ˜ ๐Ÿ‘ ๐Ÿ‘Ž โœŠ ๐Ÿ‘Š ๐Ÿค› ๐Ÿคœ ๐Ÿ‘ ๐Ÿ™Œ ๐Ÿ‘ ๐Ÿคฒ ๐Ÿค ๐Ÿ™ โœ ๐Ÿ’… ๐Ÿคณ ๐Ÿ’ช ๐Ÿฆพ ๐Ÿฆฟ ๐Ÿฆต ๐Ÿฆถ ๐Ÿ‘‚ ๐Ÿฆป ๐Ÿ‘ƒ ๐Ÿง  ๐Ÿซ€ ๐Ÿซ ๐Ÿฆท ๐Ÿฆด ๐Ÿ‘€ ๐Ÿ‘ ๐Ÿ‘… ๐Ÿ‘„
๐Ÿ‘ถ ๐Ÿง’ ๐Ÿ‘ฆ ๐Ÿ‘ง ๐Ÿง‘ ๐Ÿ‘ฑ ๐Ÿ‘จ ๐Ÿง” ๐Ÿง”โ€โ™‚๏ธ ๐Ÿง”โ€โ™€๏ธ ๐Ÿ‘จโ€๐Ÿฆฐ ๐Ÿ‘จโ€๐Ÿฆฑ ๐Ÿ‘จโ€๐Ÿฆณ ๐Ÿ‘จโ€๐Ÿฆฒ ๐Ÿ‘ฉ ๐Ÿ‘ฉโ€๐Ÿฆฐ ๐Ÿง‘โ€๐Ÿฆฐ ๐Ÿ‘ฉโ€๐Ÿฆฑ ๐Ÿง‘โ€๐Ÿฆฑ ๐Ÿ‘ฉโ€๐Ÿฆณ ๐Ÿง‘โ€๐Ÿฆณ ๐Ÿ‘ฉโ€๐Ÿฆฒ ๐Ÿง‘โ€๐Ÿฆฒ ๐Ÿ‘ฑโ€โ™€๏ธ ๐Ÿ‘ฑโ€โ™‚๏ธ ๐Ÿง“ ๐Ÿ‘ด ๐Ÿ‘ต ๐Ÿ™ ๐Ÿ™โ€โ™‚๏ธ ๐Ÿ™โ€โ™€๏ธ ๐Ÿ™Ž ๐Ÿ™Žโ€โ™‚๏ธ ๐Ÿ™Žโ€โ™€๏ธ ๐Ÿ™… ๐Ÿ™…โ€โ™‚๏ธ ๐Ÿ™…โ€โ™€๏ธ ๐Ÿ™† ๐Ÿ™†โ€โ™‚๏ธ ๐Ÿ™†โ€โ™€๏ธ ๐Ÿ’ ๐Ÿ’โ€โ™‚๏ธ ๐Ÿ’โ€โ™€๏ธ ๐Ÿ™‹ ๐Ÿ™‹โ€โ™‚๏ธ ๐Ÿ™‹โ€โ™€๏ธ ๐Ÿง ๐Ÿงโ€โ™‚๏ธ ๐Ÿงโ€โ™€๏ธ ๐Ÿ™‡ ๐Ÿ™‡โ€โ™‚๏ธ ๐Ÿ™‡โ€โ™€๏ธ ๐Ÿคฆ ๐Ÿคฆโ€โ™‚๏ธ ๐Ÿคฆโ€โ™€๏ธ ๐Ÿคท ๐Ÿคทโ€โ™‚๏ธ ๐Ÿคทโ€โ™€๏ธ ๐Ÿง‘โ€โš•๏ธ ๐Ÿ‘จโ€โš•๏ธ ๐Ÿ‘ฉโ€โš•๏ธ ๐Ÿง‘โ€๐ŸŽ“ ๐Ÿ‘จโ€๐ŸŽ“ ๐Ÿ‘ฉโ€๐ŸŽ“ ๐Ÿง‘โ€๐Ÿซ ๐Ÿ‘จโ€๐Ÿซ ๐Ÿ‘ฉโ€๐Ÿซ ๐Ÿง‘โ€โš–๏ธ ๐Ÿ‘จโ€โš–๏ธ ๐Ÿ‘ฉโ€โš–๏ธ ๐Ÿง‘โ€๐ŸŒพ ๐Ÿ‘จโ€๐ŸŒพ ๐Ÿ‘ฉโ€๐ŸŒพ ๐Ÿง‘โ€๐Ÿณ ๐Ÿ‘จโ€๐Ÿณ ๐Ÿ‘ฉโ€๐Ÿณ ๐Ÿง‘โ€๐Ÿ”ง ๐Ÿ‘จโ€๐Ÿ”ง ๐Ÿ‘ฉโ€๐Ÿ”ง ๐Ÿง‘โ€๐Ÿญ
@razouck
razouck / 50-tablet.conf
Last active November 11, 2024 03:52
Set up for my drawing tablet on linux
Section "InputClass"
Identifier "Tablet"
Driver "wacom"
MatchDevicePath "/dev/input/event*"
MatchUSBID "256c:006e"
EndSection
@razouck
razouck / tagof.js
Last active November 18, 2017 16:33
Returns the type/tag of a given value.
function tagof (value) {
return value != value ? 'NaN' :
Object.prototype.toString.call(value)
.match(/\[object (\w+)\]/)[1]
.toLowerCase();
}