Skip to content

Instantly share code, notes, and snippets.

View simongoricar's full-sized avatar

Simon Goričar simongoricar

  • Slovenia
View GitHub Profile
@simongoricar
simongoricar / stop-process-including-children.ps1
Last active September 8, 2021 15:07
A Powershell 7 function to kill a process, including all of its child processes.
function Stop-ProcessIncludingChildren {
[CmdletBinding()]
Param (
# PID of the process to kill (will also kill its child processes)
[Parameter(Mandatory=$true)]
[Uint32]
$ProcessID
)
$ProcessList = Get-CimInstance -ClassName Win32_Process
@simongoricar
simongoricar / steam-trade-offer-enhancer.js
Last active March 25, 2021 12:17
HusKy's Steam Trade Offer Enhancer, with code fixes and new features + Backpack.tf integration
// ==UserScript==
// @name Steam Trade Offer Enhancer
// @namespace http://steamcommunity.com/id/H_s_K/
// @description Browser script to enhance Steam trade offers.
// @include /^https?:\/\/steamcommunity\.com\/(id|profiles)\/.*\/tradeoffers.*/
// @include /^https?:\/\/steamcommunity\.com\/tradeoffer.*/
// @version 1.4.2-patch1
// @author HusKy, patches by DefaultSimon
// @downloadURL https://forums.backpack.tf/topic/17946-script-steam-trade-offer-enhancer/
// @downloadURL https://gist.github.com/DefaultSimon/571fe1a9839014cf8db6757c6a4bd19d
@simongoricar
simongoricar / keybase.md
Created December 26, 2018 16:49
keybase.md

Keybase proof

I hereby claim:

  • I am defaultsimon on github.
  • I am defaltsimon (https://keybase.io/defaltsimon) on keybase.
  • I have a public key ASBtxQjK9crJVLWto3_XjsNTizQXkelw0PNhQ6RweDVaVgo

To claim this, I am signing this object:

@simongoricar
simongoricar / bot.py
Last active November 2, 2018 05:56
Take Me Home, Country Roads - Discord music bot on repeat (requires Python 3.6+)
# coding=utf-8
import asyncio
import youtube_dl
import logging
import configparser
import os
from discord import Activity, ActivityType, opus, PCMVolumeTransformer, FFmpegPCMAudio
from discord.ext.commands import AutoShardedBot, Context