Skip to content

Instantly share code, notes, and snippets.

View jozefizso's full-sized avatar
🏳️‍🌈

Jozef Izso jozefizso

🏳️‍🌈
  • Slido, Cisco Systems
  • Bratislava, Slovakia
View GitHub Profile
@jozefizso
jozefizso / aws-test.cmd
Last active March 1, 2024 13:09
Slido network connectivity test
::
:: Slido network connectivity test, AWS v2
::
:: (c) 2024 Cisco Systems, Inc. All rights reserved.
::
@echo off
setlocal
setlocal enableextensions enabledelayedexpansion
mkdir logs
traceroute badge.team
traceroute to badge.team (178.251.25.69), 64 hops max, 52 byte packets
1 aer01-hda1-access-gw1-vla160.cisco.com (144.254.221.18) 33.078 ms 27.884 ms 27.959 ms
2 aer01-mda2-sbb-gw2-por20.cisco.com (173.38.195.237) 30.680 ms
aer01-mda1-sbb-gw1-por20.cisco.com (173.38.195.229) 30.597 ms 28.225 ms
3 aer01-mda2-corp-gw2-por11.cisco.com (173.38.195.178) 31.651 ms 27.512 ms
aer01-mda2-corp-gw2-por10.cisco.com (173.38.195.170) 30.269 ms
4 aer01-mda1-dmzbb-gw1-vla777.cisco.com (173.38.208.139) 35.635 ms 33.566 ms 34.544 ms
5 aer01-mda1-cbb-gw1-be91-555.cisco.com (173.38.246.73) 36.925 ms 34.841 ms
aer01-mda2-cbb-gw2-be91-555.cisco.com (173.38.246.77) 36.591 ms
@jozefizso
jozefizso / 01-disable-integrity-checks.cmd
Last active January 31, 2024 16:22
Windows Hyper-V Server Instal Ethernet Driver
bcdedit -set loadoptions DISABLE_INTEGRITY_CHECKS
bcdedit -set TESTSIGNING ON
bcdedit -set NOINTEGRITYCHECKS ON
shutdown /r /t 0
@jozefizso
jozefizso / udf_FormatBytes.sql
Created November 3, 2015 13:09
Convert Bytes to KB, MB, GB, TB, PB or EB and format the output to human readable format
CREATE FUNCTION [dbo].[udf_FormatBytes]
(
@InputNumber DECIMAL(38,7),
@InputUOM VARCHAR(5) = 'Bytes'
)
RETURNS VARCHAR(20)
WITH SCHEMABINDING
AS
BEGIN
-- Declare the return variable here
This file has been truncated, but you can view the full file.
2022-01-10 12:47:34,840 18000 [DEBUG] - XmlConfiguration is now operational
2022-01-10 12:47:34,856 18000 [INFO ] - ============================================================
2022-01-10 12:47:34,889 18000 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\config".
2022-01-10 12:47:34,956 18000 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\config\chocolatey.config"
with "C:\ProgramData\chocolatey\config\chocolatey.config.18000.update".
Backup placed at "C:\ProgramData\chocolatey\config\chocolatey.config.backup".
2022-01-10 12:47:34,956 18000 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\config\chocolatey.config.18000.update"
to "C:\ProgramData\chocolatey\config\chocolatey.config".
2022-01-10 12:47:34,956 18000 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\config\chocolatey.config.18000.update".
2022-01-10 12:47:34,956 18000 [INFO ] - 0.11.3
@jozefizso
jozefizso / convert.sh
Created December 8, 2018 19:58
MySQL encoding hell: How to export UTF-8 data from a latin1 table
# We’re using --no-data to only export the schema
# We’re also using --skip-set-charset and --default-character-set=latin1 to ensure that MySQL doesn’t attempt to reconvert or set the charset.
# sed is replacing every occurence of latin1 for the charset with utf8mb4. Change utf8mb4 to utf8 if you don’t need the full UTF-8 character set.
mysqldump -u[username] -p [existing_database] --no-data --skip-set-charset --default-character-set=latin1 \
| sed 's/CHARSET=latin1/CHARSET=utf8mb4/g' \
> schema.sql
# export data
mysqldump -u[username] -p [existing_database] --no-create-db --no-create-info --skip-set-charset --default-character-set=latin1 > data.sql
# escape=`
# Copyright 2023 Cisco Systems, Inc.
FROM mcr.microsoft.com/windows/servercore:ltsc2022
USER ContainerAdministrator
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
# Install Visual C++ Runtime
RUN Invoke-WebRequest "https://aka.ms/vs/17/release/vc_redist.x86.exe" -OutFile "vcredist_x86.exe"; `
Option Explicit
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Public Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hWnd As Long, ByVal nIndex As Long, ByVal wNewWord As Long) As Long
Public Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Declare Sub ExitProcess Lib "kernel32" (ByVal uExitCode As Long)
Public Const GWL_WNDPROC = (-4)
@jozefizso
jozefizso / merge_compute_weights-382400.c
Created January 10, 2023 09:04
llvm-project #59909
This file has been truncated, but you can view the full file.
# 1 "<built-in>"
# 1 "/Users/jozef/Developer/cado-nfs/filter/merge_compute_weights.c"
#if 0 /* expanded by -frewrite-includes */
#include "cado.h"
#endif /* expanded by -frewrite-includes */
# 1 "/Users/jozef/Developer/cado-nfs/filter/merge_compute_weights.c"
# 1 "/Users/jozef/Developer/cado-nfs/cado.h" 1
/* Common header file for the CADO project
Copyright 2007-2015 Pierrick Gaudry, Alexander Kruppa, Emmanuel Thome, Paul Zimmermann
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{5FA9CC46-E381-428D-9799-814B63FD8135}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Excel371</RootNamespace>
<AssemblyName>Excel371</AssemblyName>