Skip to content

Instantly share code, notes, and snippets.

View tonifisler's full-sized avatar

Toni Fisler tonifisler

View GitHub Profile
@tonifisler
tonifisler / tokenVision.js
Last active January 30, 2022 17:37
Foundry VTT macros
// From Sky's macro: https://github.com/Sky-Captain-13/foundry/blob/master/scriptMacros/tokenVision.js
// I addded :
// - Faerie Fire option
// - Light color option
// - Radiant consumption option (Aasimar)
let applyChanges = false;
new Dialog({
title: `Token Vision Configuration`,
content: `

Keybase proof

I hereby claim:

  • I am tonifisler on github.
  • I am tonifisler (https://keybase.io/tonifisler) on keybase.
  • I have a public key ASCQt9BNvc8LvfHpanX5xfcyZ6I4kDFIsz9qFmJRGciv8Ao

To claim this, I am signing this object:

@tonifisler
tonifisler / asides.scss
Last active May 9, 2018 13:13
CSS Grid article
.content aside {
grid-column: sidebar2;
}
@tonifisler
tonifisler / init.coffee
Last active April 17, 2017 12:08
Atom Settings
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@tonifisler
tonifisler / toni.zsh-theme
Last active June 28, 2017 07:46
ZSH Theme based on Agnoster
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
@tonifisler
tonifisler / htpasswd.php
Created June 25, 2014 12:48
Generate htpasswd
<?php
if (isset($_POST['login']) AND isset($_POST['pass']))
{
$login = $_POST['login'];
$pass_crypted = crypt($_POST['pass']);
echo '<p>Ligne &eacute; copier dans le .htpasswd:<br>' . $login . ':' . $pass_crypted . '</p>';
}
else
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/
@tonifisler
tonifisler / composer.bash
Created May 17, 2014 20:07
Install Composer on Webfaction server
$ git clone https://github.com/composer/composer.git
$ cd composer
$ php55 ../composer.phar install
$ find ./bin -type f -executable | xargs sed -i 's/env php$/env php55/g'
@tonifisler
tonifisler / svg-fallback.html
Created May 17, 2014 20:02
<img/> SVG with PNG fallback
<img src="img/logo_colors.svg" onerror="this.onerror=null; this.src='img/logo_colors.png'" alt="alt" />
@tonifisler
tonifisler / gulpfile.js
Created March 9, 2014 09:14
Gulp Browser-sync
var browserSync = require('browser-sync');
gulp.task('browser-sync', function() {
browserSync.init(['style.css', '*.php'], {
proxy: {
host: 'site.dev',
port: '80'
}
});
});