Skip to content

Instantly share code, notes, and snippets.

View npocmaka's full-sized avatar

Vasil Arnaudov npocmaka

View GitHub Profile
[Setup]
;Setup File for Shadow Warrior
SetupVersion = "1.2"
;
;
[Screen Setup]
;
;
;ScreenMode
; - Chained - 0
package main
import (
"fmt"
"github.com/hajimehoshi/ebiten/v2"
"github.com/hajimehoshi/ebiten/v2/ebitenutil"
"image/color"
"log"
"math"
)
@echo off
setlocal enableDelayedExpansion
if not exist mouse.bat (
bitsadmin /transfer /_ /download "https://raw.githubusercontent.com/npocmaka/batch.scripts/master/hybrids/.net/c/mouse.bat" "%cd%\mouse.bat"
)
if not exist sendKeys.bat (
bitsadmin /transfer /_ /download "https://raw.githubusercontent.com/npocmaka/batch.scripts/master/hybrids/jscript/sendKeys.bat" "%cd%\sendKeys.bat"
)
#! /usr/bin/env python
import argparse
import os
import sys
import xml.dom.minidom
def convert(input_path, output_path):
''' Converts the input file from the NUnit 3 format to NUnit 2 format
//https://www.reddit.com/r/FreeGamesOnSteam/comments/7lbmma/steam_winter_sale_began_dont_forget_to_browse/drnxlox/
window.location="https://store.steampowered.com/explore/";
var GenerateQueue = function( queueNumber ) { console.log( 'Queue #' + ++queueNumber );
jQuery.post( 'http://store.steampowered.com/explore/generatenewdiscoveryqueue', { sessionid: g_sessionID, queuetype: 0 } ).done( function( data )
{
var requests = [];
for( var i = 0; i < data.queue.length; i++ )
{
@npocmaka
npocmaka / shellcode.js
Created November 15, 2017 15:08 — forked from sinmygit/shellcode.js
Execute ShellCode Via Jscript.NET
import System;
import System.Runtime.InteropServices;
import System.Reflection;
import System.Reflection.Emit;
import System.Runtime;
import System.Text;
//C:\Windows\Microsoft.NET\Framework\v2.0.50727\jsc.exe Shellcode.js
//C:\Windows\Microsoft.NET\Framework\v4.0.30319\jsc.exe Shellcode.js
@npocmaka
npocmaka / killSeleniumProcesses.bat
Created November 15, 2017 14:59
Kills chromedriver and chrome browsers started by selenium framework
@echo off
setlocal EnableDelayedExpansion
set count=0
for /f "usebackq tokens=* delims=" %%a in (`wmic process where "name='chrome.exe' and CommandLine like '%%--enable-automation%%'" get ProcessID /Format:value`) do (
for /f "tokens=1,2 delims==" %%A in ("%%a") do (
set /a count=count+1
set "%%A[!count!]=%%B"
)
)
// ConsoleApplication11.cpp : main project file.
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
using namespace std;
const int MAX_SIZE = 100;
class ArrayQueue
// ConsoleApplication10.cpp : main project file.
#include "stdafx.h"
#include <iostream>
using namespace std;
const int MAX_SIZE = 100;
class ArrayStack
{
<!-- :
@echo off
mshta.exe "%~f0" %*
exit /b
rem
-->
<html>
<hta:application id="oHTA"
border="none"
caption="no"