Skip to content

Instantly share code, notes, and snippets.

View cetteup's full-sized avatar

cetteup

View GitHub Profile
@cetteup
cetteup / spon.css
Created February 2, 2018 19:44
Simple CSS rules to hide anti-adblocker message and ads on Spiegel Online (SPON)
div.ua-detected.ua-ff { display: none !important; }
div#wrapper-content { opacity: 1.0 !important; filter: none !important; pointer-events: all !important; }
div#wrapper img { display: none; }
div#wrapper-shadow img { display: initial; }
div#content-main > div:first-of-type { display: none; }
@cetteup
cetteup / sap-successfactors-rmk-urls.txt
Last active February 24, 2024 13:24
List of some SAP SuccessFactors Recruiting Marketing Instances/URLs
ace1950.jobs2web.com
ace1960.jobs2web.com
adidas.valhalla.stage.jobs2web.com
africandevt1.valhalla12.stage.jobs2web.com
afuturewithus.com
agco.valhalla.stage.jobs2web.com
akzonobelst1.valhalla12.stage.jobs2web.com
alfanar.valhalla12.stage.jobs2web.com
alfuttaimstage.valhalla12.stage.jobs2web.com
allianzsetest.valhalla12.stage.jobs2web.com
@cetteup
cetteup / .dotfile
Created March 3, 2020 16:32
.dotfile stuff
if [ "$color_prompt" = yes ]; then
PS1="\[\033[0;32m\]\342\224\214\342\224\200\$([[ \$? != 0 ]] && echo \"[\[\033[0;32m\]\342\234\227\[\033[0;32m\]]\342\224\200\")[$(if [[ ${EUID} == 0 ]]; then echo '\[\033[01;32m\]root\[\033[01;33m\]@\[\033[01;96m\]\h'; else echo '\[\033[0;37m\]\u\[\033[01;35m\]@\[\033[01;34m\]\h'; fi)\[\033[0;32m\]]\342\224\200[\[\033[0;33m\]\w\[\033[0;32m\]]\n\[\033[0;32m\]\342\224\224\342\225\274 \[\033[0m\]\[\e[01;33m\]\\$ \[\e[0m\]"
else
PS1='┌──[\u@\h]─[\w]\n└──╼ \$ '
fi
unset color_prompt force_color_prompt
# Make it use C-a, similar to screen..
#unbind C-b
#set -g prefix C-a
@cetteup
cetteup / bflist-twitch-chat-commands.txt
Last active August 18, 2020 22:23
A collection of bflist Twitch chat commands examples
// Usage: Download file, replace __GAME__ with the game you want to use (bf2, bf3, bf4),
// replace __NAME__ with your in-game-name and copy the command to your Twitch chat bot of choice
// ******************
// **** Nightbot ****
// ******************
// Score (BF2, BF3, BF4)
$(eval const response = `$(urlfetch https://bflist.io/api/__GAME__/v1/players/__NAME__/score)`; !response.includes(`Remote Server`) ? `$(channel) currently has ${response} points` : `Sorry, could not fetch $(channel)'s current score`)
<#
Simple PowerShell script to fetch Battlefield 4 player data from bflist and write the k/d to a textfile ([your_player_name]-bflist-live-kd.txt).
Before using the script, be sure to replace your_player_name with your player name.
#>
function Write-KDFile {
Param([string] $playerName, [int] $kills, [int] $deaths)
try {
Set-Content -Path "$($playerName)-bflist-live-kd.txt" -Value "$kills/$deaths" -Encoding utf8 -ErrorAction Stop
sudo apt install vino
gsettings set org.gnome.Vino view-only false
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
echo -n "VNC Password: " && read -s vnc_password < /dev/tty && echo ""
gsettings set org.gnome.Vino vnc-password "$(echo $vnc_password | base64)"
unset $vnc_password
gsettings set org.gnome.Vino use-upnp false
gsettings set org.gnome.Vino icon-visibility client
@cetteup
cetteup / bfv-url-launcher.ps1
Created March 20, 2022 14:03
PowerShell script to register a URL handler for the bfv:// protocol and act as the handler. Joining a Battlefield Vietnam server is only one click away.
<#
PowerShell script to register a URL handler for the bfv:// protocol and act as the handler. Joining a Battlefield Vietnam server is only one click away.
Registers the URL handler if launched without any arguments.
Launches the game and joins the server if launched with valur -URI flag.
URL protocol format: bfv://[server_ip]:[server_port]
#>
param(
@cetteup
cetteup / bf1942-url-launcher.ps1
Created March 20, 2022 14:04
PowerShell script to register a URL handler for the bf1942:// protocol and act as the handler. Joining a Battlefield 1942 server is only one click away.
<#
PowerShell script to register a URL handler for the bf1942:// protocol and act as the handler. Joining a Battlefield 1942 server is only one click away.
Registers the URL handler if launched without any arguments.
Launches the game and joins the server if launched with valur -URI flag.
URL protocol format: bf1942://[server_ip]:[server_port]
#>
param(
@cetteup
cetteup / paraworld-url-launcher.ps1
Created April 6, 2022 18:45
PowerShell script to register a URL handler for the paraworld:// protocol and act as the handler. Joining a Paraworld server is only one click away.
<#
PowerShell script to register a URL handler for the paraworld:// protocol and act as the handler. Joining a Paraworld server is only one click away.
Registers the URL handler if launched without any arguments.
Launches the game and joins the server if launched with valur -URI flag.
URL protocol format: paraworld://[server_ip]:[server_port]
#>
param(
@cetteup
cetteup / paraworldd.service
Created April 26, 2022 16:15
Paraworld dedicated server systemd service templates
[Unit]
Description=ParaWorld dedicated server "manager"
After=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple