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/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 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 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 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 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 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 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 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 |
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 | |
# | |
# msys2-sshd-setup.sh — configure sshd on MSYS2 and run it as a Windows service | |
# | |
# Please report issues and/or improvements to Sam Hocevar <[email protected]> | |
# | |
# Prerequisites: | |
# — MSYS2 itself: http://sourceforge.net/projects/msys2/ | |
# — admin tools: pacman -S openssh cygrunsrv mingw-w64-x86_64-editrights | |
# |
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
/* | |
* поиск оптимальной стратегии реинвестирования | |
* исходя из параметров майнера и наивной модели | |
* с зафиксированной стоимостью фалюты | |
* с неизменным значением ежедневной прибыльности | |
* и неизменяющейся вычислительной мощностью Сети | |
*/ | |
let verbose = false; |
NewerOlder