Skip to content

Instantly share code, notes, and snippets.

View veteran29's full-sized avatar
🥔
💥

Filip Maciejewski veteran29

🥔
💥
View GitHub Profile
@cecilemuller
cecilemuller / launch.json
Last active April 4, 2025 13:08
Run ts-node in VSCode Debugger
{
"version": "0.2.0",
"configurations": [
{
"name": "Example",
"type": "node",
"request": "launch",
"runtimeExecutable": "node",
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"],
private _origSubarray = [0, 1, 2];
private _origArray = [_origSubarray];
private _refCopy = _origArray;
private _deepCopy = + _origArray;
private _flatCopy = [] + _origArray;
_origSubarray pushBack 4;
_origArray pushBack ["a", "b", "c"];
@barnybug
barnybug / docker-compose.yml
Created November 21, 2017 11:14
Docker compose for a Docker-in-docker gitlab runners setup
# Docker-in-Docker Gitlab runners setup taken from:
# https://medium.com/@tonywooster/docker-in-docker-in-gitlab-runners-220caeb708ca
dind:
restart: always
privileged: true
volumes:
- /var/lib/docker
image: docker:17.09.0-ce-dind
command:
- --storage-driver=overlay2
CBA_fnc_get3DENRotation = {
params ["_object"];
private _dir = vectorDir _object;
_dir params ["_xDir", "_yDir", "_zDir"];
private _up = vectorUp _object;
_up params ["_xUp", "_yUp", "_zUp"];
private _side = _dir vectorCrossProduct _up;

The Witcher 3 - Ghost Mode Mod List

This list of mods is built around the excellent Ghost Mode overhaul mod. All of these mods are compatible with it.

If I had to pick just 3 mods to use, they would be Ghost Mode, Friendly HUD, and Enhanced Targeting. All three enhance the game significantly while leaving the vanilla feel in place.

Most of the other mods are for convenience or improvements in the user experience. Auto Apply Oils is the one mod in the list that does away with a core game mechanic. It even renders the 3rd-level alchemy skill Fixative useless, so decide for yourself if makes the game too easy before using it.

There are no texture/lighting/weather mods in this list since I personally find the base game has very good art direction and has a consistent look

@duebbert
duebbert / ssh_ubuntu_windows.md
Last active September 3, 2019 15:18
Configuring PyCharm, Bash on Ubuntu on Windows 10 & WinSCP to work with SSH keys in Keepass using the KeeAgent Plugin

Configuring PyCharm, Bash on Ubuntu on Windows 10 & WinSCP to work with SSH keys in Keepass using the KeeAgent Plugin

Description

This is a small guide on how to set up PyCharm, Bash on Ubuntu on Windows & WinSCP on Windows to use SSH keys which are saved in KeePass. This significantly improves the user experience while keeping the keys save. It also alleviates any issues with Cygwin which prompted me to set this all up (see setup with Babun before https://gist.github.com/duebbert/1cd30115cf8ade37aa5b619080154e85)

Installation

@raspi
raspi / enable-all-advanced-power-settings.ps1
Last active July 17, 2025 00:12
Enable all advanced power settings in Windows.
# List all possible power config GUIDs in Windows
# Run: this-script.ps1 | Out-File powercfg.ps1
# Then edit and run powercfg.ps1
# (c) Pekka "raspi" Järvinen 2017
$powerSettingTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSetting
$powerSettingInSubgroubTable = Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingInSubgroup
Get-WmiObject -Namespace root\cimv2\power -Class Win32_PowerSettingCapabilities | ForEach-Object {
$tmp = $_.ManagedElement
@belst
belst / rocketguide.md
Last active March 29, 2025 20:35
Deploy Rocket in production

Deploy Rocket using Letsencrypt and nginx

Information

This guide uses the domain your-domain.tld and its www. prefixed version. It starts the rocket application on 127.0.0.1:1337 and as the user www-data. The proxy listens on port 80 and 443 though.
If you need other values, update them accordingly in your nginx and systemd configs.

Prerequisites

You need to have nginx, certbot and rust installed.

//+ icons on all the sound memory points
memPoints = ["sound_air_condition_1","sound_air_condition_2","sound_air_condition_3","sound_air_condition_4","sound_air_condition_5","sound_clothes_1","sound_clothes_2","sound_electric_box_1","sound_electric_box_2","sound_electric_box_3","sound_electric_box_4","sound_electric_box_5","sound_gutter_1","sound_gutter_2","sound_gutter_3","sound_gutter_4","sound_gutter_5","sound_gutter_6","sound_gutter_7","sound_gutter_8","sound_head","sound_metal_stairs_1","sound_metal_stairs_2","sound_metal_stairs_3","sound_metal_stairs_solid_1","sound_metal_stairs_solid_2","sound_metal_stairs_solid_3","sound_metal_tension_1","sound_metal_tension_10","sound_metal_tension_11","sound_metal_tension_2","sound_metal_tension_3","sound_metal_tension_4","sound_metal_tension_5","sound_metal_tension_6","sound_metal_tension_7","sound_metal_tension_8","sound_metal_tension_9","sound_net_fence_1","sound_rain_metalPlate_large_1","sound_rain_metalPlate_large_2","sound_rain_metalPlate_medium_1","sound_rain
@gkastrinis
gkastrinis / post3.md
Last active June 3, 2020 13:50
SSH Tunneling (a.k.a. Port Forwarding)

SSH Tunneling (a.k.a. Port Forwarding)

In general, SSH tunneling creates a secure connection between a local computer and a remote machine through which services can be relayed (the important part). Because the connection is encrypted, SSH tunneling is useful for transmitting information that uses an unencrypted protocol, such as IMAP, VNC, or IRC (the not-so-important part).

A case where I found this to be a useful technique was when I had a remote machine running a web server but because of various reasons (e.g. security concerns) there was no public open port available (that I could use). If such a port existed (e.g. 9876), I could simply access the web server from my favorite web browser just by providing the appropriate URL address (e.g. http://example.com:9876). But fortunately enough, I had SSH access to that remote machine.

This is how it works: