Skip to content

Instantly share code, notes, and snippets.

@Peksa
Peksa / autoexec.cfg
Last active November 12, 2023 13:35
CS2 autoexec
clear
// Crosshair
//cl_crosshair_drawoutline "1"
//cl_crosshair_dynamic_maxdist_splitratio "0"
//cl_crosshair_dynamic_splitalpha_innermod "1"
//cl_crosshair_dynamic_splitalpha_outermod "0.3"
//cl_crosshair_dynamic_splitdist "2.5"
//cl_crosshair_outlinethickness "0.5"
@Peksa
Peksa / journey.ps1
Last active January 23, 2022 00:59
Find recent companions and their Steam profiles from a Journey SAVE.BIN file
###################################################################
#
# Instructions!
#
# 1. Save this file as journey.ps1 somewhere
# 2. Open a PowerShell command prompt
# 3. Run this script from the powershell window, i.e.
# PS C:\code\journey-steamid-finder> .\journey.ps1
#
# Created by @peksa
@Peksa
Peksa / MetricsPlugin.java
Created July 29, 2012 15:38
Codahale metrics with Play framework
package plugins;
import play.PlayPlugin;
import play.mvc.Http;
import play.mvc.Http.Request;
import play.mvc.Http.Response;
import play.mvc.Router.Route;
import play.vfs.VirtualFile;
import util.MetricsUtil;
@Peksa
Peksa / pushstate.html
Created January 29, 2012 21:27
pushState tests
<!DOCTYPE html>
<html>
<head>
<title>#{get 'title' /}</title>
<meta charset="UTF-8">
<script src="@{'/public/javascripts/jquery-1.7.1.min.js'}"></script>
</head>
<body>
<a href="#" id="home">Hem</a>
<a href="#" id="local">Lokal</a>
@Peksa
Peksa / BinderPlugin.java
Created January 5, 2012 22:12
Custom JSON Binder
package misc;
import play.*;
import play.mvc.*;
import com.google.gson.*;
import java.util.*;
import java.lang.reflect.*;
import java.lang.annotation.*;
@Peksa
Peksa / Application.java
Created December 29, 2011 02:27
Play base controller
@With(BaseController.class)
public class Application extends Controller
{
// Normal controller actions here
}