Skip to content

Instantly share code, notes, and snippets.

View chandr1000's full-sized avatar

Irina Shinakawa chandr1000

View GitHub Profile
---
- name: Use all IPv6 Addresses in one IPv6 Block (/64, /56)
become: true
gather_facts: true
tasks:
- name: Get default IPv6 interface
ansible.builtin.set_fact:
interface: "{{ ansible_default_ipv6.interface }}"
- name: Get IPv6 prefix
ansible.builtin.set_fact:
@LuemmelSec
LuemmelSec / disabledevicegard.ps1
Created December 1, 2022 08:51
Disable DeviceGuard with UEFI lock
# Steps needed to disable DeviceGuard with UEFI lock
# Disable DeviceGuard in registry
cmd /c 'REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /f'
cmd /c 'REG DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard" /v "RequirePlatformSecurityFeatures" /f'
cmd /c 'REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "EnableVirtualizationBasedSecurity" /f'
cmd /c 'REG DELETE "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard" /v "RequirePlatformSecurityFeatures" /f'
# Change UEFI settings. Reboot and confirmation needed.
mountvol X: /s
@ikr4-m
ikr4-m / getErrorMessage.js
Created June 22, 2019 07:21
Get JSON file in CI_RESTful_Error_Exception
/**
* @param {string} err
*/
let getErrorMessage = (err) => {
// All json string will pass in this regex
let regex = /(\{\"([^\"]+)\"\:(\w+)\,\"([^\"]+)\"\:\"([^\"]+)\"\,\"([^\"]+)\"\:\"([^\"]+)\"\})/gm
return JSON.parse(err.match(regex)[0]);
}
@jayktaylor
jayktaylor / fandom.md
Last active March 18, 2023 14:48
Removing featured videos on FANDOM

Hiding the videos

Hiding with uBlock Origin

uBlock Origin, unlike AdBlock Plus and other alternatives, doesn't allow companies to pay to whitelist their ads, and it blocks trackers too. Using it will provide the best experience on Wikia, as the majority of ads and slowdowns will be eliminated.

To block videos using uBlock Origin:

  • Click the uBlock Origin icon in your browser
  • Then click 'Open dashboard' (the furthest icon on the right under the power icon)
  • Click 3rd party filters
  • Click the Update now button and then enable uBlock filters - Annoyances
@crittermike
crittermike / wget.sh
Last active October 19, 2025 01:52
Download an entire website with wget, along with assets.
# One liner
wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com
# Explained
wget \
--recursive \ # Download the whole site.
--page-requisites \ # Get all assets/elements (CSS/JS/images).
--adjust-extension \ # Save files with .html on the end.
--span-hosts \ # Include necessary assets from offsite as well.
--convert-links \ # Update links to still work in the static version.
@tetsuok
tetsuok / compile_clang.md
Last active December 28, 2018 12:46
Compile Clang/LLVM

Setup

$ brew install cmake
$ brew install ninja

Getting the source

$ git clone http://llvm.org/git/llvm.git
$ cd llvm/tools
$ git clone http://llvm.org/git/clang.git
$ cd clang/tools

$ git clone http://llvm.org/git/clang-tools-extra.git extra