Skip to content

Instantly share code, notes, and snippets.

View marendowski's full-sized avatar

Piotr Marendowski marendowski

View GitHub Profile
@neverkas
neverkas / fzf-advanced.md
Created April 30, 2023 22:45
Command-line fuzzy finder - Advanced examples

Advanced fzf examples

  • Last update: 2023/02/15
  • Requires fzf 0.38.0 or above

@jrbergen
jrbergen / proton_compat_coh2_syncerror.md
Last active April 27, 2025 04:01
Instructions to resolve Company Of Heroes 2 Sync-Error for Proton (Tested on 5.0-10)

Instructions to resolve Company Of Heroes 2 Sync-Error for Proton (Tested on 5.0-10 and 6.3-2)

In support of this comment on Proton's CoH2 issues thread: Company of Heroes 2 (231430) #3875

Based on original solution by @Cytomax55 in the same thread.

Edit Feb 2023: this may also work for CoH3 (the paths are different of course). I haven't tested this for CoH 3 yet and hope either Proton / Relic will make this fix unnecessary. See also @sfxworks's comment.

Instructions for automatic fix with a script by TechT10n

@OPHoperHPO
OPHoperHPO / gttranslate.sh
Created July 14, 2018 04:17
Console Google Translate (bash + curl + sed) UPDATED 14.07.2018
#! /bin/bash
### Console Google Translate
### Example usage:
### gttranslate <source_lng> <new_lng> <your text>
### This bash script is combine of this scripts https://gist.github.com/elFua/3342075 and https://gist.github.com/ayubmalik/149e2c7f28104f61cc1c862fe9834793
### Updated by Anodev https://github.com/OPHoperHPO/
USAGE="
Example usage: '$0 <source_lng> <new_lng> <your text>'
Usage: '$0 en ru text'
@ayubmalik
ayubmalik / es
Last active July 14, 2024 06:18
Bash script using Google Translate API to translate English to Spanish using curl and sed only. You can change the 'sl' and 'tl' (source/target language) query parameter to whatever you want. Optionally if you create a symlink and call it 'en' it will translate back to spanish
#!/bin/bash
# uncomment and fix with appropriate values if you are behind a proxy
#export https_proxy='http://localhost:3128'
sl=en
tl=$(basename $0)
if [[ "${tl}" != "es" ]]; then
sl=es
fi
base_url="https://translate.googleapis.com/translate_a/single?client=gtx&sl=${sl}&tl=${tl}&dt=t&q="
ua='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36'