- Kubuntu (latest LTS) (Ubuntu with KDE Desktop)
- Workaround for logo-key as application-launcher
- Workaround for enabling arrow-keys in application-switcher
-
Disabled baloo file indexer service
balooctl disable
-
Fix missing gksu
sudo ln -s /usr/bin/pkexec /usr/bin/gksu
- Grub Customizer nice gui for grub configuration
- dconf gui editing tool for gnome configuration
- winehq-stable stable, powerful compatibility layer for running Windows applications in *nix
- hfsprogs mount macOS hfs+ partitions exfat-fuse mount exfat partitions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
rm -rf dir1 dir2; | |
mkdir -p dir1/pkg; | |
cat >File.java <<EOL | |
package pkg; | |
public class File { | |
public static void main(String[] args) { | |
System.out.println("dir1/File"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get install kpartx xorriso | |
# parameters to set before run | |
# download both kde-neon and kubuntu's image to fuse them (attach EFI+BootPartition to kde-neon's) | |
export KDE_NEON_IMG=/home/nima/neon-useredition-20190321-0530-amd64.iso | |
export KUBUNTU_IMG=/home/nima/kubuntu-18.04.2-desktop-amd64.iso | |
export KDE_NEON_NEW_IMG=$(basename $KDE_NEON_IMG | awk '{ gsub(/\.iso$/,"-modded.iso",$1); print $1 }') | |
export MOUNT=$(mktemp -d) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export V4L2L_DIR=$(mktemp -d) | |
sudo apt-get install git v4l-utils dialog libelf-dev | |
echo ======================================================================== | |
echo == REMOVING ANY PREVIOUS INSTALLATION OF v4l2loopback ================== | |
echo ======================================================================== | |
sudo apt-get purge v4l2loopback-dkms v4l2loopback-utils | |
find "/lib/modules/$(uname -r)" | grep v4l2loopback | sudo xargs rm -f | |
echo ======================================================================== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun <E1, E2, R> mapAccumLeft(list: List<E1>, zero: R, accumulateAndMap: (R, E1) -> Pair<R, E2>): Pair<R, List<E2>> { | |
return list.fold(Pair(zero, mutableListOf<E2>())) { | |
(acc, mappedList), elem1 -> | |
val (newAcc, elem2) = accumulateAndMap(acc, elem1) | |
Pair(newAcc, mappedList.also { it.add(elem2) }) | |
} | |
} | |
// sample usage | |
mapAccumLeft(listOf(1, 2, 3, 4), "A", { str, num -> Pair(str + num, num * 10) }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Description: | |
# downloads mendix of the specified version and places it in `$HOME/.mendix/{{specified-version}}` | |
# | |
# Usage: | |
# mendix-downloader.sh {{specify-the-desired-version}} | |
# (e.g. mendix-downloader.sh 7.23.7.55882) | |
# | |
MXBUILD_VERSION=$1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package classloaders | |
import java.time._ | |
import java.util.TimeZone | |
import java.util.concurrent.TimeUnit | |
import scala.concurrent.duration.Duration | |
object Main { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.event.EventTarget | |
import javafx.scene.Node | |
import org.tbee.javafx.scene.layout.fxml.MigPane | |
import tornadofx.attachTo | |
fun EventTarget.migPane(op: MigPane.() -> Unit = {}): MigPane { | |
return MigPane().attachTo(this, op) | |
} | |
var Node.cc: String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/expect | |
log_user 0 | |
spawn nc localhost 2000 | |
stty raw -echo | |
interact -o -nobuffer |
Open console and run this for 0px
width ads. (ads still working, adjust width size to suite your need)
document.querySelector("body > div.flexrow.app > div:nth-child(2)").setAttribute('style','position: fixed; top: 100vh')
document.querySelector("body > div.flexrow.app > div").setAttribute('style','width:100%')
document.querySelector("body > div.flexrow.app > div > div.flexrow > div.panelblock.mainblock").setAttribute('style','width:100%')
const style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = '.fixme { min-width:fit-content;overflow:unset; }';
document.querySelector("body > div.flexrow.app > div:nth-child(1) > div.flexrow").appendChild(style)