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
#! /usr/bin/python3 | |
# | |
# this script reads the GeoLite2-Country base and | |
# for each country | |
# creates shell scripts with ipset rules | |
# | |
# before use this do: | |
# install pip install maxminddb | |
# read this: https://www.maxmind.com/en/geolite-free-ip-geolocation-data | |
# download GeoLite2-Country_YYYYmmdd.tar.gz from MaxMind |
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
<# | |
# How to enable 4800..4803 events | |
* run `gpedit.msc` | |
* goto: | |
->`Computer Configuration` | |
->`Windows Settings` | |
->`Security Settings` | |
->`Advanced Audit Policy Configuration` | |
->`System Audit Policies - Local Group Policy Object` | |
->`Logon/Logoff` |
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 | |
# required to work: | |
# sudo apt-get install -y python3-venv | |
# typical test scenario: | |
# ./gogrepoc login # login to GoG and get the auth token | |
# ./gogrepoc update # fetch information and create the manifest | |
# ./gogrepoc download -dryrun # get installers | |
# ./gogrepoc verify # check all the installers for consistency | |
base=$(dirname $(readlink -f $0)) |
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
#include <cstdio> | |
#include <cstdint> | |
#include <cstdlib> | |
#include <ctime> | |
#include <array> | |
#include <algorithm> | |
#include <string> | |
#include <sstream> | |
#include <vector> | |
#include <cassert> |
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
ARG CODENAME=focal | |
ARG INSTALLATION_ROOT="/opt/pgmodeler" | |
FROM ubuntu:${CODENAME} as build | |
ARG CODENAME | |
ARG INSTALLATION_ROOT | |
ENV CODENAME="${CODENAME}" | |
ENV INSTALLATION_ROOT="/opt/pgmodeler" |
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/sh | |
set -e | |
set -x | |
name='Bitradio' | |
branch='master' | |
with_incompatible_bdb=0 | |
patch_atomic_pointer=0 #1 | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
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/sh | |
set -e | |
set -x | |
ulimit -v 4000000 | |
ulimit -c 2000000 | |
export BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/telegram-desktop_telegramdesktop.desktop | |
telegram="/snap/bin/telegram-desktop" |
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
@echo off | |
SET "name_uc=%1" | |
SET "name_lc=%1" | |
setlocal EnableDelayedExpansion | |
for %%b in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do set "name_uc=!name_uc:%%b=%%b!" | |
for %%b in (a b c d e f g h i j k l m n o p q r s t u v w x y z) do set "name_lc=!name_lc:%%b=%%b!" | |
SET REF=c:\toys\wow-sirus | |
SET DST=c:\toys\sirus-%name_lc% |
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
# | |
# Druid | |
#################################################################### | |
# shift shape to bear and start attack | |
#showtooltip | |
/cast [nostance:1] !Облик медведя | |
/stopmacro [noexists][noharm][dead] | |
/cast Рык |
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 | |
# remove all stopped containers | |
docker ps -a -q | xargs -r docker rm | |
#remove all unused volumes | |
docker volume ls -qf dangling=true | xargs -r docker volume rm | |
# remove all untagged images | |
docker images -q -f dangling=true | xargs -r docker rmi |
NewerOlder