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 { Server } = require("socket.io"); | |
| const io = new Server({ /* options */ }); | |
| io.on("connection", (socket) => { | |
| console.log(`user connected:`,socket.id); | |
| socket.on("msg",(arg1) => { | |
| console.log(arg1); | |
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
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.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
| using Sirenix.OdinInspector; | |
| using UnityEngine; | |
| namespace maphatar.civsim | |
| { | |
| public class GetCenterBounds : MonoBehaviour | |
| { | |
| [SerializeField, ReadOnly] | |
| Vector3 center; |
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
| using UnityEngine; | |
| namespace kokomeron | |
| { | |
| [System.Serializable] | |
| public class Stat | |
| { | |
| [SerializeField] | |
| private float baseValue; | |
| [SerializeField] |
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
| RewriteEngine On | |
| RewriteCond %{REQUEST_URI} !^/public/ | |
| RewriteRule ^(.*)$ /public/$1 [L,QSA] |
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
| from flask import Flask, request | |
| app = Flask(__name__) | |
| @app.route("/") | |
| def hello_world(): | |
| searchword = request.args.get('key', '') | |
| return { | |
| "searchword": searchword, |
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 dnf install -y git --skip-broken | |
| cd ~/.ssh | |
| ssh-keygen -t rsa -b 4096 -N "" -f ~/.ssh/id_rsa && cat id_rsa.pub |
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 reference - https://docs.aws.amazon.com/linux/al2023/release-notes/all-packages-AL2023.6.html | |
| sudo dnf update | |
| #installation | |
| sudo dnf install -y vim curl unzip nginx certbot python3-certbot-nginx postgresql16.x86_64 postgresql16-server nodejs git --skip-broken | |
| #nginx | |
| sudo systemctl enable nginx && sudo systemctl start nginx && systemctl status nginx | |
| ln -s /etc/nginx nginx |
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
| /** | |
| * `upload-plugin` middleware | |
| */ | |
| import * as fs from 'fs'; | |
| import type { Core } from '@strapi/strapi'; | |
| import sharp from 'sharp'; | |
| import formidable, { PersistentFile } from 'formidable'; | |
| import path from 'path'; | |
| import { Context } from 'koa' |
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.8' | |
| services: | |
| db: | |
| image: postgres:17 | |
| restart: always | |
| shm_size: 128mb | |
| container_name: postgres_db | |
| environment: | |
| POSTGRES_USERNAME: user |
NewerOlder