Skip to content

Instantly share code, notes, and snippets.

@Charlweed
Charlweed / getmkvtubtitles,ps1
Created Sep 9, 2021
Snippit of Get-MKVSubTitles
View getmkvtubtitles,ps1
function Get-MkvSubtitleASSTracks(
[Parameter(Mandatory = $true)]
[object]$MkvObject
) {
[System.Collections.ArrayList]$results = New-Object System.Collections.ArrayList
foreach ($track in (Get-MkvTracks -MkvObject $MkvObject -TrackType "*") ) {
if (($track.codec -like "*AdvancedSub*")){
$ignored = $results.Add($track)
}
View startkde
#!/bin/sh
#
# DEFAULT KDE STARTUP SCRIPT ( 4.11.19 )
#
if test "x$1" = x--failsafe; then
KDE_FAILSAFE=1 # General failsafe flag
KWIN_COMPOSE=N # Disable KWin's compositing
export KWIN_COMPOSE KDE_FAILSAFE
fi
@Charlweed
Charlweed / gist:8c86eb449f401e65d943
Last active Aug 29, 2015
Clover config.plist trying to boot hackintosh_00_yosemite
View gist:8c86eb449f401e65d943
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@Charlweed
Charlweed / gist:3f14c96d2b411e63c298
Created Mar 24, 2015
Clover debug.log showing not reading HFSPlus filesystems.
View gist:3f14c96d2b411e63c298
0:100 0:100 MemLog inited, TSC freq: 3299915089
0:100 0:000
0:100 0:000 Now is 24.3.2015, 9:40:49 (GMT+2047)
0:100 0:000 Starting Clover rev 3193 on American Megatrends EFI
0:100 0:000 SelfDevicePath=PciRoot(0x0)\Pci(0x1C,0x2)\Pci(0x0,0x0)\Pci(0x7,0x0)\Pci(0x0,0x0)\Sata(0x0,0xFFFF,0x0)\HD(1,GPT,90BE8264-C49D-47B7-99B9-E56CF71568B5,0x28,0x64000) @A024C018
0:100 0:000 SelfDirPath = \EFI\BOOT
0:100 0:000 Total Memory Slots Count = 8
0:100 0:000 Type 17 Index = 0
0:100 0:000 SmbiosTable.Type17->Speed = 2133MHz
0:100 0:000 SmbiosTable.Type17->Size = 4096MB
@Charlweed
Charlweed / gist:d70722728bc5e972f767
Created Nov 25, 2014
curl.exe -v -H "Connection: Keep-Alive" -H "Accept-Encoding: gzip,deflate" -A "Gradle/2.0 (Windows 7;6.1;amd64) (Oracle Corporation;1.7.0_67;24.65-b04)" http://repo1.maven.org/maven2/net/minecraftforge/gradle/ForgeGradle/1.2-SNAPSHOT/ForgeGradle-1.2-SNAPSHOT.jar
View gist:d70722728bc5e972f767
* Adding handle: conn: 0x1f3f660
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1f3f660) send_pipe: 1, recv_pipe: 0
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* About to connect() to repo1.maven.org port 80 (#0)
* Trying 199.27.79.209...
* Connected to repo1.maven.org (199.27.79.209) port 80 (#0)
@Charlweed
Charlweed / gist:8629c3ff73692e2fb575
Created Nov 24, 2014
Another working Linux build, on host that should have same proxy cache hits as Windows
View gist:8629c3ff73692e2fb575
11:51:10.904 [DEBUG] [org.apache.http.headers] >> Connection: Keep-Alive
11:51:10.905 [DEBUG] [org.apache.http.headers] >> User-Agent: Gradle/2.0 (Linux;3.17.3-200.fc20.x86_64;amd64) (Oracle Corporation;1.7.0_71;24.65-b04)
11:51:10.921 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 200 OK
11:51:10.921 [DEBUG] [org.apache.http.headers] << HTTP/1.1 200 OK
11:51:10.922 [DEBUG] [org.apache.http.headers] << Content-Type: binary/octet-stream
11:51:10.922 [DEBUG] [org.apache.http.headers] << Content-Length: 4831
11:51:10.922 [DEBUG] [org.apache.http.headers] << Connection: keep-alive
11:51:10.922 [DEBUG] [org.apache.http.headers] << Date: Sun, 16 Nov 2014 23:49:15 GMT
11:51:10.922 [DEBUG] [org.apache.http.headers] << Last-Modified: Tue, 26 Nov 2013 15:59:34 GMT
11:51:10.922 [DEBUG] [org.apache.http.headers] << ETag: "5e175f2b708c1bdcca369b16952b4315"
@Charlweed
Charlweed / gist:60f03c2888eac82fb9e3
Created Nov 23, 2014
Same build on Linux, works at expected speed. (Starts around same place, does not match up perfectly)
View gist:60f03c2888eac82fb9e3
11:30:49.339 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Visiting dependency org.spongepowered:Sponge:1.8-FML8.0.5.1012-SNAPSHOT(runtime) -> net.sf.jopt-simple:jopt-simple:4.6(dependency: net.sf.jopt-simple#jopt-simple;4.6 {minecraftDeps=[default]})
11:30:49.340 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.graph.DependencyGraphBuilder] Selecting new module version net.sf.jopt-simple:jopt-simple:4.6
11:30:49.340 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainDependencyResolver] Attempting to resolve module 'net.sf.jopt-simple:jopt-simple:4.6' using repositories [forge, MavenRepo, minecraft, MavenLocal, fmlFlatRepo]
11:30:49.340 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository] Cached meta-data for missing module is expired: will perform fresh resolve of 'net.sf.jopt-simple:jopt-simple:4.6' in 'forge'
11:30:49.340 [DEBUG] [org.gradle.api.internal.artifact
@Charlweed
Charlweed / Gradle on Windows slow build
Created Nov 22, 2014
Gradle 2.2 on Windows showing 2 minute delay at each request.
View Gradle on Windows slow build
18:29:15.187 [DEBUG] [org.apache.http.headers] << Connection: keep-alive
18:29:15.187 [DEBUG] [org.apache.http.impl.client.SystemDefaultHttpClient] Connection can be kept alive indefinitely
18:29:15.187 [DEBUG] [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection [id: 13][route: {}->http://repo1.maven.org] can be kept alive indefinitely
18:29:15.187 [DEBUG] [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection released: [id: 13][route: {}->http://repo1.maven.org][total kept alive: 1; route allocated: 1 of 5; total allocated: 1 of 10]
18:29:15.203 [DEBUG] [org.gradle.internal.resource.transport.http.HttpClientHelper] Performing HTTP GET: http://repo1.maven.org/maven2/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar.sha1
18:29:15.203 [DEBUG] [org.apache.http.impl.conn.PoolingClientConnectionManager] Connection request: [route: {}->http://repo1.maven.org][total kept alive: 1; route allocated: 1 of 5; total allocated: 1 of 10]
18:29:15.203 [DEBUG] [org.apache.http.impl.conn.
View sponge_failing_pc_build
(L:\sdk\firefox_addon_sdk) L:\projects\3rd_party\Sponge>gradle --debug setupDecompWorkspace
11:04:42.534 [INFO] [org.gradle.BuildLogger] Starting Build
11:04:42.544 [DEBUG] [org.gradle.BuildLogger] Gradle user home: C:\Users\chymes.HYMESRUZICKA\.gradle
11:04:42.544 [DEBUG] [org.gradle.BuildLogger] Current dir: L:\projects\3rd_party\Sponge
11:04:42.544 [DEBUG] [org.gradle.BuildLogger] Settings file: null
11:04:42.544 [DEBUG] [org.gradle.BuildLogger] Build file: null
11:04:42.564 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Starting to build the build sources.
11:04:42.584 [DEBUG] [org.gradle.initialization.buildsrc.BuildSourceBuilder] Gradle source dir does not exist. We leave.
11:04:42.594 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found env project properties: []
11:04:42.604 [DEBUG] [org.gradle.initialization.DefaultGradlePropertiesLoader] Found system project properties: []