Skip to content

Instantly share code, notes, and snippets.

View nikescar's full-sized avatar
😁
;)

Woojae, Park nikescar

😁
;)
View GitHub Profile
@nikescar
nikescar / xorgfix.md
Created April 23, 2026 01:50
xorgfix.md

Xorg/JWM fix summary

Problem

startx was failing for two separate reasons:

  1. ~/.xinitrc was broken:
    • malformed test expression in the xsession.* loop
    • wrong JWM path (bin/jwm instead of /usr/local/bin/jwm)
  2. Xorg was crashing on this laptop during GPU auto-probe with the Intel/DRM path.
@nikescar
nikescar / desktop.user.js
Last active March 30, 2026 12:08
firefox hardening user.js for desktop and mobile
/******
* name: arkenfox user.js
* date: 4 November 2025
* version: 140
* urls: https://github.com/arkenfox/user.js [repo]
* : https://arkenfox.github.io/gui/ [interactive]
* license: MIT: https://github.com/arkenfox/user.js/blob/master/LICENSE.txt
* README:
@nikescar
nikescar / extroot.sh
Last active February 4, 2025 20:30
openwrt extroot
#!/bin/sh
# openwrt extroot /dev/sda1 ext4 /dev/sda2 swap
# latest version https://downloads.openwrt.org/releases/19.07-SNAPSHOT/targets/ar71xx/generic/
opkg update
opkg install kmod-usb-storage kmod-scsi-core block-mount kmod-fs-ext4 kmod-usb-uhci e2fsprogs fdisk
echo "
sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
@nikescar
nikescar / Docker TIP
Created October 13, 2017 00:35
Docker TIP
My favorite way of removing all stopped docker containers is:
docker ps -q |xargs docker rm
it will list all images (docker ps), but only show the id's. And then run a docker rm command for each one of them.
Similarly for removing all unused docker images
docker images -q |xargs docker rmi
Will list all docker images and then docker rmi them.
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 8.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :20140601
#usage :/bin/bash wildfly-install.sh
WILDFLY_VERSION=8.1.0.Final
WILDFLY_FILENAME=wildfly-$WILDFLY_VERSION
@nikescar
nikescar / ndk-r9c-fortran.patch
Created June 15, 2014 05:16
ndk-r9c-fortran.patch untested
From 9d3b69220e5c3d3dbb6555f306ba07dd33125320 Mon Sep 17 00:00:00 2001
From: "Woojae, Park" <nikescar@gmail.com>
Date: Sun, 15 Jun 2014 13:53:47 +0900
Subject: [PATCH] fortran patch
---
build/core/build-binary.mk | 10 ++-
build/core/default-build-commands.mk | 3 +
build/core/definitions.mk | 148 +++++++++++++++++++++++++++++++++++
build/tools/dev-defaults.sh | 10 +--
@nikescar
nikescar / 0001-fortran-commit-2.patch
Created June 15, 2014 05:09
ndk-r9c-fortran.patch
From f5d91957dece0f21caf187ae4569ef382eb0e696 Mon Sep 17 00:00:00 2001
From: "Woojae, Park" <nikescar@gmail.com>
Date: Sun, 15 Jun 2014 14:00:54 +0900
Subject: [PATCH] fortran commit 2
---
build/tools/build-gcc.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/build/tools/build-gcc.sh b/build/tools/build-gcc.sh
# put multiple field_types forlder and run patch
# defalt dir for firesal 1.2 multiple field type is
# (pyrocms modules dir)firesale/field_types/multiple
--- field.multiple.php 2013-06-23 18:31:19.131858247 +0900
+++ field.multiple.php 2013-06-23 18:29:51.122152446 +0900
@@ -230,7 +230,19 @@
*/
public function event()
{
@nikescar
nikescar / gist:4345401
Created December 20, 2012 13:45
openwrt.libhdf5.end.log
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
H5Tconv.c:8549:1: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: cast increases required alignment of target type [-Wcast-align]
H5Tconv.c:8549:1: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
H5Tconv.c:8549:1: warning: comparing floating point with == or != is unsafe [-Wfloat-equal]
This file has been truncated, but you can view the full file.
nikescar@debian:~/src/openwrt$ make package/feeds/qihw/libhdf5/compile V=99
make[1]: Entering directory `/home/nikescar/src/openwrt'
make[2]: Entering directory `/home/nikescar/src/openwrt/package/toolchain'
if [ -f /home/nikescar/src/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean ]; then rm -f /home/nikescar/src/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install /home/nikescar/src/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install.clean; fi; echo "libc" >> /home/nikescar/src/openwrt/staging_dir/target-mips_r2_uClibc-0.9.33.2/pkginfo/toolchain.default.install