afasfdaf
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
FROM nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 | |
RUN mv /etc/apt/sources.list.d /etc/apt/_sources.list.d \ | |
&& apt update \ | |
&& apt install -y --no-install-recommends curl \ | |
&& apt-key del 7fa2af80 \ | |
&& curl -O https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb \ | |
&& dpkg -i cuda-keyring_1.0-1_all.deb \ | |
&& mv /etc/apt/_sources.list.d /etc/apt/sources.list.d |
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
# based on https://www.takapy.work/entry/2019/07/15/121436 | |
import os | |
import re | |
import json | |
import urllib.request | |
import datetime | |
def parse_xml(data, tag): | |
pattern = "<" + tag + ">([\s\S]*?)<\/" + tag + ">" |
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
@font-face { | |
font-family: "MS Pゴシック"; | |
src: local("剣暎ゴシックP"); | |
} | |
@font-face { | |
font-family: "MS ゴシック"; | |
src: local("剣暎ゴシックP"); | |
} | |
@font-face { | |
font-family: "メイリオ"; |
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
Section "InputClass" | |
MatchIsTouchpad "on" | |
Identifier "Touchpads" | |
Driver "mtrack" | |
# Acceleration and Sensitivity | |
Option "AccelerationProfile" "2" | |
Option "ConstantDeceleration" "2.4" | |
Option "Sensitivity" "1.35" |
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 -eu | |
# Prerequisites: helm-client, kubeseal, yq, GNU grep, and GNU sed | |
# $1: chart | |
# $2: values file | |
# $3: chart name | |
cat << EOF > $1/templates/secret.yaml | |
apiVersion: v1 |
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
{ | |
"editor.minimap.enabled": false, | |
"window.title": "${dirty}${rootName}${separator}${appName} / ${activeEditorLong}", | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Karen, Menlo, Monaco, 'Courier New', monospace", | |
"window.zoomLevel": 0, | |
"go.testFlags": [ | |
"-v" | |
], | |
"breadcrumbs.enabled": true, |
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
# Not work, because of https://github.com/kubernetes/kubernetes/issues/20352 | |
for label in ${labels//,/ }; do | |
if [ "${query}" != '' ]; then | |
query="${query} &&" | |
fi | |
query=${query}@.spec.selector.${label//=/\=\=\"}\" | |
done | |
$KUBECTL get rs --no-headers=true -o=jsonpath="{.items[?(${query})].metadata.name}" | xargs | |
# Use jq |
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
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
imapkey, | |
getClickableElements, | |
vmapkey, | |
map, | |
unmap, | |
iunmap, |
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
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* tabs to bottom */ | |
#browser-panel { /* Deprecated since FF 59 */ | |
-moz-box-direction: reverse; | |
padding: 0 !important; | |
} | |
#navigator-toolbox { | |
-moz-box-ordinal-group: 2; |
NewerOlder