The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.
This file contains 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 pdfrw import PdfReader, PdfWriter | |
pdfdata = PdfReader("ifm.pdf") | |
pages = PdfReader("ifm.pdf").pages | |
outData = PdfWriter("ifmedit.pdf") | |
wanted = pdfdata['/Root']['/PageLabels']['/Nums'][0::2] | |
for i in wanted: | |
outData.addPage(pages[int(i)-1]) | |
outData.write() |
This file contains 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
@echo off | |
@rem throw this file in jetbrains installation folder, it takes the last created PyCharm folder (the latest ide update) for the script | |
@rem run with powershell %a% will works if the program is in C: | |
FOR /F "delims=" %%i IN ('dir /b /ad-h /t:c /od -filter "PyCharm*"') DO SET a=%%i | |
SET PyCharmPath=D:\Program Files\JetBrains\%a%\bin\PyCharm64.exe | |
echo %PyCharmPath% | |
echo Adding file entries |
In this article, I will share some of my experience on installing NVIDIA driver and CUDA on Linux OS. Here I mainly use Ubuntu as example. Comments for CentOS/Fedora are also provided as much as I can.
This file contains 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
# Dockerfile with tensorflow gpu support on python3, opencv3.3 | |
FROM tensorflow/tensorflow:latest-gpu-py3 | |
MAINTAINER Fergal Cotter <fbc23@cam.ac.uk> | |
# The code below is all based off the repos made by https://github.com/janza/ | |
# He makes great dockerfiles for opencv, I just used a different base as I need | |
# tensorflow on a gpu. | |
RUN apt-get update |
This file contains 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
Sub addTextForBooks() | |
' | |
' addTextForBooks 巨集 | |
' | |
' | |
Dim shp As Shape | |
For Each shp In ActiveDocument.Shapes | |
Dim countStr As Integer | |
Debug.Print shp.ZOrderPosition | |
shp.Select |
This file contains 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
var fs = require("fs"); | |
var crypto = require("crypto"); | |
var password = "5e4520bc02743900018e863b"; | |
//"salt" | |
var key = crypto.scryptSync(password, "salt", 24); | |
console.log(`Key ${key.toString("hex")}`); | |
var iv = crypto.randomBytes(16); // Initialization vector. | |
console.log(`iv ${iv.toString("hex")}`); |
This file contains 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
var fs = require("fs"); | |
var crypto = require("crypto"); | |
var password = "5e4520bc02743900018e863b"; | |
//"salt" | |
var key = crypto.scryptSync(password, "5e4520bc02743900018e863b", 24); | |
console.log(`Key ${key.toString("hex")}`); | |
var iv = crypto.randomBytes(16); // Initialization vector. | |
console.log(`iv ${iv.toString("hex")}`); |