Goals: Add links that are reasonable and good explanations of how stuff works. No hype and no vendor content if possible. Practical first-hand accounts of models in prod eagerly sought.
![Screenshot 2023-12-18 at 10 40 27 PM](https://private-user-images.githubusercontent.com/3837836/291468646-4c30ad72-76ee-4939-a5fb-16b570d38cf2.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2MzI2NzEsIm5iZiI6MTcxOTYzMjM3MSwicGF0aCI6Ii8zODM3ODM2LzI5MTQ2ODY0Ni00YzMwYWQ3Mi03NmVlLTQ5MzktYTVmYi0xNmI1NzBkMzhjZjIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjlUMDMzOTMxWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YzgzN2U2OGQ1YzQzOTlmNWE1YjljMTRmYzViYjhmMjYyODY2ZjQ5YTQ4OWE2MzZkMTMwMDM1MmY3MjQxMTc1NiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.QCrvn6G_NIzR23aOqaF0QpVOARv0dsvyoMcZWIwkGsI)
# NOT fully complete with all the desired features but it does work | |
# Suggested usage - place in the system scheduler and run every few minutes | |
# Set root domain here | |
:local zone "your.internal.domain.com"; | |
:local ttl "00:00:10" | |
:local staticTtl "00:00:30" | |
# TODO : add "nodns" check in static lease comment |
#template for select option, I use it to show regions and draw country flags for each city | |
cityOptionTpl = (obj)-> | |
_.tpl('CitySelectOption')(obj) | |
#helper for rendering option | |
renderCityOption = (entry)-> | |
tplRes = cityOptionTpl({it: | |
title : entry.title | |
region : entry.region | |
country_name : entry.country_name |
$.fn.select2.amd.define('select2/data/extended-ajax',['./ajax','../utils','jquery'], function(AjaxAdapter, Utils, $){ | |
function ExtendedAjaxAdapter ($element,options) { | |
//we need explicitly process minimumInputLength value | |
//to decide should we use AjaxAdapter or return defaultResults, | |
//so it is impossible to use MinimumLength decorator here | |
this.minimumInputLength = options.get('minimumInputLength'); | |
this.defaultResults = options.get('defaultResults'); | |
ExtendedAjaxAdapter.__super__.constructor.call(this,$element,options); |
# MikroTik (RouterOS) script for automatically setting DNS records | |
# for clients when they obtain a DHCP lease. | |
# | |
# author SmartFinn <https://gist.github.com/SmartFinn> | |
:local dnsTTL "00:15:00"; | |
:local token "$leaseServerName-$leaseActMAC"; | |
# Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone") | |
# - truncate length to 63 chars |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
################## | |
# Privacy Settings | |
################## | |
# Privacy: Let apps use my advertising ID: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
# To Restore: | |
#Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
# Privacy: SmartScreen Filter for Store Apps: Disable | |
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
#cloud-config | |
hostname: rancher-os | |
ssh_authorized_keys: | |
- ssh-rsa REPLACE_WITH_PUBLIC_SSH_KEY | |
rancher: | |
debug: false | |
cloud_init: | |
datasources: | |
- ec2 | |
state: |
if (!$MainDB) { | |
$MainDB = '...'; | |
} | |
tools\migrate.exe --task migrate --connection "$MainDB" --provider "SqlServer2012" --assembly "lib\net45\Adapt.Gift.DatabaseScripts.dll" --tps |
# Output json-esque output for logstash to parse easily. | |
http { | |
# ... | |
log_format logstash_json '{"@timestamp": "$time_iso8601", ' | |
'"remote_addr": "$remote_addr", ' | |
'"remote_user": "$remote_user", ' | |
'"body_bytes_sent": "$body_bytes_sent", ' | |
'"request_time": "$request_time", ' |