This file contains hidden or 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
jdboyd@jdb-z440:~/tmp/processing4$ ./gradlew packageSnap | |
> Task :java:preprocessor:ant-preproc | |
warning(109): /home/jdboyd/tmp/processing4/java/src/processing/mode/java/preproc/JavaParser.g4:47:0: options ignored in imported grammar JavaParser | |
> Task :app:includeJdk FAILED | |
[Incubating] Problems report is available at: file:///home/jdboyd/tmp/processing4/.build/reports/problems/problems-report.html | |
FAILURE: Build failed with an exception. |
This file contains hidden or 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
scp -J gw:port user@internal:/path/to/source/file /local/destination/path |
This file contains hidden or 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
Invoke-WebRequest $myDownloadUrl -OutFile .\file.ext |
This file contains hidden or 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
Get-ChildItem -Path . -Recurse -File | Select-String -Pattern "YourSearchString" | Format-Table Path,LineNumber,Line -AutoSize |
This file contains hidden or 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
# Example usage: | |
# . .\UpdateJpegCreationTimes.ps1 | |
# Update-JpegCreationTimes -FolderPath "C:\Photos" -Recursive -WhatIf | |
# Remove -WhatIf to actually make the changes | |
function Convert-StringToDateTime { | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$DateTimeString | |
) |
This file contains hidden or 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
jsonObjURL := 'https://api.github.com/repos/squeak-smalltalk/squeak.org/languages'. | |
respObj := WebClient httpGet: jsonObjURL. | |
respObj content. '{"TeX":261905,"SCSS":226665,"HTML":20292,"JavaScript":2738,"Ruby":2607}' . | |
respCont := respObj content. | |
jO := Json readFrom: (ReadStream on: respCont). | |
jO at: 'SCSS'. |
This file contains hidden or 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
# must run as admin | |
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversion /t REG_DWORD /d 1 | |
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v TargetReleaseversionInfo /t REG_SZ /d 22H2 | |
gpupdate /force |
This file contains hidden or 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
$params = @{"@type"="login"; | |
"username"="[email protected]"; | |
"password"="yyy"; | |
} | |
Invoke-WebRequest -Uri http://foobar.com/endpoint -Method POST -Body $params | |
Invoke-WebRequest -Uri http://foobar.com/endpoint -Method POST -Body ($params|ConvertTo-Json) -ContentType "application/json" |
This file contains hidden or 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
import ( | |
"os" | |
"os/signal" | |
) | |
func setupExitHandler() { | |
c := make(chan os.Signal, 1) | |
signal.Notify(c, os.Interrupt) | |
go func() { | |
<-c |
This file contains hidden or 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
make_ssid.sh goes in /etc/hostapd/ | |
The service file goes in /etc/systemd/system/ |
NewerOlder