I hereby claim:
- I am superkarn on github.
- I am superkarn (https://keybase.io/superkarn) on keybase.
- I have a public key ASBLXpAy-DvKbi-E1P26iDOMkt90ehzIxns6uGbhzGWf5Qo
To claim this, I am signing this object:
REM This script will change Windows' lock screen timeout to 500 seconds. | |
powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 500 | |
powercfg.exe /SETACTIVE SCHEME_CURRENT |
////////////////////////////// | |
// Problem: | |
// Flatten an array of arbitrarily nested arrays of integers | |
// into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4]. | |
// Solution one | |
let flattenArray = (a) => { | |
// If a is not an array, throw an error | |
if (!Array.isArray(a)) { |
-- https://stackoverflow.com/a/5003054 | |
-- Generate a random number: 0= < x < 60 | |
-- One random number per row of data. | |
select abs(checksum(newid()) % 60) |
I hereby claim:
To claim this, I am signing this object:
# This will open the hosts file using notepad so that you can edit it. | |
# Open PowerShell or command line with Administrator privileges | |
# Run the following command | |
notepad "C:\WINDOWS\system32\drivers\etc\hosts" |
public class SecureRequestFilterAttribute : Attribute, IHasRequestFilter | |
{ | |
public IHasRequestFilter Copy() | |
{ | |
return this; | |
} | |
public int Priority | |
{ | |
// https://github.com/ServiceStack/ServiceStack/issues/119 |
#region Test | |
// test | |
int a = 0; | |
#endregion |