These are my workflowy customisations, the intention is that when you are on workflowy.com you load the CSS with an addon like stylebot for chrome and the javascript for something like tampermonkey. I'll expand with some specific installation instructions later and maybe migrate this away from GISTS.
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
/* | |
OUTLINE FOR AN APP BUILT WITH RXJS AND REACT, USING AN ELASTICSEARCH FACETED SEARCH | |
MODULE AS AN EXAMPLE, READ FROM BOTTOM UP IF YOU WANT TO GO OUTSIDE IN, START FROM | |
TOP TO SEE HOW THE SEARCH MODULE IS COMPOSED. | |
If you find this I would love to hear some feedback - it's not designed to work without | |
any modification though, it's just supposed to outline the architecture off-the-top-of- | |
my-head-pretty-close-to-working psuedocode of something that you might actually need to | |
build to drive out if the pattern is any good! | |
*/ |
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 WEBPACK_PORT = process.env.WEBPACK_PORT || 8080; | |
new WebpackDevServer(webpack, { | |
hot: true, | |
inline: true, | |
contentBase: path.resolve(__dirname, 'dist'), | |
progress: true, | |
stats: { | |
colors: require('supports-color'), | |
chunks: false |
I hereby claim:
- I am oscarduignan on github.
- I am oscarduignan (https://keybase.io/oscarduignan) on keybase.
- I have a public key ASDe23XSQ0QeZQ7J2cA6-Ou8wRVyt-pBcUkuSnv0o7fxngo
To claim this, I am signing this object:
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
# install a program with chocolatey | |
choco install googlechrome | |
# update behaviour of file explorer | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
# remove a store-installed program | |
Get-AppxPackage *Facebook* | Remove-AppxPackage | |
# lock screen when you close your laptop rather than sleeping it |
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
{ | |
packageOverrides = pkgs: with pkgs; rec { | |
docker_compose = pkgs.docker_compose.override (oldAttrs: { | |
texttable = python.pkgs.buildPythonPackage rec { | |
name = "texttable-0.9.1"; | |
src = fetchurl { | |
url = "mirror://pypi/t/texttable/${name}.tar.gz"; | |
sha256 = "119041773ff03596b56392532f9315cb3a3116e404fd6f36e76a7dc088d95c79"; | |
}; |
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
self: super: | |
let | |
docker_compose = super.docker_compose.override (oldAttrs: { | |
texttable = super.python.pkgs.buildPythonPackage rec { | |
name = "texttable-0.9.1"; | |
src = super.fetchurl { | |
url = "mirror://pypi/t/texttable/${name}.tar.gz"; | |
sha256 = "119041773ff03596b56392532f9315cb3a3116e404fd6f36e76a7dc088d95c79"; |
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
self: super: { | |
commandbox = super.callPackage /path/to/commandbox_package {}; | |
} |
Assuming you have openvpn, fish, fzf, and fd installed
Grab the NordVPN openvpn config files and unzip them
curl -Lo ~/NordVPN/ovpn.zip --create-dirs https://downloads.nordcdn.com/configs/archives/servers/ovpn.zip
unzip ~/NordVPN/ovpn.zip
Grab the function defined in the file below
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
const NON_DIGITS_OR_SPACES = /[^0-9 ]+/g; | |
const SPACES_OTHER_THAN_SINGLE_TRAILING = / (?!$)/g; | |
// could do it in one regex but then "1234 a" will be "1234" rather than "1234 " | |
// const NON_DIGITS_EXCEPT_SINGLE_TRAILING_SPACE = /[^0-9 ]+| (?!$)/g; | |
const maskCreditCardNumber = (value) => { | |
return ( | |
value | |
.replace(NON_DIGITS_OR_SPACES, "") |
OlderNewer