Skip to content

Instantly share code, notes, and snippets.

View bonkmaykrQ's full-sized avatar
🕗
https://canithesis.org/product/timef

bonkmaykr bonkmaykrQ

🕗
https://canithesis.org/product/timef
View GitHub Profile
@mminer
mminer / Console.cs
Last active March 28, 2024 22:23
Unity script to display in-game debug console. Actively maintained version: https://github.com/mminer/consolation
// NOTE: For an actively-maintained version of this script, see https://github.com/mminer/consolation.
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// A console to display Unity's debug logs in-game.
/// </summary>
public class Console : MonoBehaviour
{
@Mouad-BGD
Mouad-BGD / add users to vstftp
Created June 5, 2012 18:55
Linux users and vsftp
Yes, it is this simple, creating a new user for ftp access in vsftpd is as easy as creating a new valid linux system user.
# useradd username
# passwd username
Disable SSH access for FTP users
The default user creation script will give a user the /bin/bash shell, which can be a little too powerful. If you don't want your users logging into your server via SSH, we need to know how to block this access. If you change the shell to /bin/false, the users will only be able to login via ftp or mail if you have that setup. Here is how to modify your users:
usermod -s /sbin/nologin username
@nickbudi
nickbudi / README.md
Last active January 11, 2025 16:43
Budi's Counter-Strike: Source config

Budi's CS:S Config

This is my constantly updated CS:S autoexec config.

Put the file autoexec.cfg in ...\Steam\steamapps\*steam username*\counter-strike source\cstrike\cfg or take what you want from it and add to your autoexec config!

Launch Options

-novid -noborder -high -threads 4 -freq 144 +exec autoexec.cfg
@rlofc
rlofc / FileSystem.cpp
Created March 23, 2014 06:19
Use physfs file system in GamePlay3D
#include "Base.h"
#include "FileSystem.h"
#include "Properties.h"
#include "Stream.h"
#include "Platform.h"
#include <sys/types.h>
#include <sys/stat.h>
#ifdef WIN32
@mbikovitsky
mbikovitsky / unistd.h
Created November 14, 2014 20:00
Windows unistd.h replacement
#ifndef _UNISTD_H
#define _UNISTD_H 1
/* This file intended to serve as a drop-in replacement for
* unistd.h on Windows.
* Please add functionality as neeeded.
* Original file from: http://stackoverflow.com/a/826027
*/
#include <stdlib.h>
@Earnestly
Earnestly / makepkg_overview.rst
Last active May 18, 2025 05:43
A brief overview of the process involved in creating a pacman package.

A Brief Tour of the Makepkg Process: What Makes a Pacman Package

Introduction

This is a terse document covering the anatomy of a package built for the pacman package manager.

The following example commands can mostly run verbatim to manually create a

@citrusui
citrusui / control
Last active February 20, 2025 18:54
Comprehensive Debian control file example
Package: com.example.package
Name: Example Package
Description: An example package.
This longer description will load when a depiction URL is not specified.
Author: Ms. Example <[email protected]>
Maintainer: Example, Inc. <[email protected]>
Version: 1.0-1
Section: Addons (SpringBoard)
Pre-Depends: com.example.system
Depends: com.example.library
@nyorain
nyorain / sat.cpp
Last active June 21, 2025 21:41
Small Separating Axis Theorem implementation in C++
#include <nytl/vec.hpp>
#include <nytl/vecOps.hpp>
#include <vector>
#include <limits>
using Polygon = std::vector<nytl::Vec2f>;
/// Returns whether the two given convex polygons intersect using the
/// separating axis theorem. The given polygons can be in clockwise or
@geosharma
geosharma / aurutils_inst_conf.md
Last active July 8, 2025 00:25
Arch Linux: aurutils installation and configuration

aurutils installation and configuration

This is not a getting started guide, just notes to myself. Due to my limited knowledge there could be mistakes and better ways to do things. I have configured aurutils to the best of my knowledge after reading the manpages and forums. Please refer to aurutils(7) manpages for installation and configuration.

Reference: aurutils(7)

Install aurutils

Install the aurutils using the normal AUR package installation procedure. Until I found aurutils, I used to create a separate directory ~/aur/ for all AUR packages.