Skip to content

Instantly share code, notes, and snippets.

Christian Walde (Mithaldu) wchristian

Block or report user

Report or block wchristian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wchristian
wchristian / README.md
Last active Apr 28, 2019
smoke test blead on windows AND get PASSes
View README.md

1. have a windows 10 pro installation,

  • ACPs as follows: perl -e "use Win32; print join ' ', Win32::GetConsoleOutputCP(), Win32::GetACP(), Win32::GetOEMCP()"
  • 437 1252 437 (that means it is set to use usa language as default)

2. install strawberry perl

3. in c:\strawberry\smoke run configsmoke

  • accept defaults, except:
View gist:a0c7f563620424a53daa687dac42adeb
79949 Conventional
7213 Tax Credit
2746 Other
1136
419 Student Housing
160 Senior
136 Senior community
132 Condo Sales
108 Student
106 Student property
@wchristian
wchristian / mastodon.css
Created Apr 12, 2017
CSS for Stylish extension to make Mastodon brighter
View mastodon.css
body { font-family: "Tahoma" }
.column { width: 27% }
.drawer { width: 15% }
.status, .notification__message, .status__prepend { padding-top: 0 }
.status { padding-bottom: 0}
.status :nth-child(3n) {
margin-top: 0 !important;
}
body.app-body, .ui { background: transparent }
View gist:20dfbc2e2f4a2e4dcfcd8b7064abdd0a
[ScalabilityGroups]
sg.ShadowQuality=0
sg.PostProcessQuality=0
sg.ResolutionQuality=50.000000
sg.ViewDistanceQuality=3
sg.TextureQuality=0
sg.FoliageQuality=3
[/Script/Refunct.MyGameUserSettings]
FieldOfView=100.000000
@wchristian
wchristian / __
Last active Oct 26, 2016
Opera V12 junction browser configs
View __
Original source for these is: http://operawiki.info/webdevtoolbar
The buttons also need the appropiate images added to the skin zip.
Also make sure that %PATH% contains the directories your browser executables live in.
View what.pl
#$FORM{'Reifenw'},$FORM{'Reifenwp'},$FORM{'Felgenw'},$FORM{'Felgenwp'},$FORM{'Komplettradw'},$FORM{'Komplettradwp'},$FORM{'Bringservice'},$FORM{'Bringservicp'},$FORM{'Bringservick'},$FORM{'Komplettum'},$FORM{'Komplettump'},$FORM{'Achsvermessungs'},$FORM{'Achsvermessungsp'},$FORM{'Einlagerungsservice'},$FORM{'Einlagerungsservicep'}
if ($sprache eq "DE") {
my $sonder = "";
if ($FORM{'Reifenw'} eq "ja"){
$sonder = qq!<br>- Reifenwäsche!;
if ($FORM{'Reifenwp'}){$sonder .= qq! ($FORM{'Reifenwp'} $diewaehrung/Reifen)!;}}
if ($FORM{'Felgenw'} eq "ja"){
$sonder .= qq!<br>- Felgenwäsche!;
if ($FORM{'Felgenwp'}){$sonder .= qq! ($FORM{'Felgenwp'} $diewaehrung/Felge)!;}}
if ($FORM{'Komplettradw'} eq "ja"){
View psyduck.rst

Just had this one passed on to me by my brother in Alberta. A friend of his is working in some sawmill in the north of the province and just quit his job because of this incident.

So he's working for his lumber yard that's your're pretty average semi-permanent mill. The whole facility can essentially be packed up in a week and moved to another site closer to the source, as most everything is stored in, or built out of storage containers. My brother's friend used to to exploratory drilling for some company that looks for oil deposits, but he got laid off almost a year ago when oil took a hit. Both operations need people to maintain large moving parts and keep things clean so that they don't wear out, so he was able to transition to this pretty easily.

So three days ago the one conveyor that hauls the single-cut boards starts smoking at one of the bearings. Seems that the meth-heads that are 90% of the employees at this site are not so keen to grease the bearings for the conveyor (he takes care of the larger

View spawn.md

Squad spawn rules:

  • vehicles eligible for Squad Spawn are:
    • Galaxy
    • undeployed Sunderer (!!!)
    • Valkyrie
  • a vehicle becomes Squad Spawn by being piloted by any squad mate
  • any squad member can deploy into any Squad Spawn
  • driver's squad leader status does not matter
  • location of Squad Spawn does not matter
View jquery-validation-engine_with_select2.html
<script type="text/javascript">
// This is a workaround for using jquery-validation-engine with select2 for 'required' validation
// Since the _required validator for jquery-validation-engine uses .val() to see
// if there's anything in the input, we can hijack .val() for the container created by select2\
// and redirect it to the value of the hidden element
// jquery-validation-engine throws an error if the thing we're validating doesn't have an id
// so we'll put one on the container created by select2 (that way, the positioning of the prompts
// will be correct)
$('#mySelector').select2('container').attr('id', 'mySelectorValidate');
@wchristian
wchristian / gist:f6a41314be966b957193
Created Oct 26, 2014
quoting myself from elsewhere on paths
View gist:f6a41314be966b957193
(Mithaldu) first off, you need to differentiate between paths in your program, and objects representing actual file system objects on your machine
(Mithaldu) and then you have code portable between machines, so both classes need to carry around attributes marking which OS the path is for
(Mithaldu) and then you can have volumes with different file systems mounted to the same machine
(Mithaldu) and then you can have different configurations for the same file system type
(Mithaldu) and nothing gets all of these right
You can’t perform that action at this time.