Skip to content

Instantly share code, notes, and snippets.

View CodelineRed's full-sized avatar
👨‍💻
Up Next: Vue Skeleton 3.0.0

Cody CodelineRed

👨‍💻
Up Next: Vue Skeleton 3.0.0
View GitHub Profile
@CodelineRed
CodelineRed / overlay.scss
Created March 17, 2024 20:03
Crossfade Triangles Overlay
$triangle-color-1: #067da8;
$triangle-color-2: #89c6de;
.overlay {
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 110%;
@CodelineRed
CodelineRed / gitconfig.ini
Last active October 3, 2024 18:01
List of Git alias
[user]
name = John Doe
email = john@doe.git
[init]
defaultBranch = main
[credential]
helper = manager
[core]
autocrlf = true
[alias]
@CodelineRed
CodelineRed / vscode-user.json
Created January 4, 2023 10:46
VScode User Settings
{
"workbench.colorTheme": "Default Dark+",
"files.autoSave": "onFocusChange",
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}
@CodelineRed
CodelineRed / vscode-extensions.txt
Created January 4, 2023 10:26
Extensions I use in VScode
IntelliSense for CSS class names in HTML / https://marketplace.visualstudio.com/items?itemName=Zignd.html-css-class-completion
PHP Intelephense / https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
Twig / https://marketplace.visualstudio.com/items?itemName=whatwedo.twig
Vue Language Features (Volar) / https://marketplace.visualstudio.com/items?itemName=Vue.volar
@CodelineRed
CodelineRed / email-encrypt-decrypt.phtml
Last active January 19, 2022 09:12
This is an email encrypt / decrypt extracted from TYPO3. It is useful to protecting your email against spam bots.
<?php
$email = 'software@insanitymeetshh.net';
$emailEncode = quoteJSvalue(encryptEmail($email, '-2'));
function quoteJSvalue($value) {
return strtr(
json_encode((string)$value, JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_TAG),
[
'"' => '\'',
@CodelineRed
CodelineRed / twitch-chest-auto-click.js
Last active December 31, 2021 03:27
This code collects automatically the channel points chest which pops up every 15 minutes.
// open a twitch channel with channel points
// open chat or popout chat
// open inspector (Opera: CTRL + SHIFT + C, Chrome: CTRL + SHIFT + I, Firefox: F12)
// open console in tab
// copy / paste code + ENTER
// only works if you view a live stream. (just open chat is not enough)
if (document.querySelector('.community-points-summary').style.backgroundColor === '') {
var chestPoints = 0;