Skip to content

Instantly share code, notes, and snippets.

View nikescar's full-sized avatar
😁
;)

Woojae Park nikescar

😁
;)
View GitHub Profile
@nikescar
nikescar / extroot.sh
Last active February 26, 2024 16:45
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
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;
include $(TOPDIR)/rules.mk
PKG_NAME:=libhdf5
PKG_VERSION:=1.8.9
PKG_RELEASE:=1
PKG_SOURCE:=hdf5-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8.9/src/hdf5-1.8.9.tar.gz
PKG_MD5SUM:=d1266bb7416ef089400a15cc7c963218
#PKG_VERSION:=1.8.10
#PKG_RELEASE:=1
#!/bin/bash
#
# This file echoes a bunch of color codes to the
# terminal to demonstrate what's available. Each
# line is the color code of one forground color,
# out of 17 (default + 16 escapes), followed by a
# test use of that color on all nine background
# colors (default + 8 escapes).
#