Skip to content

Instantly share code, notes, and snippets.

@Thermionix
Thermionix / fedora.citrix.workspace.sh
Last active November 9, 2022 06:57
Install Citrix Workspace App on Fedora 32
#!/bin/sh
#Install Citrix Workspace App on Fedora 32
#Download Client From https://www.citrix.com/en-au/downloads/workspace-app/linux/workspace-app-for-linux-latest.html
sudo dnf install -y ICAClientWeb-rhel-20.04.0.21-0.x86_64.rpm
sudo dnf install -y compat-openssl10.x86_64
# Update libcrypto reference in desktop file
sudo sed -i '/Exec=/d' /usr/share/applications/wfica.desktop
@Thermionix
Thermionix / fedora.post.install.sh
Last active January 19, 2022 09:39
Fedora post install script
#!/bin/sh
## fix touchpad rightclick and middle click
gsettings set org.gnome.desktop.peripherals.touchpad click-method 'areas'
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/binding '<Primary><Alt>t'
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/command 'gnome-terminal &'
#/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/name 'Launch Terminal'
@Thermionix
Thermionix / dnscrypt-setup.sh
Last active November 20, 2017 03:26
quick setup for dnscrypt + dnsmasq on arch
#!/bin/bash
## chose a provider from;
# less /usr/share/dnscrypt-proxy/dnscrypt-resolvers.csv
sudo pacman -Sy --noconfirm dnscrypt-proxy dnsmasq dnsutils
cat <<-'EOF' | sudo SYSTEMD_EDITOR=tee systemctl edit dnscrypt-proxy.service
[Service]
ExecStart=
@Thermionix
Thermionix / setup.netfx3.ps1
Last active August 29, 2015 14:27
setup.netfx3.ps1 - choose and ISO file to use as the source for enabling NetFx3 in DISM
#Requires -Version 4.0
#Requires -RunAsAdministrator
Trap { Write-Host $_ -Fore Red ; pause ; exit 1 }
$ErrorActionPreference = "Stop"
function Mount-Iso([string] $isoPath)
{
if ( -not (Test-Path $isoPath)) { throw "$isoPath does not exist" }
#!/bin/bash
zip_date=`date +%Y-%m-%d`
rom_zip="apps-$zip_date.zip"
wget --timestamping https://gitlab.com/fdroid/fdroiddata/raw/master/stats/known_apks.txt
apk_ids=(
org.fdroid.fdroid # FDroid
com.zegoggles.smssync # SMSBackup+
@Thermionix
Thermionix / wine-1.7.24-d3dadapter.patch
Created August 11, 2014 23:56
wine-1.7.24 d3dadapter patch
diff --git a/configure b/configure
index 40cadd2..6f563de 100755
--- a/configure
+++ b/configure
@@ -821,6 +821,7 @@ with_netapi
with_openal
with_opencl
with_opengl
+with_d3dadapter
with_osmesa
@Thermionix
Thermionix / userDefineLang_Groovy.xml
Last active October 1, 2024 15:04
Groovy user defined language for notepad++
<NotepadPlus>
<UserLang name="Groovy" ext="groovy" udlVersion="2.1">
<Settings>
<Global caseIgnored="no" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">03/* 04*/ 00// 01 02</Keywords>
<Keywords name="Keywords1">abstract break case catch continue default do else extends final finally for if implements instanceof native new private protected public return static switch synchronized throw throws transient try volatile while strictfp package import false null super this true</Keywords>
<Keywords name="Keywords2">as assert def mixin property test using in it</Keywords>
@Thermionix
Thermionix / flyspray-comment.groovy
Last active August 29, 2015 14:04
Gitblit Post-Receive Hook: flyspray-comment
import com.gitblit.GitBlit
import com.gitblit.utils.JGitUtils
import org.eclipse.jgit.lib.Repository
import org.slf4j.Logger
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2' )
import groovyx.net.http.HTTPBuilder
import groovyx.net.http.ContentType
import groovyx.net.http.HttpResponseException
@Thermionix
Thermionix / jira-comment-oauth.groovy
Last active November 24, 2016 09:59
Gitblit Post-Receive Hook: jira-comment
import com.gitblit.GitBlit
import com.gitblit.utils.JGitUtils
import org.eclipse.jgit.lib.Repository
import org.slf4j.Logger
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.7.2' )
import groovyx.net.http.RESTClient
import groovyx.net.http.HttpResponseException
import groovyx.net.http.ContentType
@Thermionix
Thermionix / svn-to-git.ps1
Created June 1, 2014 23:25
apply an svn revision onto a git repo (including binary files)
$rev=40469 ; $url="svn://svn/test/branches/1.0.3" ; $clonedir="C:\source\test" ; $gitbin="${env:ProgramFiles(x86)}\Git\bin" ; cmd /c "svn diff --force --patch-compatible --diff-cmd `"$gitbin\diff.exe`" -x `"--text --unified`" -c $rev $url | git apply --directory=`"$clonedir`" -p0 --reject --verbose -"