Skip to content

Instantly share code, notes, and snippets.

View lenosi's full-sized avatar

Dominik Lenosi lenosi

View GitHub Profile
@Aikhjarto
Aikhjarto / DD_WRT_nvram_tricks.txt
Last active May 17, 2024 21:31
DD-WRT nvram tricks
This file provides some nifty command-line tools around DD-WRT's nvram command.
https://www.dd-wrt.com/wiki/index.php/Hardware#NVRAM
USE WITH CAUTION: fiddling with nvram can wipe your settings and you may loose access to your router.
Hint 1: Different version of DD-WRT might use different nvram variables. Thus, be carefull when updating.
Hint 2: The commands listed below should be issued via a ssh-connection since the webinterface for issuing commands might time out for the longer commands.
Background
==========
Extracting the content of configuration variables with nvram would provide an easy way of selective backup/restore of settings. However, listing the content of the nvram via
nvram show
@marbu
marbu / rome.md
Last active October 3, 2020 18:47
Ancient Rome

Disable Device Enrollment Notification on Mac.md

Restart the Mac in Recovery Mode by holding Comment-R during restart

Open Terminal in the recovery screen and type

csrutil disable
@Mr-LiuDC
Mr-LiuDC / pipeline-syntax.gdsl
Last active September 19, 2024 00:57
GDSL supporting jenkins pipeline.
/**
* JENKINS_HOST/job/pipeline-job/pipeline-syntax/gdsl
* https://gist.github.com/Mr-LiuDC/8a1fbe27e8fbd42361185b06085ef4c3
*
* All pipeline steps can be found here: https://www.jenkins.io/doc/pipeline/steps/
*/
// The global script scope
def ctx = context(scope: scriptScope())
@SamGajdos
SamGajdos / check.yml
Last active November 10, 2022 19:15
Playbook to execute sanity check against an OCP cluster.
---
- name: Run and check command "{{command}}"
ansible.builtin.shell: ./check_oc_command.py "{{check}}" "$({{command}})" "{{command}}"
async: 500
poll: 0
args:
executable: /bin/bash
register: script_output
failed_when: "'FAILED' in script_output"