This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Lightweight Ansible-compatible parser | |
# | |
# This tool generates one shell file per playbook placed in the ./ansible folder | |
# Only partial support for the `copy` and `file` builtins is implemented. | |
# | |
# Note: `become` is not supported, so all generated files MUST be run as root. | |
# | |
# To execute, run `crystal run ansible-light.cr` in your terminal or use the shell file | |
# provided below (requires the Crystal compiler). | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Syntax highlighting for Crystal. | |
syntax crystal "\.cr$" | |
comment "#" | |
tabgives " " | |
# Constants. | |
color brightblue "\<[A-Z]+[0-9A-Z_a-z]*|(\$|@|@@)[0-9A-Z_a-z]+" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"1:0:embedded": { // client | |
"1:0:embedded": { // context | |
"1:string": "fr", // hl | |
"2:string": "FR", // gl | |
// 4? "remoteHost": "141.98.6.54", | |
"10:string": "FR", // ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<!-- This can be placed in any structure element, like <div>, <td>, etc... --> | |
<input id="my_checkbox1" name="input1" type="checkbox" hidden=""> | |
<label for="my_checkbox1"><span></span></label> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Distro name | |
# | |
# Ubuntu / Debian | |
if [ -e /etc/lsb-release ]; then | |
. /etc/lsb-release | |
distro="$DISTRIB_ID $DISTRIB_RELEASE $DISTRIB_CODENAME" | |
# RedHat / Fedora / CentOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@-moz-document domain("twitter.com") { | |
/* | |
* New twitter | |
*/ | |
/* Emojis everywhere */ | |
/*div.css-1dbjc4n span.r-bnwqim.r-h9hxbl { display: none }*/ | |
/* Emojis in twitter names */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* winlang.h | |
* | |
* Language Identifier Constants and Strings for Microsoft Windows | |
* | |
* Extracted from: | |
* https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings | |
* | |
* Disclaimer: As the data below was extracted from Microsoft website, I'm NOT | |
* responsible for any geo-political issues that may come from their sorting |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* wintypes.h | |
* | |
* Windows Data Types | |
* Copyright 2020 (c) Samantaz Fox | |
* | |
* This file is in the public domain. | |
* Feel free to copy, modify, redistribute it! | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Import color definitions | |
. $ZDOTDIR/colors | |
# Get OS details | |
. $ZDOTDIR/distro_specs | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pre-defined colors codes for a colorful terminal :D | |
# COLOR_Lxxx means light color | |
#-----------Foreground Colors------------ | |
# | |
# Black 0;30 Dark Grey 1;30 | |
# Blue 0;34 Light Blue 1;34 | |
# Green 0;32 Light Green 1;32 | |
# Cyan 0;36 Light Cyan 1;36 | |
# Red 0;31 Light Red 1;31 |