start new:
tmux
start new with session name:
tmux new -s myname
Running the azure-team terraform make file to create your infrastructure may not work on a Windows machine. If you cannot get it to run, install a linux distribution where you will exectute the tf files. Setting up a distribution with all of the right dependencies does involve a bit of setup to get it configured properly. The following is a list of steps you'll need to complete:
const axios = require("axios"); | |
let lastIndexMovement = 0; | |
const TELEGRAM_BOTID = ""; | |
const TELEGRAM_CHATID = ""; | |
class Telegram { | |
sendTelegramMessage(message) { | |
const botId = TELEGRAM_BOTID; |
<?php | |
// Use in the "Post-Receive URLs" section of your GitHub repo. | |
if ( $_POST['payload'] ) { | |
shell_exec( 'cd /srv/www/git-repo/ && git reset --hard HEAD && git pull' ); | |
} | |
?>hi |
DECLARE @Object AS INT; | |
DECLARE @ResponseText AS VARCHAR(8000); | |
DECLARE @Body AS VARCHAR(8000) = | |
'{ | |
"what": 1, | |
"ever": "you", | |
"need": "to send as the body" | |
}' | |
EXEC sp_OACreate 'MSXML2.XMLHTTP', @Object OUT; |
# Installation --- | |
# 1. In Bitbucket, add FTP_USERNAME, FTP_PASSWORD and FTP_HOST as environment variables. | |
# 2. Commit this file (bitbucket-pipelines.yml) to your repo (in the repo root dir) | |
# 3. From Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:Init (this will | |
# push everything and initialize GitFTP) | |
# | |
# Usage --- | |
# - On each commit to master branch, it'll push all files to the $FTP_HOST | |
# - You also have the option to 'init' (see 'Installation' above) - pushes everything and initialises | |
# - Finally you can also 'deploy-all' (from Bitbucket Cloud > Commits > Commit Number > Run Pipeline > Custom:deploy-all) |
/* | |
MySQL | |
Target Server Type : MYSQL | |
Target Server Version : 50022 | |
File Encoding : 65001 | |
Date: 2012-12-30 21:22:23 | |
*/ |
__author__ = 'zachj' | |
import requests | |
import json | |
merchantId = 'INSERT YOUR MERCHANT ID HERE' | |
token = 'INSERT YOUR API TOKEN HERE' | |
apiToken = '?access_token=' + token | |
baseURL = 'https://api.clover.com/v3/merchants/' + merchantId + '/' | |
headers = {'Content-type': 'application/json', 'Accept': 'text/plain'} |
# NGINX Configuration for CakePHP projects with url subdirectories. | |
# | |
# In a classic-default-generic CakePHP project you can have as many | |
# independent applications as you want just by copying the app/ | |
# directory. Apache and the .htaccess files will make the magic, but | |
# in a nginx server you will need a touch to your virtualhost conf. | |
# | |
# So, in order to make this: | |
# | |
# example.com/ —> ~/cakephp.dev/app/webroot/index.php |