This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# A MikroTik script for RouterOS to create yet another peer for wireguard server interface | |
# | |
# For each peer, change peerName, peerIP and peerAllowedIPs | |
# v20250103 | |
#using global to allow execution line by line | |
:global tmpWGInterfaceName wg0tmp | |
:global wgInterfaceName wireguardServer | |
:global wgInterfacePort 13232 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add list=SkipVPN comment="Synology" address=account.synology.com | |
add list=SkipVPN comment="Synology" address=apiauth.quickconnect.to | |
add list=SkipVPN comment="Synology" address=autoupdate.synology.com | |
add list=SkipVPN comment="Synology" address=checkip.dyndns.org | |
add list=SkipVPN comment="Synology" address=checkip.synology.com | |
add list=SkipVPN comment="Synology" address=checkip.webrtc.quickconnect.to | |
add list=SkipVPN comment="Synology" address=checkipv6.quickconnect.to | |
add list=SkipVPN comment="Synology" address=checkipv6.synology.com | |
add list=SkipVPN comment="Synology" address=checkport.synology.com | |
add list=SkipVPN comment="Synology" address=cnc.quickconnect.cn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2.7 | |
# -*- coding: utf-8 -*- | |
# This script is intended to run under Python 2.7 | |
""" | |
Description: | |
This script is designed to identify and delete duplicate files within a specified directory. It compares files in two directories: | |
one containing the files to check for duplicates and the other containing the original files to compare against. If a duplicate | |
is found, the script can either report the duplicate or delete it, based on the provided command-line arguments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Google Cloud Platform Big Query script to copy data from one region to another | |
# | |
# Disclaimer: This is not an officially supported Google product. | |
# Written code can be used as a baseline but is not meant for production usage. | |
# | |
# Based on https://gist.github.com/dutchiechris/1da2f8786107a635e7e6f5a8c50e84dc with a few improvements (main one: support for large BQ files which cannot be exported to a single JSON file). | |
# | |
# Window 10 has a Bash shell feature. Once enabled and installed it allows to run shell command on Windows platform. It is a completely different environment through. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function() { | |
return function(model) { | |
var globalSendTaskName = '_' + model.get('trackingId') + '_sendHitTask'; | |
// Hook the sendHitTask - grab an original reference to a function | |
var originalSendTask = window[globalSendTaskName] = window[globalSendTaskName] || model.get('sendHitTask'); | |
model.set('sendHitTask', function(sendModel) { //overwrite sendHitTask with our code | |
var hitPayload = sendModel.get('hitPayload'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Example</title> | |
</head> | |
<body dir="ltr"> | |
Blah blah blah | |
<script> | |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ | |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), | |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************* | |
* Вступление в JavaScript | |
*********************************/ | |
function main() { | |
// Это однострочный комментарий - здесь можно писать все что угодно - Адвордс Скриптинг эту строчку проигнорирует | |
/* А это многострочный комментарий | |
очень полезен для "отключения" строчек кода или написания целой кучи пояснений к коду | |
*/ | |
// Фукция main является отправной точкой выполнения и ее наличие является обязательной (только для скриптов AdWords) | |
// Давайте начнем с переменных JavaScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************* | |
* Вступление в JavaScript | |
*********************************/ | |
function main() { | |
// Это однострочный комментарий - здесь можно писать все что угодно - Адвордс Скриптинг эту строчку проигнорирует | |
/* А это многострочный комментарий | |
очень полезен для "отключения" строчек кода или написания целой кучи пояснений к коду | |
*/ | |
// Фукция main является отправной точкой выполнения и ее наличие является обязательной (только для скриптов AdWords) | |
// Давайте начнем с переменных JavaScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Давайте определим константы | |
var END_DATE = new Date('December 21, 2015'); //день окончания акции | |
var AD_GROUP_NAME = 'On Sale'; //имя группы объявлений (Ad Group) в адвордс | |
/* | |
Функция main() отправная точка скрипта. С нее начинается выполнение скрипта. Нет, она не принимает параметры: argv и argc | |
*/ | |
function main() { | |
//эта функция возвращает ассоциативный массив с количеством часов и минут до окончания распродажи | |
var timeLeft = calculateTimeLeftUntil(END_DATE); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Давайте определим константы | |
var END_DATE = new Date('December 21, 2015'); //день окончания акции | |
var AD_GROUP_NAME = 'On Sale'; //имя группы объявлений (Ad Group) в адвордс | |
/* | |
Функция main() отправная точка скрипта. С нее начинается выполнение скрипта. Нет, она не принимает параметры: argv и argc | |
*/ | |
function main() { | |
//эта функция возвращает ассоциативный массив с количеством часов и минут до окончания распродажи | |
var timeLeft = calculateTimeLeftUntil(END_DATE); | |
var adGroup = getAdGroup(AD_GROUP_NAME); //выбираем из адвордса нужную группу объявлений |