Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.
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
1. resend all rides to your email throught app (manual clicking but not so bad) | |
2. in gmail, go to settings and disable conversation mode view | |
3. select all emails from bold and right click to send as attachement | |
4. send this email to yourself | |
5. download all attachements | |
6. (optinal) revert settings in step 2. | |
download invoices using bash: | |
for f in * ; do | |
URL=`grep -roh "$f" -e 'https:\/\/invoice.taxify.eu\/[^"]*'` |
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
#!/bin/bash | |
# | |
# The reason of creating this script is that Endpoint Security VPN installs it's own application firewall kext cpfw.kext | |
# which prevents for example PPTP connections from this computer, which is not appropriate if you need subj connection just | |
# from time to time | |
# Usage: checkpoint.sh load|unload | |
# You will need sudo power, of course | |
# | |
if [ $1 == "unload" ] |
At DICOM Grid, we recently made the decision to use Haskell for some of our newer projects, mostly small, independent web services. This isn't the first time I've had the opportunity to use Haskell at work - I had previously used Haskell to write tools to automate some processes like generation of documentation for TypeScript code - but this is the first time we will be deploying Haskell code into production.
Over the past few months, I have been working on two Haskell services:
- A reimplementation of an existing socket.io service, previously written for NodeJS using TypeScript.
- A new service, which would interact with third-party components using standard data formats from the medical industry.
I will write here mostly about the first project, since it is a self-contained project which provides a good example of the power of Haskell. Moreover, the proces
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
//Import ESCO using CSV files | |
create index ON :Occupation(ISCOGroup); | |
create index ON :Occupation(altLabels); | |
create index ON :Skill(altLabels); | |
create index ON :ISCOGroup(code); | |
create index ON :Skill(conceptUri); | |
create index ON :ISCOGroup(conceptUri); | |
create index ON :Occupation(conceptUri); | |
create index ON :Occupation(preferredLabel); | |
create index ON :Skill(preferredLabel); |
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
<? | |
// this script receives a Stripe dispute / chargeback and: | |
// | |
// - immediately refunds the payment | |
// - closes the user's account (in my DB, add your own code there) | |
// | |
// this is to automate dispute handling (because you never win a dispute on Stripe anyway) | |
// and by refunding avoiding the chargeback fee | |
// |