Skip to content

Instantly share code, notes, and snippets.

View k3karthic's full-sized avatar

Karthic Kumaran k3karthic

View GitHub Profile
@Braytiner
Braytiner / Windows Defender Exclusions VS 2022.ps1
Last active April 25, 2024 18:03
Adds Windows Defender exclusions for Visual Studio 2022
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\Downloads\HeidiSQL_11.3_64_Portable') > $null
$pathExclusions.Add($userPath + '\.dotnet') > $null
@pkutzner
pkutzner / chromeosvpn.md
Last active November 13, 2022 05:55
Create ChromeOS VPN connection.

Creating an OpenVPN Configuration for ChromeOS

This assumes you already have an OpenVPN server set up that you'll be connecting to. OpenVPN server setup is not covered in this document.

NOTE: ChromeOS is VERY picky about adherance to the ONC filespec (second ref. link). If an option is marked as an integer, and you surround it in quotes, import of the file will fail silently. Booleans (true and false) seem to be an exception wherein you can either wrap, or not, the boolean value in quotes without it failing ¯\_(ツ)_/¯.

References:

ChromeOS supports both L2TP and OpenVPN VPN connections. However, adding an OpenVPN connection, other than a really basic one, is non-trivial, as many options are missing from the GUI; things such as setting the Cipher or the Auth types, setting CompLZO, or any myriad nonstandard

@zigguratt
zigguratt / structure.lll
Last active January 17, 2018 08:24
A contract that illustrates LLL contract structure
;;;; --------------------------------------------------------------------------
;;;; @title A contract that illustrates LLL contract structure.
;;;; @author Daniel Ellison <daniel@syrinx.net>
(seq
;; Define the macros for this contract.
(include "macros.lll")
;;; -------------------------------------------------------------------------
@zigguratt
zigguratt / macros.lll
Last active January 17, 2018 08:24
Macros for the structure contract
;;;; --------------------------------------------------------------------------
;;;; @title Macros for the structure contract.
;;;; @author Daniel Ellison <daniel@syrinx.net>
(seq
;; Memory layout.
(def '*scratch* 0x00)
(def '*funcid* 0x20)
@speters
speters / uid.ino
Last active January 21, 2024 19:59
Arduino atmega328p unique id/serial number
#include <avr/boot.h>
void print_val(char *msg, uint8_t val)
{
Serial.print(msg);
Serial.println(val, HEX);
}
void setup(void)
{