Skip to content

Instantly share code, notes, and snippets.

View asmwarrior's full-sized avatar

ollydbg asmwarrior

  • 22:57 (UTC +08:00)
View GitHub Profile
@asmwarrior
asmwarrior / reset-terminal-services.ps1
Created August 20, 2024 03:01 — forked from heywoodlh/reset-terminal-services.ps1
Script for renewing RDP License
## This Script is intended to be used for Querying remaining time and resetting Terminal Server (RDS) Grace Licensing Period to Default 120 Days.
## Developed by Prakash Kumar (prakash82x@gmail.com) May 28th 2016
## www.adminthing.blogspot.com
## Disclaimer: Please test this script in your test environment before executing on any production server.
## Author will not be responsible for any misuse/damage caused by using it.
Clear-Host
$ErrorActionPreference = "SilentlyContinue"
## Display current Status of remaining days from Grace period.
@asmwarrior
asmwarrior / gist:43c2bbd85ea12836f3b7038367b4a5c5
Created July 23, 2024 10:23 — forked from LeoHuckvale/gist:89683dc242f871c8e69b
matplotlib - Add subplots dynamically
@asmwarrior
asmwarrior / get_date
Created October 12, 2023 14:58 — forked from cjwinchester/get_date
Get today's date in YYYY-MM-DD format in a Windows batch file.
:: adapted from http://stackoverflow.com/a/10945887/1810071
@echo off
for /f "skip=1" %%x in ('wmic os get localdatetime') do if not defined MyDate set MyDate=%%x
for /f %%x in ('wmic path win32_localtime get /format:list ^| findstr "="') do set %%x
set fmonth=00%Month%
set fday=00%Day%
set today=%Year%-%fmonth:~-2%-%fday:~-2%
echo %today%
@asmwarrior
asmwarrior / treeview_solved.cpp
Created July 3, 2023 07:20 — forked from aamirglb/treeview_solved.cpp
treeview_solved.cpp
#include "wx/wx.h"
#include "wx/dataview.h"
/////////
// Implement a simple model with 2 columns
// FileName FileSize
/////////
class DataModelNode;
WX_DEFINE_ARRAY_PTR(DataModelNode *, DataModelNodePtrArray);
@asmwarrior
asmwarrior / treeview.cpp
Created July 2, 2023 14:03 — forked from aamirglb/treeview.cpp
A sample treeview using wxDataViewCtrl
#include "wx/wx.h"
#include "wx/dataview.h"
/////////
// Implement a simple model with 2 columns
// FileName FileSize
/////////
class DataModelNode;
WX_DEFINE_ARRAY_PTR(DataModelNode *, DataModelNodePtrArray);
/* fix_fft.c - Fixed-point in-place Fast Fourier Transform */
/*
All data are fixed-point short integers, in which -32768
to +32768 represent -1.0 to +1.0 respectively. Integer
arithmetic is used for speed, instead of the more natural
floating-point.
For the forward FFT (time -> freq), fixed scaling is
performed to prevent arithmetic overflow, and to map a 0dB
sine/cosine wave (i.e. amplitude = 32767) to two -6dB freq
@asmwarrior
asmwarrior / .gitconfig
Created May 15, 2023 07:46 — forked from shawndumas/.gitconfig
Using WinMerge as the git Diff/Merge Tool on Windows 64bit
[mergetool]
prompt = false
keepBackup = false
keepTemporaries = false
[merge]
tool = winmerge
[mergetool "winmerge"]
name = WinMerge
@asmwarrior
asmwarrior / TkinterExcel.py
Created April 11, 2023 09:57 — forked from RamonWill/TkinterExcel.py
The code from my video on how to view an excel file or Pandas Dataframe inside Tkinter (with comments)
# Youtube Link: https://www.youtube.com/watch?v=PgLjwl6Br0k
import tkinter as tk
from tkinter import filedialog, messagebox, ttk
import pandas as pd
# initalise the tkinter GUI
root = tk.Tk()