Skip to content

Instantly share code, notes, and snippets.

@ez-kraivit
ez-kraivit / main.ts
Created Oct 25, 2021
Line Bot Hapi Type Script 1
View main.ts
import Hapi,{ Server } from '@hapi/hapi'
import {Client, validateSignature } from '@line/bot-sdk'
import * as Boom from '@hapi/boom'
View openpanzer-save.json
{"scenario":{"name":"Warta Crossing","maxTurns":22,"date":"1939-09-03T21:00:00.000Z","atmosferic":1,"latitude":2,"ground":0,"turnsPerDay":6,"dayTurn":0,"reinforcements":{"3":[{"row":37,"col":41,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":7,"facing":10,"flag":16,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":67,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"3","id":1},{"row":37,"col":42,"unit":{"eqid":270,"id":-1,"owner":1,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":8,"facing":10,"flag":16,"destroyed":false,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":55,"entrenc
View gist:58110a0c5b3dcd922dc0e79188dfe841
fun main() {
var a: String? = null
println(a?.toUpperCase())
println(a?:"default".toUpperCase())
println(a!!.toUpperCase())
}
View main.cpp
#include <iostream>
#include <cmath>
const double PI = 3.14;
double powerByTwo(double r) {
return r * r;
}
void apskritimoPlotas() {
@Apoc70
Apoc70 / Clear-ADCDisabledMail.ps1
Created Oct 25, 2021
This scripts clears the attribute legacyExchangeDN if set to ADCDisabledMail
View Clear-ADCDisabledMail.ps1
# This script clears the legacyExchangeDN attribute if the attribute is set to ADCDisabledMail
# Active Directory search base, adjust as needed for your AD
$SearchBase = 'DC=VARUNAGROUP,DC=DE'
# Our search filter
$Filter = 'legacyExchangeDN -eq "ADCDisabledMail"'
$csvFilename = 'ACDisabledMail-Users.csv'
# Search for user objects matching the filter in the defined search base
@tloei
tloei / S2021W07.trophies.md
Created Oct 25, 2021
Trophies for 2021 Week 7
View S2021W07.trophies.md

2021 Week 07 Trophies

Generated by robots on 10/25/2021, 4:00:30 AM ET

High Score Teams

Rank Owner Points
🥇 CLDL 3226.1