Skip to content

Instantly share code, notes, and snippets.

@JureCerar
JureCerar / oproda.md
Last active Jan 24, 2020
Nvidia GPU installation on OLD computer running CentOS or RHEL
View oproda.md

Nvidia GPU installation on OLD computer running CentOS/RHEL

Prepare your CentOS/RHEL machine by updating your system, installing EPEL, installing kernel headers, and installing CUDA drivers.

Update and Reboot

Update the entire system and reboot to activate the latest kernel.

sudo yum update
sudo reboot

EPEL & DKMS

@nuochong
nuochong / ๐Ÿ“Š Weekly development breakdown
Last active Jan 24, 2020
๐Ÿ“Š Weekly development breakdown
View ๐Ÿ“Š Weekly development breakdown
Vue.js 24 hrs 44 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Šโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 42.3%
JavaScript 23 hrs 29 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 40.1%
Stylus 6 hrs 7 mins โ–ˆโ–ˆโ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 10.4%
Markdown 2 hrs 30 mins โ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 4.3%
JSON 36 mins โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 1.1%
@sumise-ryutaro
sumise-ryutaro / acc_gpu_autoscalling.sh
Last active Jan 24, 2020
acc_gpu_autoscalling.sh
View acc_gpu_autoscalling.sh
#!/bin/bash
#==============================================
# ๅ‰ๆ
#==============================================
# ใ€ๆฆ‚่ฆใ€‘
# ๅ‰ๅ›ž็ขบ่ชๆ™‚ใจ็›ด่ฟ‘ใฎbiz job waitingใ‚’ๅ–ๅพ—ใ—ใ€RancherใฎACCใ‚ฏใƒฉใ‚นใ‚ฟใƒผใซGPUใƒŽใƒผใƒ‰ใ‚’่ฟฝๅŠ ใ™ใ‚‹ๅฟ…่ฆใŒใ‚ใ‚‹ใ‹ๅˆคๆ–ญใ™ใ‚‹
# ่ฟฝๅŠ ใฎๅฟ…่ฆใŒใ‚ใ‚‹ๅ ดๅˆใฏ Rancher APIใ‚’ๅˆฉ็”จใ—ใฆ่ฟฝๅŠ ใ™ใ‚‹
@getsolaris
getsolaris / ๐Ÿ“Š Weekly development breakdown
Last active Jan 24, 2020
๐Ÿ“Š Weekly development breakdown
View ๐Ÿ“Š Weekly development breakdown
PHP 18 hrs 59 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Œ 98.0%
JavaScript 20 mins โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 1.8%
Twig 1 min โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.1%
Git Config 0 secs โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0%
CSS 0 secs โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.0%
View cloudSettings
{"lastUpload":"2020-01-24T06:23:22.402Z","extensionVersion":"v3.4.3"}
View detectBrowserType.js
function _detectBrowserType() {
window.addEventListener('load', () => {
let html = document.querySelector('html');
let isOpera =
!!window.opera || navigator.userAgent.indexOf(' OPR/') >= 0;
let isChrome = !!window.chrome && !isOpera;
let isExplorer =
typeof document !== 'undefined' &&
!!document.documentMode &&
!isEdge;
View openpanzer-save.json
{"scenario":{"name":"Student","maxTurns":24,"date":"1940-05-10T05:00:00.000Z","atmosferic":0,"latitude":2,"ground":0,"turnsPerDay":6,"dayTurn":0,"reinforcements":{"2":[{"row":19,"col":23,"unit":{"eqid":115,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":4,"facing":9,"flag":8,"destroyed":false,"player":null,"transport":null,"carrier":0,"moveLeft":3,"ammo":6,"fuel":0,"hasAnimation":false,"hits":0,"experience":60,"entrenchment":0,"entrenchTicks":0,"leader":-1},"turn":"2","id":1},{"row":23,"col":22,"unit":{"eqid":744,"id":-1,"owner":0,"hasMoved":false,"hasFired":false,"hasResupplied":false,"hasOverstrength":false,"isMounted":false,"isSurprised":false,"isDeployed":false,"isCore":false,"tempSpotted":false,"strength":8,"facing":8,"flag":8,"destroyed":false,"player":null,"transport":null,"carrier":176,"moveLeft":2,"ammo":7,"fuel":0,"hasAnimation":false,"hits":0,"expe
@montogeek
montogeek / ๐Ÿ“Š Weekly development breakdown
Last active Jan 24, 2020
๐Ÿ“Š Weekly development breakdown
View ๐Ÿ“Š Weekly development breakdown
JavaScript 15 hrs 25 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–Šโ–‘โ–‘โ–‘โ–‘ 79.8%
SCSS 1 hr 55 mins โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 9.9%
JSON 1 hr 40 mins โ–ˆโ–Šโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 8.7%
Git Config 7 mins โ–โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.7%
Other 6 mins โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 0.6%
@jonasschultheiss
jonasschultheiss / ๐Ÿ“Š Weekly development breakdown
Last active Jan 24, 2020
๐Ÿ“Š Weekly development breakdown
View ๐Ÿ“Š Weekly development breakdown
JSX 2 hrs 56 mins โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 28.4%
Markdown 1 hr 56 mins โ–ˆโ–ˆโ–ˆโ–‰โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 18.7%
Bash 1 hr 53 mins โ–ˆโ–ˆโ–ˆโ–Šโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 18.2%
Ruby 1 hr 28 mins โ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 14.3%
JavaScript 59 mins โ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘ 9.6%
You canโ€™t perform that action at this time.