Skip to content

Instantly share code, notes, and snippets.

@tareqy
tareqy / modal-layout.blade.php
Created September 5, 2016 00:59 — forked from webinfinita/modal-layout.blade.php
Bootstrap modal blade partial view for Laravel
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title">Titulo</h4>
</div>
<div class="modal-body">
Contenido
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cerrar</button>
<button type="submit" class="btn btn-primary">Actualizar</button>
@tareqy
tareqy / my.cnf
Created March 9, 2016 16:27
Starter MySQL config file for a server with 8GB RAM, innodb and MyISAM.
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
key_buffer_size=32M
query_cache_type=1
query_cache_size=4M
query_cache_limit=24M
tmp_table_size=128M
max_heap_table_size=128M
innodb_buffer_pool_size = 4000M
@tareqy
tareqy / Get-HAProxyStats.ps1
Created November 16, 2015 21:17 — forked from jlazic/Get-HAProxyStats.ps1
Monitor HAProxy with PRTG
# Monitoring HAProxy via CSV stats
# For detailed instructions visit http://lazic.info/josip/post/monitor-haproxy-via-prtg/
# Josip Lazic
param(
[string]$url,
[string]$monitor
);
$templates =@{
@tareqy
tareqy / gist:99886170852e31a6139a
Created May 16, 2015 12:50
Restarted Beanstalkd if not running, and add to log.
#! /bin/bash
case "$(pidof beanstalkd | wc -w)" in
0) echo "Restarting beanstalkd: $(date)" >> /var/log/beanstalkd.log
/etc/rc.d/init.d/beanstalkd restart
;;
1) # all ok
;;
esac