This file contains 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
[ 0.000000] Linux version 6.2.0-20-generic (buildd@lcy02-amd64-035) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-17ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.40) #20-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 6 07:48:48 UTC 2023 (Ubuntu 6.2.0-20.20-generic 6.2.6) | |
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-6.2.0-20-generic root=UUID=9898fc09-df7d-4fef-be27-6525d6ff3c51 ro quiet splash vt.handoff=7 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Hygon HygonGenuine | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] zhaoxin Shanghai | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' | |
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' |
This file contains 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
<# | |
This is a script that scrapes terraform for a set of terragrunt folders and extracts all the resources to | |
generate a set of `terraform import` statements that can be used to import the existing state into the | |
Terraform state. Note: This uses the `address` field of the resource to generate the import statement. | |
For resources like access policies that is not actually correct because the address uses `/` separators | |
for everything and the import expects them to be broken into three space separated components. You need | |
to identify these (mostly stuff with a `role/blahblah` in the path) and separate the role, account, and | |
project segments manually. | |
#> | |
cd $PSScriptRoot |
This file contains 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
public class Solution | |
{ | |
public IList<int> FindNumOfValidWords(string[] words, string[] puzzles) | |
{ | |
// Create a tree with all the words | |
var root = Node.PopulateWords(words); | |
int[] result = new int[puzzles.Length]; | |
for (var i = 0; i < puzzles.Length; i++) | |
{ |
This file contains 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
blueprint: | |
name: Z-Wave Secondary Light Control | |
description: 'Toggle an light using a Z-Wave event. This can be used to activate a different light than the one the | |
switch is wired to when it is double clicked.' | |
domain: automation | |
input: | |
control_switch: | |
name: Control Switch | |
description: The switch that will control the light when double-clicked. | |
selector: |
This file contains 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
version: '3.4' | |
services: | |
minecraft: | |
image: itzg/minecraft-bedrock-server | |
environment: | |
EULA: "TRUE" | |
GAMEMODE: survival | |
DIFFICULTY: normal | |
ports: | |
- 19132:19132/udp |
This file contains 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
/** | |
* Get the world XY position of a tile that takes into account the offset of the container with this map in it. | |
* This returns the origin of the tile sprite which is 64x64 whereas the actual tilemap tile size is only 64x32, so | |
* the world position is actually outside of the individual tile bounds. The tiles overlap in the isometric grid | |
* though so we only really care about the specific point. | |
* @param tileX | |
* @param tileY | |
*/ | |
public tileToWorldXY(tileX: number, tileY: number): Phaser.Math.Vector2 { | |
const worldPos = this.map.tileToWorldXY(tileX, tileY, null, null, "floor"); |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<AutoResponder LastSave="2020-01-06T22:02:18.2787399-08:00" FiddlerVersion="5.0.20194.41348"> | |
<State Enabled="true" Fallthrough="true" UseLatency="false"> | |
<ResponseGroup Id="06245c5d-eff4-474e-a452-62d3f99a6bd3" Header="CloudFilesTest" /> | |
<ResponseRule GroupId="06245c5d-eff4-474e-a452-62d3f99a6bd3" Match="https://identity.api.rackspacecloud.com/auth" Action="NEW_RESPONSE_16_49_04" Enabled="true" Headers="SFRUUC8xLjEgMjAwIEdlbmVyYXRlZA0KQ29udGVudC1MZW5ndGg6IDANCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA0KWC1TdG9yYWdlLVVybDogaHR0cHM6Ly9pZGVudGl0eS5hcGkucmFja3NwYWNlY2xvdWQuY29tL2ZpbGVzLw0KWC1BdXRoLVRva2VuOiBUb2tlbkFCQzEyMw0KDQo=" /> | |
<ResponseRule GroupId="06245c5d-eff4-474e-a452-62d3f99a6bd3" Match="method:GET https://identity.api.rackspacecloud.com/files/folder/?format=xml" Action="NEW_RESPONSE_16_54_53" Enabled="true" Headers="SFRUUC8xLjEgMjAwIEdlbmVyYXRlZA0KQ29udGVudC1MZW5ndGg6IDQzOA0KQ29udGVudC1UeXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04DQoNCg==" |
This file contains 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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp3.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Azure.Identity" Version="1.0.0-preview.4" /> | |
<PackageReference Include="Azure.Security.KeyVault.Secrets" Version="4.0.0-preview.4" /> |
This file contains 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
(venv) PS C:\code\GitHub\veleek\python-openzwave [0.5.x]> python setup.py build --flavor=dev | |
sysargv ['setup.py', 'build'] | |
Found SETUP_DIR : C:\code\GitHub\veleek\python-openzwave | |
<pyozw_setup.DevTemplate object at 0x00000207C15A2358> | |
V1.5-3753-gca4d398f-dirty | |
{'name': 'libopenzwave', 'sources': ['src-lib/libopenzwave/libopenzwave.pyx'], 'include_dirs': ['src-lib\\libopenzwave', 'C:\\code\\GitHub\\veleek\\python-openzwave\\openzwave\\build', 'C:\\code\\GitHub\\veleek\\python-openzwave\\openzwave\\cpp\\build\\windows', 'C:\\code\\GitHub\\veleek\\python-openzwave\\openzwave\\cpp\\src', 'C:\\code\\GitHub\\veleek\\python-openzwave\\openzwave\\cpp\\src\\value_classes', 'C:\\code\\GitHub\\veleek\\python-openzwave\\openzwave\\cpp\\src\\platform'], 'define_macros': [('PY_LIB_VERSION', '0.4.18'), ('PY_LIB_FLAVOR', '--flavor=dev'), ('PY_LIB_BACKEND', 'cython'), ('CYTHON_FAST_PYCCALL', 1), ('_MT', 1), ('_DLL', 1), ('PY_SSIZE_T_CLEAN', 1), ('PY_LIB_FLAVOR', 'dev'), ('PY_LIB_BACKEND', 'cython')], 'libraries': ['setupapi' |
This file contains 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
# Install BoxStarter | |
# Set-ExecutionPolicy Unrestricted -Scope Process -Force; . { iwr -useb https://boxstarter.org/bootstrapper.ps1 } | iex; Get-Boxstarter -Force | |
# Execute this BoxStarter Package | |
# Install-BoxstarterPackage -DisableReboots -PackageName https://gist.githubusercontent.com/veleek/aeb819d9488676620aa1d2014f6991b0/raw/benran-boxstarter-work.ps1 | |
# Trust PSGallery | |
Get-PackageProvider -Name NuGet -ForceBootstrap | |
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowFileExtensions -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder -EnableShowRibbon |
NewerOlder