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 | |
# | |
# 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 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/bash | |
flog=/var/log/ftpd.log | |
FTPD=pure-ftpd | |
ip=192.168.0.1,21 | |
[ ! -z ${ip} ] && ip=-S${ip} | |
FTPDa="-4 -A -c8 -D -fnone -g/var/run/${FTPD}.pid -H -lpuredb:/etc/pureftpd.pdb -u1 ${ip}" | |
kill -sigterm `cat /var/run/${FTPD}.pid` | |
pacman -Sy | |
cd ~ |
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/bash | |
flog=/var/log/ftpd.log | |
FTPD=proftpd | |
FTPDa="-n -q" | |
kill -sigterm `cat /var/run/${FTPD}.pid` | |
pacman -Sy | |
cd ~ | |
if [ "$MSYSTEM" == "MSYS" ] ; then | |
pacman -S cygrunsrv --needed |
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 | |
read -e -p "Enter Media>" media | |
[ -n "$media" ] && xbmc-send --action="PlayMedia(${media// /%20})" |
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
#~/.x11vncrc | |
dontdisconnect | |
notruecolor | |
noxfixes | |
shared | |
forever | |
bg | |
ncache 10 | |
no6 | |
noipv6 |
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"?> | |
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/"> | |
<title>36.0E</title> | |
<creator>Константин Абакумов</creator> | |
<annotation>1 0 1 10750</annotation> | |
<trackList> | |
<track> | |
<trackNum>001001</trackNum><title>Pershiy Avtomobilniy</title><album>ЗНАНИЯ</album> | |
<location>rtp://@224.36.1.1:1234</location> | |
<annotation>11727 L 27500 Q 3</annotation><extension application="http://www.videolan.org/vlc/playlist/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
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:list | |
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:resetpassword installer | |
DATA_DIR=/opt/data/nextcloud /opt/app/nextcloud/bin/occ-runner user:info installer |
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
#!/opt/app/platform/python/bin/python | |
from syncloud_platform.injector import get_injector | |
injector = get_injector() | |
injector.device.sync_all() | |
user_platform_config = injector.user_platform_config | |
if 0 and user_platform_config.is_https() and user_platform_config.get_external_access(): | |
injector.tls.generate_real_certificate() |
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 set variable %~n0 of global environment as path to this script without slash on the end | |
cd /d %~dp0 | |
setx %~n0 %cd% |
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 | |
# your data here | |
chatID=-123456789 | |
botToken=987654321:AABBCCDDEEFFGGHH | |
# post photo | |
photo="$1" | |
shift | |
( |