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 | |
| # ============================================================================== | |
| # KEYCHRON LINUX FIX FOR HID DEVICE C0NNECTED [K] | |
| # Author: morkev | |
| # | |
| # Contributors: | |
| # - SIMULATAN: Fixed dongle interference by filtering out "Link" devices. | |
| # - karoltheguy: Added SELinux context reset (restorecon) to prevent silent blocks. | |
| # - wanjas: Verified 'input' group addition is required for distros like Pop_OS. |
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
| # MikroTik (RouterOS) script for automatically setting DNS records | |
| # for clients when they obtain a DHCP lease. | |
| # | |
| # author SmartFinn <https://gist.github.com/SmartFinn> | |
| :local dnsTTL "00:15:00"; | |
| :local token "$leaseServerName-$leaseActMAC"; | |
| # Normalize hostname (e.g. "-= My Phone =-" -> "My-Phone") | |
| # - truncate length to 63 chars |
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
| #Source www.cze.cz | |
| #This script is tested with "Cisco AnyConnect Secure Mobility Client version 3.1.00495" | |
| # Usage: & '.\Cisco_Anyconnect.ps1' [-Server <server name or ip>] [-Group <group>] [-User <user>] [-Password <password>] | |
| #Please change following variables | |
| #IP address or host name of cisco vpn, Username, Group and Password as parameters | |
| param ( | |
| [string]$Server = $( Read-Host "Input server, please" ), |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; | |
| using System.Globalization; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Windows.Forms; | |
| namespace Spy | |
| { |
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
| /// <summary> | |
| /// Utilties for reflection | |
| /// </summary> | |
| public static class ReflectionUtils | |
| { | |
| /// <summary> | |
| /// Get all the fields of a class | |
| /// </summary> | |
| /// <param name="type">Type object of that class</param> | |
| /// <returns></returns> |