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
| version: "3.1" | |
| services: | |
| wordpress: | |
| image: wordpress | |
| ports: | |
| - 8080:80 | |
| environment: | |
| WORDPRESS_DB_HOST: db | |
| WORDPRESS_DB_USER: exampleuser |
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
| server { | |
| listen 80; | |
| server_name localhost; | |
| #charset koi8-r; | |
| #access_log /var/log/nginx/host.access.log main; | |
| location / { | |
| root /usr/share/nginx/html; | |
| index index.html index.htm index.shtml; |
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
| import axios, { AxiosResponse } from 'axios'; | |
| import * as querystring from 'querystring'; | |
| import * as fs from 'fs'; | |
| const endpoint = 'https://api.twitter.com'; | |
| const base64EncodedBearerTokenCredentials = ''; | |
| async function getToken(): Promise<string> { | |
| const response = await axios.post( | |
| `${endpoint}/oauth2/token`, |
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
| sudo apt update && sudo apt upgrade | |
| sudo apt install ubuntu-desktop | |
| sudo apt install xrdp | |
| sudo passwd futa | |
| sudo passwd ubuntu |
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
| import fs from "fs"; | |
| import request from "request-promise"; | |
| const consumerKey = ""; | |
| const consumerSecret = ""; | |
| const bearerTokenCredentials = Buffer.from(`${consumerKey}:${consumerSecret}`); | |
| const base64EncodedBearerTokenCredentials = bearerTokenCredentials.toString( | |
| "base64" | |
| ); |
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
| import fs from "fs"; | |
| import { Storage } from "@google-cloud/storage"; | |
| const storage = new Storage(); | |
| (async () => { | |
| const files = await storage | |
| .bucket("") | |
| .getFilesStream(); |
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
| const algoliasearch = require("algoliasearch"); | |
| const client = algoliasearch("MKXB4H37FU", ""); | |
| const index = client.initIndex("game_index_production"); | |
| const fs = require("fs"); | |
| let hits = []; | |
| index |
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
| import axios from "axios"; | |
| import * as fs from "fs"; | |
| const startIndex = 0; | |
| (async () => { | |
| // 0 Start | |
| const index = 0; | |
| // 1 Start | |
| const size = 100; |
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
| import axios from "axios"; | |
| // import papaparse from "papaparse"; | |
| import * as fs from "fs"; | |
| import retry from "async-retry"; | |
| // const startId = 32469; | |
| // const startId = 15669; | |
| // const startId = 450650; | |
| // const startId = 445502; | |
| // const startId = 432450; |
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
| import * as fs from "fs"; | |
| import csvParse from "csv-parse"; | |
| const textArray = [ | |
| "green", | |
| "aqua", | |
| "red", | |
| "purple", | |
| "olive", | |
| "yellow", |