Skip to content

Instantly share code, notes, and snippets.

View keiosweb's full-sized avatar

Keios Solutions keiosweb

View GitHub Profile
<!-- meta partial to use freely -->
<meta charset="{{ website_charset }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>{{ this.page.title }} | {{ website_title }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="{{ website_description }}"/>
<meta name="keywords" content="{{ website_keywords }}"/>
<meta name="author" content=""/>
System Information:
OS Version:
Linux Distribution: Arch Linux
Kernel Version: 4.6.2-1-ARCH #1 SMP PREEMPT Wed Jun 8 08:40:59 CEST 2016
Hardware Info:
Machine Type Hewlett-Packard HP Compaq dc7900 Convertible Minitower
CPU Type GenuineIntel x86_64
CPU Info Intel(R) Core(TM)2 Duo CPU E8600 @ 3.33GHz
CPU Speed 3333 MHz
@keiosweb
keiosweb / msbt54_item_number_bugfix_pl.md
Created March 4, 2016 16:12
MSBT 5.4 Loot Item Number Bugfix PL
  1. Przejdź do folderu /Interface/AddOns/MikScrollingBattleText/

  2. Skopiuj gdzieś w ramach kopii zapasowej plik MSBTLoot.lua

  3. Otwórz plik MSBTLoot.lua

  4. Znajdź linie 100 - 102

  5. Zmień

@keiosweb
keiosweb / msbt54_item_number_bugfix.md
Last active March 4, 2016 16:02
MSBT 5.4 Loot Item Number Bugfix
  1. Go to /Interface/AddOns/MikScrollingBattleText/

  2. Copy MSBTLoot.lua somewhere (backup)

  3. Open MSBTLoot.lua

  4. Find lines 100 - 102

  5. Change

@keiosweb
keiosweb / git-update.sh
Created November 22, 2015 17:35
Visits all directories in current directories and git pulls them if they are git repos. Lists directories in which git pull failed at the end.
#!/bin/bash
date=`date +%d%m%Y-%H%M`
echo "Failed updates:" > /tmp/gitupdate-$date.log
for dir in *; do
if [[ -d $dir ]]; then
cd $dir
if [[ -d ".git" ]]; then
echo
echo "Updating $dir ..."
echo "-----------------------------------------"
@keiosweb
keiosweb / simplemenu.twig
Last active October 15, 2015 08:22
SimpleMenu Raw
<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{ form_ajax('onUpdate', { model: user, redirect: __SELF__.getRedirect }) }}
<div class="form-group">
<label for="firstName">First Name</label>
<input name="name" type="text" class="form-control" id="firstName" value="{{ form_value('first_name') }}">
</div>
<div class="form-group">
<label for="lastName">First Name</label>
<input name="name" type="text" class="form-control" id="lastName" value="{{ form_value('last_name') }}">
{% if not user %}
<form onsubmit="$(this).request('onRegister', {
url: '{{ __SELF__.registerTarget | raw }}'
{% if __SELF__.hasRedirect %}
, data: {
redirect: '{{ __SELF__.redirect }}'
}
{% endif %}
}); return false;">
<div class="form-group">
{% if not user %}
<form
onsubmit="$(this).request('onSignin', {
url: '{{ __SELF__.signInTarget | raw }}'
{% if __SELF__.hasRedirect %}
, data: {
redirect: '{{ __SELF__.redirect }}'
}
{% endif %}
}); return false;">
<div class="confirm-container">
<!--This will contain the confirmation when the email is successfully sent-->
</div>
<form class="flexiContactForm" role="form"
data-request="{{ __SELF__ }}::onMailSent"
data-request-update="'{{ __SELF__ }}::confirm': '.confirm-container'">
<div class="form-groups">
<div class="form-group">
<input type="text" class="form-control" value="" name="name" placeholder="Enter name">