// Your player object
let me = game.getMyPlayer()
// Your player id
let id = Object.entries(game.players).filter( ([id,o]) => o.name == game.getMyPlayer().name)[0][0]
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
helm install nfs-subdir-external-provisioner nfs-subdir-external-provisioner/nfs-subdir-external-provisioner \ | |
--set nfs.server=192.168.1.2 \ | |
--set nfs.path=/kube-storage \ | |
--set storageClass.name=nfs \ | |
--set storageClass.defaultClass=true \ | |
--set storageClass.provisionerName=nfs-nux-provisioner \ | |
--set nfs.volumeName=nfs-nux \ | |
--set nodeSelector."kubernetes\\.io/hostname"=kube-nux |
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 input list: pacmd list-sources | |
# Get output list: pacmd list-sinks | |
load-module module-null-sink sink_name=michrophone sink_properties=device.description=michrophone | |
load-module module-loopback source=alsa_input.pci-0000_00_1f.3.analog-stereo sink=michrophone latency_msec=1 | |
load-module module-combine-sink sink_name=combined sink_properties=device.description=combined slaves=michrophone,alsa_output.usb-1130_USB_AUDIO-00.analog-stereo |
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
(function(){ | |
var _ = $('\x74\x64\x2e\x64\x74\x72\x2d\x63\x6f\x6e\x74\x72\x6f\x6c') | |
_ = _ && _.filter((i, v) => v.innerHTML.match(/\x4d\x6f\x63\x68\x61\x6d\x61\x64\x20\x41\x72\x69\x66\x69\x6e/)) | |
.parent().find('\x62\x75\x74\x74\x6f\x6e') | |
_ && _.on('\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72', function () { | |
$(this)['\x63\x73\x73']({ | |
'\x70\x6f\x73\x69\x74\x69\x6f\x6e': '\x61\x62\x73\x6f\x6c\x75\x74\x65', | |
'\x74\x6f\x70': (Math.random() * (23 + 77)) + '\x25', | |
'\x6c\x65\x66\x74': (Math.random() * (23 + 77)) + '\x25' | |
}); |
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/bash | |
DELAY=0.3 | |
STEP=0 | |
ART_CHARS="—\\—//" | |
while true; do | |
IDX=$(( $STEP % 4 )) | |
CHAR=${ART_CHARS:$IDX:1} | |
echo -e -n "\r" | |
printf "$CHAR %.0s" {1..50} | |
STEP=$(( $STEP + 1 )) |
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
# Enable testing community repo | |
apk install containerd kubeadm kubectl cni-plugins | |
service machine-id start | |
rc-update add machine-id boot | |
kubeadm init --pod-network-cidr=10.244.0.0/16 --control-plane-endpoint=kubemaster.local | |
# I use Alpine v3.15, need downgrade cni-plugins on v3.14 that have /usr/libexec/flannel | |
apk add cni-plugins=0.9.1-r2 |
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": "wordpress-typescript-sample", | |
"version": "1.0.0", | |
"main": "build/index.js", | |
"scripts": { | |
"start": "wp-scripts start" | |
}, | |
"dependencies": { | |
"@wordpress/blocks": "^11.1.2" | |
}, |
I experienced force close when animating desing on proteus 8.11 or 8.12.
The fix is simple but weird. When installing proteus, use 'Custom Install', make Library/Data path same as Location of the program install location.
I also block proteus host:
127.0.0.1 secure.labcenter.co.uk
127.0.0.1 secure.labcenter.com
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
rem Open VPN Connection Properties -> Network -> Ipv4 -> Advanced -> [Uncheck] Use default gateway | |
rem Create Basic Task Scheduler on specific Event Log to run this cmd | |
rem Network Profile Operational, NetworkProfiile, eventID:10001 or 10000 (cek on Even viewer to make sure) | |
route ADD 192.168.4.0 MASK 255.255.255.0 192.168.5.1 |
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
version: "3" | |
services: | |
gitlab: | |
image: 'gitlab/gitlab-ce:latest' | |
restart: unless-stopped | |
container_name: gitlab | |
environment: | |
GITLAB_OMNIBUS_CONFIG: | | |
external_url 'http://gitlab.local' | |
puma['worker_processes'] = 2 |