This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # WiFi credentials | |
| wifi: | |
| ssid: ${ssid} | |
| password: ${password} | |
| ap: | |
| ssid: ${devicename} | |
| password: ${password} | |
| manual_ip: | |
| static_ip: ${ipaddr} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // What system are we connected to? | |
| systeminfo | findstr /B /C:"OS Name" /C:"OS Version" | |
| // Get the hostname and username (if available) | |
| hostname | |
| echo %username% | |
| // Get users | |
| net users | |
| net user [username] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from typing import Iterable, Union, Any | |
| # freq: frequency in Hz | |
| # zerolen: length of space bit in μs | |
| # onelen: length of mark bit in μs | |
| # repeats: number of times to repeat sequence | |
| # pause: time to wait in μs between sequences | |
| # bits: string of ones and zeros to represent sequence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| REM Description: Small helper script to quickly start an AADSync but just double clicking on this script file. | |
| REM Author: Michael Mardahl - github.com/mardahl | |
| echo Starting AD Sync (Delta)... | |
| powershell.exe -ex bypass -command "ipmo adsync;Start-ADSyncSyncCycle delta;" | |
| echo Finished script execution. | |
| pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{ range $_, $__ := ( .Get 0 | seq) }} {{ end }} | |
| <!-- For detailed usage refer to: https://www.rajat404.com/blog/hugo-shortcode-space --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| /** | |
| * Parses the source CSV into an array of objects. | |
| * @param {string} source The source CSV to parse. | |
| * @param {Boolean} [parse_numbers=true] Whether number-like values should be parsed with parseFloat() | |
| * @returns {[object]} An array of objects. The keys are taken from the csv header. | |
| */ | |
| export default function ParseCSV(source, parse_numbers = true) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # https://gist.github.com/koenpunt/40c0b042c453a1add0e8 | |
| # | |
| # Check if the user is in the right group | |
| # and afterwards retrieve the SSH public key from LDAP | |
| # Logs directly in Syslog | |
| # requires ldap-utils | |
| # | |
| # sshd_config for OpenSSH 6.2 or higher: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // What system are we connected to? | |
| systeminfo | findstr /B /C:"OS Name" /C:"OS Version" | |
| // Get the hostname and username (if available) | |
| hostname | |
| echo %username% | |
| // Get users | |
| net users | |
| net user [username] |