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
#!/bin/bash | |
# cron setup: | |
# copy this script to ~ | |
# chmod +x ~/gitlab_runner_cleanup.sh | |
# crontab -e | |
# # add following line: | |
# 0 3 * * * ~/gitlab_runner_cleanup.sh >> ~/gitlab_runner_cleanup.log 2>&1 | |
# Threshold for disk space, set to 5GB (5 * 1024 * 1024 * 1024 bytes) |
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
Param( | |
[Parameter(Mandatory = $true)] | |
[string]$file | |
) | |
#port of RoundhousE WindowsFileSystemAccess.get_file_encoding | |
function getFileEncoding($file){ | |
$enc = [System.Text.Encoding]::Default | |
$buffer = gc $file -Encoding Byte |
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
workflow PingUrlParallel { | |
param( | |
[string]$url, | |
[int]$parallelCount = 10, | |
[int]$iterations = 10 | |
) | |
foreach -parallel ($x in 1..$parallelCount) { | |
1..$iterations | %{ |
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
var a=document.createElement("script");a.type="text/javascript";a.async=true;a.src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b); |
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
####################################### APPEND TO EOF cmder\vendor\profile.ps1 ################################################### | |
function adbr { & adb reverse tcp:8081 tcp:8081 } | |
function adbm { & adb shell input keyevent 82 } |
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 static IList<TRes> ListAs<TRes>(this IQueryOver qry, TRes resultByExample) | |
{ | |
var ctor = typeof (TRes).GetConstructors().First(); | |
return qry.UnderlyingCriteria | |
.SetResultTransformer(Transformers.AliasToBeanConstructor(ctor)) | |
.List<TRes>(); | |
} | |
[Fact] | |
public void ListAs_Should_CastQueryOverResultToTypeSameAsSupliedExampleInstance() |
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
(function(){ | |
var cookies; | |
function readCookie(name,c,C,i){ | |
if(cookies){ return cookies[name]; } | |
c = document.cookie.split('; '); | |
cookies = {}; | |
for(i=c.length-1; i>=0; 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
REM usage: gpx_route_to_track.bat source.gpx target.gpx | |
gpsbabel -r -i gpx -f %1 -x transform,trk=rte,del -o gpx -F %2 | |
gpsbabel -r -i gpx -f %2 -x track,faketime=f20160101110000+2 -o gpx -F %2 |
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 WindsorConfigurationTests | |
{ | |
private readonly WindsorContainer container; | |
public WindsorConfigurationTests() | |
{ | |
container = new WindsorContainer(); | |
container.Install(FromAssembly.Named("AppX")); | |
} |
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
CREATE TABLE TST_MGA ( | |
from_time NUMBER(22) NOT NULL, | |
to_time NUMBER(22) NOT NULL, | |
mga NUMBER(22) NOT NULL); | |
CREATE TABLE tst_mga_mba( | |
from_time NUMBER(22) NOT NULL, | |
to_time NUMBER(22) NOT NULL, | |
mga NUMBER(22) NOT NULL, | |
mba NUMBER(22) NOT NULL); |
NewerOlder