View dl_geforce_drivers.ps1
# Download latest geforce drivers
# TODO: find a way to get series (ex: GeForce 10 Series) id somehow
Add-Type -AssemblyName System.Web
Import-Module BitsTransfer
$systemLocaleCode = Get-UICulture | select -ExpandProperty LCID
# Get machine's GPUs
$gpus = @{}
View recursive_file_process.go
package main
import (
"log"
"os"
"path/filepath"
"sync"
"time"
)
View json_middleware.go
package main
import (
"time"
"net/http"
"log"
"io/ioutil"
"encoding/json"
router "github.com/go-chi/chi"
routermw "github.com/go-chi/chi/middleware"
View main.py
import logging
import os
import sys
# 3rd party
from bs4 import BeautifulSoup
import requests
if __name__ == "__main__":
View reset_goland_eval.sh
#!/bin/bash
if ! [ -x "$(command -v xmlstarlet)" ]; then
echo "Error: xmlstarlet is not installed. Install it first. It's required for XML manipulation." >&2
exit 1
fi
echo "Resetting GoLand eval.."
echo ""
echo "! There might be few errors but those can be ignored."
View nvidia-driver-remove-crap.ps1
# Remove unnecessary trash from nvidia GPU driver installer
# Modifies the setup.cfg XML file and removes garbage directories as well
# First unpack the installer .exe with 7zip and then run:
# this_script.ps1 <unpack directory>
# (c) Pekka Järvinen 2018-
param (
[Parameter(Mandatory=$true)][ValidateScript({Test-Path $_})] [string]$unpackDir
)
View Deus Ex Mankind Divided - Remove intro videos.ps1
# Remove annoying intro videos from Deus Ex Mankind Divided
# Finds DXMD path from registry
# Steam application id (337000 = Deus Ex Mankind Divided)
$steamAppId = 337000
# Empty BINK video
$emptyVideo = @(
0x4B, 0x4E, 0x49, 0x42, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
View md5move.py
#!/bin/env/python
# -*- encoding: utf8 -*-
# Move files based on file list in a md5 checksum file
# (c) Pekka Järvinen 2017-
import logging
log = logging.getLogger(__name__)
import os
View network-ping-gateway.service
# Save in /etc/systemd/system/network-ping-gateway.service
[Unit]
Description=Ping default network gateway service
After=network-online.target
[Service]
# Wait time if process hangs
TimeoutStopSec=1m
# Command to run
View pacman-auto-update.service
# Download new packages but don't install them
# Save in /etc/systemd/system/
[Unit]
Description=Pacman Automatic Download (no install) service
After=network-online.target
[Service]
# Wait time if process hangs
TimeoutStopSec=5m