This file contains hidden or 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
# source https://forum.mikrotik.com/viewtopic.php?t=144577 | |
# script to disable secondary DNS when adguard is back up | |
:global disableBackup do={ | |
# set variables | |
:local adguardIP "192.168.11.2" | |
:local message "\E2\9C\85 Primary DNS $adguardIP is up. Switching Cloudflare DNS to Adguard." | |
:local myhost ([/system identity get name]) | |
:if ([/ip dns get servers]!=$adguardIP) do={ |
This file contains hidden or 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
# Description: Boxstarter Script | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: | |
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST> | |
#---- TEMPORARY --- | |
Disable-UAC | |
#--- Windows subsystems/Features --- | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions |
This file contains hidden or 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
package tactic | |
import "github.com/quasilyte/gophers-and-dragons/game" | |
func ChooseCard(s game.State) game.CardType { | |
return winingTactic(s) | |
} | |
func winingTactic(s game.State) game.CardType { |
This file contains hidden or 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
import logging | |
from os import getenv | |
from dotenv import load_dotenv | |
load_dotenv() | |
from telegram import Update, InlineKeyboardMarkup, InlineKeyboardButton |
This file contains hidden or 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
package main | |
import ( | |
"log" | |
"net/http" | |
) | |
var destination string | |
func redirect(w http.ResponseWriter, r *http.Request) { |
This file contains hidden or 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
# should be run from "root" dir | |
ARGS=1 | |
E_BADARGS=85 | |
if [ $# -ne "$ARGS" ] | |
then | |
echo "Usage: `basename $0` {cars|bike}" | |
exit $E_BADARGS | |
fi |
This file contains hidden or 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
FROM postgres:9.6 | |
RUN DEBIAN_FRONTEND=noninteractive apt-get update \ | |
&& apt-get install -y git \ | |
&& apt-get install -y build-essential \ | |
&& apt-get install -y postgresql-server-dev-9.6 \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN mkdir -p hunspell \ | |
&& cd hunspell \ |
This file contains hidden or 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
{ | |
// версия 1 | |
// операторы, ключевые слова, названия юнитов в определении | |
// константы, комментарии, базовые типы, библиотечные юниты | |
patterns = ( | |
{ name = 'string.quoted.double.slang'; | |
begin = '"'; | |
end = '"'; | |
patterns = ( | |
{ name = 'constant.character.escape.untitled'; |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>fileTypes</key> | |
<array> | |
<string>src</string> | |
</array> | |
<key>name</key> | |
<string>untitled</string> |
This file contains hidden or 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/bash | |
if [ ! -d /root/backups ]; then | |
mkdir /root/backups | |
fi | |
DIR_NAME='/root/backups/'$(date +"%d-%m-%Y__%H_%M") | |
mkdir "$DIR_NAME" | |
echo $DIR_NAME |
NewerOlder