- Steam
- Proton 5.x
unzip
winetricks
protontricks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/fish | |
for file in * | |
set font_name (fc-query "$file" | egrep 'fullname:' | sed -E 's/fullname: \"(.+)\"\(s\)/\1/g') | |
set file_name (echo "$font_name" | string trim | sed -E 's/[^A-Za-z0-9]/-/g' | string lower) | |
set file_ext (echo (basename "$file" | string split -r -m1 ".")[2] | string lower) | |
set full_name (echo "$file_name.$file_ext") | |
mv $file $full_name | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Usage: | |
* | |
* play(A, "X", "O"). % Gets boards where X wins and O loses | |
* play(A, "O", "X"). % Gets boards where O wins and X loses | |
* play([[_,_,_], [_,"X",_], [_,_,_]], "X", "O") % Finds winning boards for X with that starting condition | |
* play([[_,_,_], [_,"X",_], [_,_,_]], "O", "X") % Finds winning boards for O with that starting condition | |
* ... | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_matrix(a: str, b: str) -> list[list[int]]: | |
"""Costruisci la matrice di distanza date le stringhe a e b.""" | |
# Crea una matrice vuota di dimensioni (len(a) + 1) * (len(b) + 1) | |
# c o n o | |
# . . . . . | |
# c . . . . . | |
# o . . . . . | |
# s . . . . . | |
# a . . . . . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.login-form-and-externals form { | |
display: none; | |
} | |
.login-form-and-externals .external-login-blocks .block-title { | |
visibility: hidden; | |
} | |
.login-form-and-externals .external-login-blocks .block-title::before { | |
visibility: visible; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/fish | |
# Make all future files and subdirectories created in a certain directory writable by the group. | |
# Set the setuid flag on all subdirectories | |
chmod g+s (find -type d) | |
# Set the default file ACL for the group to rwx | |
setfacl -d -m g::rwx (find -type d) |
Add the following lines to ~/.Xmodmap
and ensure "Bind keys based on keyboard position" is DISABLED.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:443 > | |
# Your server name | |
ServerName example.org | |
ServerAdmin [email protected] | |
# Use HTTPS | |
SSLEngine on | |
# Enable reverse proxy mode | |
ProxyRequests On |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
using UnityEditor; | |
[Serializable] | |
public class ClampedFloat { | |
public float minimum; | |
public float maximum; | |
public float starting; | |
public float _current; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo -------------------------------------------------- | |
echo Il Grande Hackerino di Steffo per AoE3 Multiplayer | |
echo -------------------------------------------------- | |
ipconfig | |
echo Cerca l'indirizzo IPv4 della connessione ad Internet che stai usando, poi scrivilo qui e premi invio per avviare il gioco. | |
echo Se dopo aver provato una volta il gioco non si apre, devi prima avviarlo una volta da Steam con l'account di Balu. | |
echo -------------------------------------------------- | |
set /p ip=Indirizzo IPv4 desiderato: | |
start bin/age3y.exe OverrideAddress="%ip%" +noIntroCinematics |