Execute the following commands to install Node, npm, git, Java, Ionic, Cordova and Angular CLI:
cd ~
sudo apt update
sudo apt upgrade
clear | |
# FTP Server Variables | |
$FTPHost = 'ftp://192.168.1.1/html/' | |
$FTPUser = 'user' | |
$FTPPass = 'password' | |
#Directory where to find pictures to upload | |
$UploadFolder = "C:\Temp\" | |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Security.Cryptography; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
string key = "1234567812345678"; |
# --------------------------------------------------------------------------- | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management | |
# 6. Networking | |
# 7. System Operations & Information |
# SOURCE: https://nginx-lua.readthedocs.io/en/latest/examples/lua-resty-redis/ | |
# you do not need the following line if you are using | |
# the OpenResty bundle: | |
lua_package_path "/path/to/lua-resty-redis/lib/?.lua;;"; | |
server { | |
location /test { | |
content_by_lua_block { | |
local redis = require "resty.redis" | |
local red = redis:new() |
-- Note: Extra () around subquery is needed make it expression. i.e one () for BUILD index syntax and other() for subquery. | |
BUILD INDEX ON default((SELECT RAW name FROM system:indexes WHERE keyspace_id = 'default' AND state = 'deferred')); | |
-- Wait few secs finish build index and see if build is complete. | |
SELECT RAW name FROM system:indexes WHERE keyspace_id = 'default' AND state = 'deferred' ; |
const got = require('got') | |
const token = process.env.ACCESS_TOKEN | |
const headers = { Authorization: `Bearer ${token}`} | |
if (!token) { | |
console.error(`Missing env $ACCESS_TOKEN value is ${token}`) | |
return (1) | |
} |