Skip to content

Instantly share code, notes, and snippets.

View zakkak's full-sized avatar
:octocat:
Gitting

Foivos zakkak

:octocat:
Gitting
View GitHub Profile
Command: mvn clean package
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------------< imageio:imageio >---------------------------
[INFO] Building imageio 1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ imageio ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ imageio ---
Compiling org.graalvm.options with javac-daemon(JDK 11)... [/home/fzakkak/code/graal/sdk/mxbuild/src/org.graalvm.options/bin/org/graalvm/options/OptionKey.class does not exist]
Finished resource copy for org.graalvm.options
/opt/jvms/labsjdk-ce-11.0.7-jvmci-20.1-b02/bin/javac -g -d /home/fzakkak/code/graal/sdk/mxbuild/src/org.graalvm.options/bin -Xbootclasspath/p: -parameters -proc:none -target 1.8 -source 1.8 -verbose @/home/fzakkak/code/graal/sdk/mxbuild/src/org.graalvm.options/javafilelist.txt -Xlint:all,-auxiliaryclass,-processing,-removal,-options -XDignore.symbol.file -encoding UTF-8 -Xmaxerrs 10000
[309085: started subprocess 309214: ['Compiling org.graalvm.word with javac-daemon(JDK 11)']]
Cleaning /home/fzakkak/code/graal/sdk/mxbuild/src/org.graalvm.word/bin...
Compiling org.graalvm.word with javac-daemon(JDK 11)... [/home/fzakkak/code/graal/sdk/mxbuild/src/org.graalvm.word/bin/org/graalvm/word/WordFactory.class does not exist]
@zakkak
zakkak / quarkus-test.sh
Last active April 10, 2020 00:51
Test latest quarkus-native with latest graalvm on JDK11
#!/usr/bin/env sh
# Get labsJDK11
JVMCI_VERSION=jvmci-20.1-b01
JDK_VERSION=11.0.6+9
JDK="labsjdk-ce-${JDK_VERSION}-${JVMCI_VERSION}-linux-amd64"
JDK_TAR="${JDK}.tar.gz"
wget "https://github.com/graalvm/labs-openjdk-11/releases/download/${JVMCI_VERSION}/${JDK_TAR}" -O ${JDK_TAR}
tar xf ${JDK_TAR}
JAVA_HOME=${PWD}/${JDK}
@zakkak
zakkak / gist:ab08672ff9d137bbc0b2d0792a73b7d2
Created March 24, 2020 23:25
Resizing a filesystem using qemu-img and fdisk

Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:

  • You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
  • The partition you need to resize is the last partition on the disk.

This process will work with either a qcow2 or raw disk image. For

@zakkak
zakkak / google_drive.py
Last active January 31, 2018 21:25
Google Drive file downloader. Copied from this SO answer https://stackoverflow.com/a/39225039/3175094
import requests
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
return value
return None
@zakkak
zakkak / .git-commit-template
Last active March 21, 2024 14:26 — forked from adeekshith/.git-commit-template.txt
This commit message template that helps you write great commit messages and enforce it across your team.
# [<tag>] (If applied, this commit will...) <subject> (Max 72 char)
# |<---- Preferably using up to 50 chars --->|<------------------->|
# Example:
# [feat] Implement automated commit messages
# (Optional) Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# (Optional) Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@zakkak
zakkak / XPS-15 9560 Getting Nvidia To Work on KDE Neon
Created May 29, 2017 19:35 — forked from whizzzkid/XPS-15 9560 Getting Nvidia To Work on KDE Neon
Making Nvidia Drivers + CUDA 8 + Bumblebee work together on XPS 15 Early 2017 9560 kabylake. Ubuntu, KDE Neon, Linux Mint, debian.
# As of writing this, 4.11 kernel fails, 4.10.15 fails, 4.11rc8 seems to be working. Apply the graphics patches first.
# Install Intel Graphics Patch Firmwares (This should reboot your system):
bash -c "$(curl -fsSL http://bit.ly/IGFWL-install)"
# Update to 4.11.2 kernel. nvidia-375 compiles fine >=4.11.1
cd /tmp
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-headers-4.11.2-041102_4.11.2-041102.201705201036_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-headers-4.11.2-041102-generic_4.11.2-041102.201705201036_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.2/linux-image-4.11.2-041102-generic_4.11.2-041102.201705201036_amd64.deb
@zakkak
zakkak / disable_panel_shadow.sh
Created April 11, 2017 08:55 — forked from alibitek/disable_panel_shadow.sh
Disable KDE panel shadow. Script to be placed in ~/.kde/Autostart/disable_panel_shadow.sh https://forum.kde.org/viewtopic.php?f=285&t=121592
for WID in `xwininfo -root -tree | sed '/"plasma-desktop": ("Plasma" "Plasma")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do
xprop -id $WID -remove _KDE_NET_WM_SHADOW
done
# or
for WID in `xwininfo -root -tree | sed '/"Plasma": ("plasmashell" "plasmashell")/!d; s/^ *\([^ ]*\) .*/\1/g'`; do
xprop -id $WID -remove _KDE_NET_WM_SHADOW
done
@zakkak
zakkak / perf-usage.org
Created January 23, 2017 12:06
Perf usage

Profile the program

perf record -g ./my-program

where g instructs perf to create a call graph.

Known issue

To produce meaningful call-graphs, perf needs a way to read the call stack. To achieve this it relies on frame-pointers, thus we

@zakkak
zakkak / spark-hadoop-troubleshooting.md
Last active December 18, 2016 23:49
Spark and Hadoop Troubleshooting

java.io.IOException All datanodes are bad

Make sure ulimit -n is set to a high enough number (currently, experimenting with 1000000)

To do so check/edit /etc/security/limits.conf.

java.lang.IllegalArgumentException: Self-suppression not permitted

You can ignore this kind of exceptions