Skip to content

Instantly share code, notes, and snippets.

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

Cristòfol Torrens piffall

🏠
Working from home
View GitHub Profile
@piffall
piffall / ACCM.md
Created March 20, 2025 15:51
Assetto Corsa Content Manager Linux

Assetto Corsa Content Manager on Linux

This support links to race online in AC through Content Manager alternative launcher on Linux. You can also add it as non Steam game to launch it from Steam, so you can keep original launcher.

Create script to run CM (Placed in $HOME/Steam/accm.sh)

#!/bin/bash
export STEAM_COMPAT_CLIENT_INSTALL_PATH=$HOME/.local/share/Steam
export STEAM_COMPAT_DATA_PATH=$HOME/.local/share/Steam/steamapps/compatdata/244210

Datasets

@piffall
piffall / start-thriftserver-incremental-collect.sh
Last active November 20, 2017 11:19
Start thrift server with incremental collect
#!/bin/bash
$SPARK_HOME/sbin/start-thriftserver.sh \
--master local[*] \
--conf spark.sql.thriftServer.incrementalCollect=true
@piffall
piffall / docker-machine-add-generic.sh
Created July 2, 2017 10:35
Provision docker on generic host
#!/bin/bash
if [[ $# -ne 2 ]]; then
echo "Usage: docker-machine-add-generic.sh [HOST] [NAME]"
fi
docker-machine create -d generic --generic-ssh-user root --generic-ssh-key ${HOME}/.ssh/id_rsa --generic-ip-address $1 $2
@piffall
piffall / overclocking_gtx960.sh
Last active June 18, 2017 03:34
Overclocking NV GTX 960
#/bin/bash
#
# Overclocking nvidia GTX 960 4GB
#
# Use this to get current value
# nvidia-settings -q <PROP>
#
# Set cool bits
sudo nvidia-xconfig --cool-bits=31 # Reboot after this command
alert("Hello world!");

Keybase proof

I hereby claim:

  • I am piffall on github.
  • I am piffall (https://keybase.io/piffall) on keybase.
  • I have a public key whose fingerprint is B720 2BBA 93B4 5F33 8F23 8677 BB05 0E78 433F E380

To claim this, I am signing this object:

@piffall
piffall / eclimd.conf
Created September 7, 2015 06:24
Supervisor eclim daemon conf file
[program:eclim]
user=user
directory=/home/user/
command=xvfb-run /home/user/eclipse/eclimd -Xmx256M
redirect_stderr=true
stdout_logfile=/home/user/eclipse/eclimd.log
stderr_logfile=/home/user/eclipse/eclimd.error.log
stdout_logfile_maxbytes=10MB
stderr_logfile_maxbytes=10MB
@piffall
piffall / say.sh
Created April 27, 2015 09:52
Say with festival
#!/bin/bash
echo '$1' | iconv -f utf-8 -t iso-8859-1 | festival --language english --tts
@piffall
piffall / markdown-html.sh
Last active August 29, 2015 14:17
Markdown to HTML
#!/bin/bash
# Intall node.js packages
# sudo npm install -g markdown-styles
# Convert a README.md to HTML
generate-md --layout github --input README.md