Theory:
Example:
import requests | |
# create your token with delete_repo scope | |
# https://github.com/settings/tokens/new | |
token = "" | |
userName = "alikrc" | |
repoName = "" |
using System; | |
using System.Collections.Generic; | |
class Solution | |
{ | |
public int solution(int[] A) | |
{ | |
var numberOfVariations = 0; | |
var alreadyCut = false; |
dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb | |
dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb | |
dotnet ef migrations add InitialIdentityServerApplicationDbMigration -c ApplicationDbContext -o Data/Migrations/IdentityServer/ApplicationDb | |
//reference |
import requests | |
import json | |
import math | |
elementsList = [] | |
itemPerPage = 100 | |
epicClientSessionCookieValue = 'EPIC_CLIENT_SESSION_COOKIE_HERE' | |
epicSSOCookieValue = "EPIC_SSO_COOKIE_HERE" |
using UnityEngine; | |
using UnityEditor; | |
using System; | |
public class BasicObjectSpawner : EditorWindow | |
{ | |
string objectBaseName; | |
int objectId; | |
GameObject objectToSpawn; | |
float objectScale; |
using System; | |
using UnityEngine; | |
using UnityEngine.InputSystem; | |
public class PlayerController : MonoBehaviour | |
{ | |
public float speed = 10.0f; | |
public GameObject projectilePrefab; | |
private InputAction moveAction; | |
private InputAction fireAction; |
mklink /J "%appdata%\Unity" "A:\UnityAssetStoreCache" | |
https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ |
This is a sample of how to send some information to logstash via the TCP input in nodejs or python. It assumes the logstash host is on 10.10.10.100 and the TCP listening input is 9563.
The logstash.conf should look something like the sample file.
The log message should be a stringified JSON object with the log message in the @message field.
To use, run the node script node sendMessageToLogstash.js
, or the python script python sendMessageToLogstash.js
d: | |
Set-Location D:\MyProjectFolder | |
Get-ChildItem .\ -include bin,obj -Recurse | ForEach-Object ($_) { Remove-Item $_.FullName -Force -Recurse } |