Skip to content

Instantly share code, notes, and snippets.

View turowicz's full-sized avatar
💎
🙌🏻

Wojtek Turowicz turowicz

💎
🙌🏻
View GitHub Profile
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1588791594" LAST_MODIFIED="1589292488" PERSONAL_TOOLBAR_FOLDER="true">Bookmarks</H3>
@turowicz
turowicz / _Transmit files with Clipboard over RDP.md
Last active October 19, 2019 18:08
Transmit files with Clipboard over RDP

DISCLAIMER: I know this is stupid. Sometimes necessary evil.

  1. Start send.ps1 with full path to the output file.
  2. Start receive.ps2 with full path to input file.
  3. If on a VM, make sure clipboard sharing between host and VM is disabled.
  4. If you see "9" and other numbers appearing slowly, it means its working.
  5. If you see "9" or "0" or anything appearing very rapidly, it means you should restart the process.
@turowicz
turowicz / stylecop.json
Last active May 5, 2017 09:19
StyleCop
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"orderingRules": {
"usingDirectivesPlacement": "outsideNamespace"
},
"documentationRules": {
"companyName": "Switchee Limited"
}
}
[JOBSCHEDULER]
AffinityMask=18
[BufferPools]
RejectThreshold=131072
UsePools=1
PoolSize=85000000
[VirtualCopilot]
VirtualCopilotActive=0
@turowicz
turowicz / server.cfg
Last active August 23, 2016 16:23
-config=server.cfg -restart -netlog -nomap -port=2302
//
// server.cfg
//
// comments are written with "//" in front of them.
// GLOBAL SETTINGS
hostname = "Zdzislawy"; // The name of the server that shall be displayed in the public server list
password = "babaryba"; // Password for joining, eg connecting to the server
passwordAdmin = "babaryba"; // Password to become server admin. When you're in Arma MP and connected to the server, type '#login xyz'
@turowicz
turowicz / configure.ps1
Last active March 17, 2016 16:34
Replace JSON variables based on another json
Param(
[Parameter(Mandatory=$True)]
[string]$configFile,
[Parameter(Mandatory=$True)]
[string]$path
)
# read configuration file
$config = ""
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"clusterLocation": {
"type": "string",
"metadata": {
"description": "Location of the Cluster"
},
"defaultValue": "eastus"
@turowicz
turowicz / cloud.ps1
Last active July 25, 2019 12:01
Chocolatey Scripts
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install dotnetcore-sdk -y
choco install 7zip.install -y
choco install googlechrome -y
choco install sourcetree -y
choco install git.install -y
choco install visualstudiocode -y
shutdown /r /t 1
@turowicz
turowicz / some-useless-crap.js
Last active November 10, 2015 14:22
nothing to see here
{
"www.swooper.com" : "",
"swooper.com" : "",
"dev.swooper.com" : "",
"dev-cluster.swooper.com" : "",
"int.swooper.com" : "",
"int-cluster.swooper.com" : "",
"live-cluster.swooper.com" : "",
"swpr.me" : "",
"www.swpr.me" : "",
empty