Skip to content

Instantly share code, notes, and snippets.

View Bara's full-sized avatar
🏠
Working from home

Bara

🏠
Working from home
View GitHub Profile
@Bara
Bara / tasks.json
Last active June 2, 2023 00:41
[Updated] Current tasks.json to compile sourcemod plugins with visual studio code
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Compile plugin with 1.10",
"type": "shell",
"presentation": {
@Bara
Bara / User settings
Last active April 26, 2018 18:05
My settings for sourcepawn highlighting and autocompletion in combination with 2 extensions and 1 theme
{
"files.autoSave": "onFocusChange",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
// https://marketplace.visualstudio.com/items?itemName=robertohuertasm.vscode-icons
"workbench.iconTheme": "vscode-icons",
"vsicons.associations.files": [
{
"folders": [
{
"path": "D:\\Cloud\\SourcePawn\\GitHub\\Outbreak",
// https://marketplace.visualstudio.com/items?itemName=dreae.sourcepawn-vscode
"sourcepawnLanguageServer.sourcemod_home": "D:/Cloud/SourcePawn/Compiler/1.10/include/;D:/Cloud/SourcePawn/GitHub/Outbreak/scripting/include/"
},
{
"path": "D:\\Cloud\\SourcePawn\\GitHub\\TroubleinTerroristTown",
// https://marketplace.visualstudio.com/items?itemName=dreae.sourcepawn-vscode
@Bara
Bara / 411.asm
Created November 25, 2019 14:20
CODE 0 ; 0
;program exit point
halt 0
DATA 2 ; 0
dump 31312e31 362e302e 303634 322f3131 30322f35 3931 313a3531 34343a38 0 5 0 c 18
dumpfill 0 3
dumpfill 0 1
@Bara
Bara / SteamWorks.inc
Last active February 3, 2020 01:05
SteamWorks.inc
#if defined _SteamWorks_Included
#endinput
#endif
#define _SteamWorks_Included
/* results from UserHasLicenseForApp */
enum EUserHasLicenseForAppResult
{
k_EUserHasLicenseResultHasLicense = 0, // User has a license for specified app
k_EUserHasLicenseResultDoesNotHaveLicense = 1, // User does not have a license for the specified app
@Bara
Bara / gist:049b05ac6c12f490537390cdfaee25a2
Created February 21, 2021 03:30
b2AuthorizeCfWorker.py
import requests
import base64
import json
flagDebug = True
bucketSourceId = '<BucketID>'
bucketFilenamePrefix = ''
# for b64 encoding.
b2AppKey = b'<AppKey>'
#if defined _intmap_included
#endinput
#endif
#define _intmap_included
methodmap IntMapSnapshot < Handle
{
// Returns the number of keys in the map snapshot.
property int Length
{
@Bara
Bara / egg-counter--strike--global-offensive.json
Created October 16, 2021 22:13
CSGO Egg for Pterodactyl with more startup options like workshop stuff
{
"_comment": "DO NOT EDIT: FILE GENERATED AUTOMATICALLY BY PTERODACTYL PANEL - PTERODACTYL.IO",
"meta": {
"version": "PTDL_v1",
"update_url": null
},
"exported_at": "2021-10-17T00:12:04+02:00",
"name": "Counter-Strike: Global Offensive",
"author": "support@pterodactyl.io",
"description": "Counter-Strike: Global Offensive is a multiplayer first-person shooter video game developed by Hidden Path Entertainment and Valve Corporation.",
@ShutdownOnFailedCommand 1 //set to 0 if updating multiple servers at once
@NoPromptForPassword 1
login anonymous
force_install_dir ../
app_update 740
quit
@Bara
Bara / migrate-pterodactyl.md
Created July 9, 2022 13:55 — forked from Software-Noob/migrate-pterodactyl.md
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel