- use admin console
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 { TreeNode } from './Calculator'; | |
class TestObject { | |
describtion: string; | |
in: string; | |
out: number; | |
vars?: { [key: string]: number }; | |
} | |
const testStrings: TestObject[] = [ | |
{ describtion: 'only number', in: '2', out: 2 }, |
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
// For Usage with all Users place in C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\game\core\cfg | |
unbindall | |
// movement binds | |
bind "MOUSE_X" "yaw" | |
bind "MOUSE_Y" "pitch" | |
bind "a" "+left" | |
bind "d" "+right" | |
bind "w" "+forward" |
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
// new, better variant | |
const sq = Array.from({ length: 10 }, (_, i) => i * i); | |
// old, shitty variant | |
const sq = new Array(10).fill(0).map((_,i) => i * i); |
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 fs = require('fs'); | |
// util functions | |
const pad = (std, chunk) => { | |
return chunk.toString() | |
.trim() | |
.split('\n') | |
.map(x => `[${std}][ ${new Date().toISOString()} ] ${x}`) | |
.join('\n') + '\n'; | |
} | |
const appendLog = (chunk) => { |
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
Test001 | |
051 - 153 Bicycle | |
Test002 | |
048 - 165 Bicycle | |
053 - 179 Skateboard | |
Test003 | |
075 - 200 Bicycle | |
080 Video Artifacts | |
Test004 | |
001 - 169 Skateboard |
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
@echo off | |
REM place inside C:\Windows\System32\GroupPolicy\Machine\Scripts | |
REM start gpedit.msc | |
REM goto Computer Configuration>Windows Settings>Scripts | |
REM click Startup/Shutdown and add script | |
REM Festplatte mounten | |
"%ProgramFIles%/Veracrypt/veracrypt.exe" /q /v \Device\Harddisk1\Partition1 /l D /p ******* /pim 0 | |
REM Festplatte unmounten |
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 CRYPTO = require('crypto'); | |
const FS = require('fs'); | |
const DATA = 'some data to sign'; | |
// create the sign | |
const sign = CRYPTO.createSign('SHA256'); | |
sign.write(DATA); | |
sign.end(); |
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
#!/bin/bash | |
# to run this script: | |
# wget -q -O - https://gist.githubusercontent.com/TimeForANinja/f9d08d0c54ec87edc3ebc74e0207ebdd/raw/setup.sh | sudo bash - | |
# for servers: | |
# | |
# update certbot | |
# apt-get install certbot | |
# certbot certonly --standalone -d example.com |
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 FS = require('fs'); | |
const TRUNCATE = require("truncate-utf8-bytes"); | |
const buildFileName = (title, extension = '') => { | |
let sanitized = sanitize(title, extension); | |
let count = 0; | |
let resp = `${sanitized}${extension}`; | |
// sync not optimal here | |
while(FS.existsSync(resp)) { | |
sanitized = sanitize(title, `(${++count})${extension}`); |
NewerOlder