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
| package main | |
| // source: http://www.golangprograms.com/golang-package-examples/get-current-date-and-time-in-various-format-in-golang.html | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
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
| -------------------------------------------------------------------------------- | |
| # Auth: Yohanes Bandung Bondowoso, Mario Kozjak | |
| # dCre: 2021-07-11 20:18 | |
| # dMod: 2023-08-19 15:51 | |
| # Appl: System Events, PIPAgent, Safari | |
| # Task: Toggle Picture in Picture (PiP) on and off | |
| # Libs: None | |
| # Osax: None | |
| # Aojc: True | |
| # Tags: @Applescript, @Script, @System_Events, @PictureInPicture, @PiP, @Safari |
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
| /* ~/Library/KeyBindings/DefaultKeyBinding.Dict | |
| This file remaps the key bindings of a single user on Mac OS X 10.5 to more | |
| closely match default behavior on Windows systems. This makes the Command key | |
| behave like Windows Control key. To use Control instead of Command, either swap | |
| Control and Command in Apple->System Preferences->Keyboard->Modifier Keys... | |
| or replace @ with ^ in this file. | |
| Here is a rough cheatsheet for syntax. | |
| Key Modifiers |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config to:
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
| 2020-04-16 10:47:29 +0000 UTC info: Running Mender version 2.2.0 | |
| 2020-04-16 10:47:29 +0000 UTC debug: handle update fetch state | |
| 2020-04-16 10:47:29 +0000 UTC debug: status reported, response 204 No Content | |
| 2020-04-16 10:47:30 +0000 UTC debug: Received fetch update response &{200 OK 200 HTTP/1.1 1 1 map[Last-Modified:[Thu, 16 Apr 2020 10:46:13 GMT] Accept-Ranges:[bytes] X-Amz-Id-2:[0g+34W7mTK0aEoD75Md0hqffNmfE/GHria7N4LBG3yAHn384JD4qv4dmRxZL8H2K3cntVuWzMww=] X-Amz-Request-Id:[693EE3AA81C2C818] Date:[Thu, 16 Apr 2020 10:47:30 GMT] Content-Length:[645017600] Server:[AmazonS3] Etag:["cc35966358d983004cdaa46a914a8cad"] X-Amz-Tagging-Count:[1] Content-Type:[application/vnd.mender-artifact]] 0x26f5420 645017600 [] false false map[] 0x2508600 0x2846060}+ | |
| 2020-04-16 10:47:30 +0000 UTC info: State transition: update-fetch [Download_Enter] -> update-store [Download_Enter] | |
| 2020-04-16 10:47:30 +0000 UTC debug: handle update install state | |
| 2020-04-16 10:47:30 +0000 UTC debug: status reported, response 204 No Content | |
| 2020-04 |
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
| curl -d '{"hiddenListingIds":[],"schoolPolygons":{},"searchQuery":{"@type":"query.listing","ui-settings":{"sorting":{},"filters":{"YEAR_BUILT":{"max":null,"min":null},"SHOW_HIDDEN_HOMES":false,"HAS_PARKING":false,"IS_NEW_CONSTRUCTION":false,"FOR_SALE":true,"SHORT_SALE":false,"KEYWORDS":[],"AREA_PROPERTY_LARGE":{"min":null,"max":null},"LOT_SIZE_IN_ACRES":0,"PRICE_SALE":{"min":null,"max":null},"OPENHOME":false,"AREA_HOME":{"min":null,"max":null},"BEDROOMS":null,"COMING_SOON":false,"PRICE_REDUCED":false,"PROPERTY_SUBTYPE":[],"ACTIVE":false,"PENDING":false,"RECENTLY_SOLD":false,"BATHROOMS":null,"FORECLOSURES":false,"AREA_PROPERTY_SMALL":{"min":null,"max":null}},"map":{},"search":{"data":{"cityId":"REG-6582273003562340352-2","city":"Austin","state":"TX"},"type":"city"}},"listing":{"sorting":[{"LISTING_UPDATE_DATE":"DESC"}],"flags":{"clustersZoomLevel":4},"selector":{"filter":{"facet":{"$elemMatch":{"STATE":{"$eq":"TX"},"CITY":{"$eq":"Austin"}}},"$and":[{"$or":[{"$and":[{"facet":{"$elemMatch":{"LISTING_CATEGORY_ID" |
(NB: adapted from this Ask Ubuntu thread -- tested to work with Ubuntu 16 LTS branches and Ubuntu 17.10)
Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.
Install open-vm-tools and run:
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
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
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |
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
| #!/bin/sh | |
| # | |
| # This simple shell script is a Git hook that will automatically | |
| # update all submodules any time you perform a merge or pull. | |
| # This can be useful because you can do things like... | |
| # | |
| # $ git checkout master && git pull | |
| # | |
| # ...without having to remember to potentially update any | |
| # submodules in the repository. |
NewerOlder