Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
Working on a game

CodelineRed

🎮
Working on a game
View GitHub Profile
@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.
View twitch-chest-auto-click.js
// 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;
@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.
View email-encrypt-decrypt.phtml
<?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 / vscode-extensions.txt
Created January 4, 2023 10:26
Extensions I use in VScode
View vscode-extensions.txt
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 / vscode-user.json
Created January 4, 2023 10:46
VScode User Settings
View vscode-user.json
{
"workbench.colorTheme": "Default Dark+",
"files.autoSave": "onFocusChange",
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}
@CodelineRed
CodelineRed / gitconfig.ini
Last active January 4, 2023 16:16
List of Git alias
View gitconfig.ini
[alias]
al = "!git config --get-regexp ^alias\\."
br = branch
co = checkout
cod = checkout develop
com = checkout master
comn = checkout main
cop = checkout production
co1 = checkout 1.x
co2 = checkout 2.x