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
set number=0 | |
:start_loop | |
set /A number=%number%+1 | |
if %number% GTR 50 goto end | |
net user user%number% foo /add /comment:"batch" /expires:never /fullname:"User %number%" /passwordchg:no | |
net localgroup "Remote Desktop Users" user%number% /add | |
goto start_loop |
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
PORT="$(ddev describe | ggrep -Pio "(?<=port=)[0-9]*")" | |
open mysql://db:[email protected]:${PORT}/db |
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
amazon-linux-extras install nginx1 | |
amazon-linux-extras install php7.3 | |
mkdir -p /var/www/html | |
chown -R ec2-user:nginx /var/www/html | |
cat << EOF > /etc/yum.repos.d/MariaDB10.repo | |
[mariadb] | |
name = MariaDB | |
baseurl = http://yum.mariadb.org/10.4/centos7-amd64 |
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/php | |
<?php | |
/** | |
* Example call in nagios xi: | |
* /usr/local/bin/flock_nagios.php hostname="$HOSTNAME$" state="$HOSTSTATE$" message="$HOSTOUTPUT$" notificationType="$NOTIFICATIONTYPE$" | |
*/ | |
$flockUrl = 'YOUR_FLOCK_URL'; | |
$parameters = []; |
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
adb shell settings put global airplane_mode_on 1 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE | |
sleep 15 | |
adb shell settings put global airplane_mode_on 0 && adb shell am broadcast -a android.intent.action.AIRPLANE_MODE | |
adb shell am start -n com.android.settings/.TetherSettings | |
adb shell input keyevent 20 | |
adb shell input keyevent 66 |
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 | |
# AWS PHP 7 | |
sudo yum update -y | |
sudo yum install -y httpd24 php70 mysql56-server php70-mysqlnd php70-mbstring.x86_64 git | |
sudo service httpd start | |
sudo service mysqld start | |
sudo chkconfig httpd on | |
sudo chkconfig mysqld on | |
sudo usermod -a -G apache ec2-user |
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
{namespace neos=TYPO3\Neos\ViewHelpers} | |
{namespace media=TYPO3\Media\ViewHelpers} | |
<figure{f:if(condition: imageClassName, then: ' class="{imageClassName}"')}> | |
<f:if condition="{image}"> | |
<f:then> | |
<f:if condition="{link}"> | |
<f:then> | |
<a href="{link}"><media:image asset="{image}" alt="{alternativeText}" title="{title}" maximumWidth="{maximumWidth}" maximumHeight="{maximumHeight}" allowCropping="{allowCropping | |
}" allowUpScaling="{allowUpScaling}" /></a> | |
</f:then> |