Skip to content

Instantly share code, notes, and snippets.

View rogeliodh's full-sized avatar

Rogelio Domínguez Hernández rogeliodh

  • Mexico City
  • 11:04 (UTC -06:00)
View GitHub Profile
@rogeliodh
rogeliodh / mmc.sh
Created January 20, 2017 22:34
[X1ii] Replacement mmc.sh to run [sdcard]/custom.sh script on boot [tested with FW < 1.5.6]
#!/bin/sh
if [ "$ACTION" == "add" ]
then
echo add > /tmp/mmc_add
/bin/mount -t vfat -o iocharset=utf8,shortname=mixed /dev/$1 /mnt/mmc
if [ "$?" != "0" ]
then
/bin/mount -o iocharset=utf8 /dev/$1 /mnt/mmc
fi
@rogeliodh
rogeliodh / custom.sh
Last active February 12, 2019 09:42
[x1ii] custom script to extract some info from x1ii
#!/bin/sh
SD=/mnt/mmc/debug
mkdir -p "$SD"
main() {
sleep 3
/bin/mount
/bin/dmesg
ls -lR /proc/

Keybase proof

I hereby claim:

  • I am rogeliodh on github.
  • I am rogeliodh (https://keybase.io/rogeliodh) on keybase.
  • I have a public key ASCxGn_I40bAn5EySAgDO8-Gr1D8TuzRYgbEHYTaQavkfgo

To claim this, I am signing this object:

@rogeliodh
rogeliodh / ocp-4.2-hugepages-1g.md
Created July 5, 2022 13:26 — forked from williamcaban/ocp-4.2-hugepages-1g.md
Configure 1G Hugepages in OpenShift 4.2

Configure 1G Hugepages in OpenShift 4.2

Update Node Kernel Parameters

Supporting 1G hugepages requires the Kernel to support 1G Hugepages. This is done by applying a boot Kernel parameter.

  • Create a MachineConfig (MC) to apply to the Node type that will be using the 1G hugepages. The following example set 1G hugepages for all worker nodes 50-kargs-1g-hugepages.yaml:
    apiVersion: machineconfiguration.openshift.io/v1
    

kind: MachineConfig