- Download the installer .dmg files. They contain the good stuff.
- Mount the .dmg and copy the .pkg file to somewhere
- Open a terminal and cd to the folder you copied the .pkg file into pkgutil --expand JDK\ 7\ Update\ 60.pkg JDK7u60 - extract pkg file to folder
- cd JDK7u60/ - move to the extracted pkg
- cd jdk17060.pkg/ - there's a folder with the version number ending with .pkg (but it's just a folder), go there
- Unpack Payload using Archive Utility (use "Open with" in finder), it's located at /System/Library/CoreServices/Applications
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
use std::thread::sleep; | |
use std::time::Duration; | |
use legion::*; | |
#[derive(Clone, Copy, Debug, PartialEq)] | |
struct Countdown { | |
value: i32, | |
} |
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 size of topics | |
./kafka-log-dirs.sh --describe --bootstrap-server "" |
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
# power options http://apple.stackexchange.com/a/127650 | |
# hibernate after one hour of sleep on battery power | |
sudo pmset -a standbydelay 3600 | |
sudo pmset -a hibernatemode 25 |
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
# SSH | |
ssh ec2-user@<dns name> | |
#update and install docker | |
sudo yum update -y && sudo yum install -y docker && sudo service docker start && sudo usermod -a -G docker ec2-user |
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
class UsingPrimaryConstructorAndInit(val constructor_parameter: String) { | |
private val initialized_by_class: String | |
init { | |
this.initialized_by_class = "asdasd" | |
} | |
} | |
class UsingSecondaryConstructor { | |
private val constructor_parameter: String |
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
docker save <image name> | ssh user@host 'docker load' | |
docker images | egrep "^<none>" | nawk '{ print $3 } ' | xargs docker rmi | |
docker system prune | |
# more: https://www.heavymetalcoder.com/shrink-your-virtual-hard-drive-file-in-docker-for-macos/ | |
docker volume rm $(docker volume ls -qf dangling=true) | |
## OSX remove VM Disk since it doesn't auto-shrink | |
``` |
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
{ | |
"name": "myBucket", | |
"bucketType": "membase", | |
"authType": "sasl", | |
"saslPassword": "myBucketPassword", | |
"proxyPort": 0, | |
"replicaIndex": true, | |
"uri": "/pools/default/buckets/ges?bucket_uuid=ddbd543c584881b46e92e02cc36ee727", | |
"streamingUri": "/pools/default/bucketsStreaming/ges?bucket_uuid=ddbd543c584881b46e92e02cc36ee727", | |
"localRandomKeyUri": "/pools/default/buckets/ges/localRandomKey", |
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
### Begin GUI options ### | |
item_db_source=local/bcpapi/wowhead | |
target_error=0 | |
iterations=100 | |
default_world_lag=0.1 | |
max_time=300 | |
vary_combat_length=0.2 | |
fight_style=Patchwerk | |
tmi_window_global=6 | |
target_level+=3 |
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
25 pacman -Rsn flashplugin | |
26 sudo pacman -Rsn flashplugin | |
29 sudo pacman -Rsn gimp | |
33 sudo pacman -Rsn libreoffice-still | |
36 sudo pacman -Rsn viewnior | |
40 sudo pacman -Rsn pidgin | |
43 sudo pacman -Rsn firefox-gtk2 | |
48 sudo pacman -Rsn hexchat | |
51 sudo pacman -Rsn thunderbird | |
57 sudo pacman -Rsn guayadeque |
NewerOlder