Skip to content

Instantly share code, notes, and snippets.

@paksv
paksv / tc.jb.com-swagger.json
Created February 22, 2019 15:02
tc.jb.com-swagger.json
{"swagger":"2.0","info":{"version":"2018.1","title":"TeamCity REST API"},"host":"teamcity.jetbrains.com","basePath":"","tags":[{"name":"Agent"},{"name":"AgentPool"},{"name":"Build"},{"name":"BuildQueue"},{"name":"BuildType"},{"name":"Change"},{"name":"Debug"},{"name":"Federation"},{"name":"Group"},{"name":"Investigation"},{"name":"Mute"},{"name":"Problem"},{"name":"ProblemOccurrence"},{"name":"Project"},{"name":"Server"},{"name":"Test"},{"name":"TestOccurrence"},{"name":"User"},{"name":"VcsRoot"},{"name":"VcsRootInstance"}],"paths":{"/app/rest":{"get":{"operationId":"serveRoot","parameters":[],"responses":{"200":{"description":"successful operation","schema":{"type":"string"},"headers":{}}},"security":[{"none":[]}]}},"/app/rest/agentPools":{"get":{"tags":["AgentPool"],"operationId":"getPools","parameters":[{"name":"locator","in":"query","required":false,"type":"string"},{"name":"fields","in":"query","required":false,"type":"string"}],"responses":{"200":{"description":"successful operation","schema":{"$ref":"#
@paksv
paksv / custom.css
Last active September 14, 2018 13:00 — forked from widget-/custom.css
body { background: #303E4B; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #464A55; }
@paksv
paksv / events.json
Created November 20, 2017 14:48
events.json - win
{"status":"commit","id":"587799dcea3643841c3413a04156a3e6aae38617504d4f234fd55ecc40c5041c","from":"sha256:2045d460a00a07fce546d04882ad3916524f78ff347341d94bc59e3e5832eccd","Type":"container","Action":"commit",
"Actor":{"ID":"587799dcea3643841c3413a04156a3e6aae38617504d4f234fd55ecc40c5041c","Attributes":{"comment":"","image":"sha256:2045d460a00a07fce546d04882ad3916524f78ff347341d94bc59e3e5832eccd","imageID":"sha256:4
104ea1c52c8608d166256da29fe4b08155301080c78d29d842a074def6b90eb","imageRef":"","name":"brave_neumann"}},"scope":"local","time":1511188935,"timeNano":1511188935576668000}
{"status":"destroy","id":"587799dcea3643841c3413a04156a3e6aae38617504d4f234fd55ecc40c5041c","from":"sha256:2045d460a00a07fce546d04882ad3916524f78ff347341d94bc59e3e5832eccd","Type":"container","Action":"destroy
","Actor":{"ID":"587799dcea3643841c3413a04156a3e6aae38617504d4f234fd55ecc40c5041c","Attributes":{"image":"sha256:2045d460a00a07fce546d04882ad3916524f78ff347341d94bc59e3e5832eccd","name":"brave_neumann"}},"scop
e":"local","ti
<?php
/**
* Usage on CLI: $ php broadcast.php [telegram-chat-id] [message]
*/
require __DIR__ . '/vendor/autoload.php';
use Longman\TelegramBot\Request;
use Longman\TelegramBot\Telegram;
@paksv
paksv / Rename.ps1
Created May 12, 2016 16:32 — forked from timnew/Rename.ps1
Script to Rename Computer without Reboot
$ComputerName = "New Name"
Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname"
Remove-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "NV Hostname"
New-PSDrive -name HKU -PSProvider "Registry" -Root "HKEY_USERS"
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\Computername" -name "Computername" -value $ComputerName
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Computername\ActiveComputername" -name "Computername" -value $ComputerName
Set-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters" -name "Hostname" -value $ComputerName
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
@paksv
paksv / gist:58ff6022ae72dd2cb8b3
Created April 14, 2015 11:02
ffmpeg -list_devices true -f dshow -i dummy output
C:\...)\Screen Capturer Recorder\configuration_setup_utility\vendor\ffmpeg\bin>ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version N-44080-gdfb4757 Copyright (c) 2000-2012 the FFmpeg developers
built on Aug 31 2012 16:58:51 with gcc 4.7.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-pthreads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libass -
-enable-libcelt --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libnut --enable-libopenj
peg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libutvideo --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-li
bvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 70.100 / 51. 70.100
libavcodec 54. 55.100 / 54. 55.100
libavformat 54. 25.104 / 54. 25.104
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import sun.jvm.hotspot.debugger.Address;
import sun.jvm.hotspot.oops.*;
import sun.jvm.hotspot.runtime.JavaThread;
import sun.jvm.hotspot.runtime.Threads;
import sun.jvm.hotspot.runtime.VM;
import sun.jvm.hotspot.tools.Tool;