EDIT: check out fix-python instead, make Python run "as usual" on NixOS!
- You are using NixOS
- You start working on a Python project
- You manage the dependencies in a classic Python virtual environment using pip or poetry
EDIT: check out fix-python instead, make Python run "as usual" on NixOS!
{ | |
systemd: { | |
network: { | |
netdevs: ( | |
.network.ethernets | with_entries(.value |= { | |
netdevConfig: {Name: ."set-name"}, | |
matchConfig: {MACAddress: .match.macaddress} | |
}) | |
) | |
} |
(use-package edit-indirect) | |
(defun edit-indirect-rst-set-mode (_parent _beg _end) | |
(rst-mode)) | |
(setq edit-indirect-guess-mode-function #'edit-indirect-rst-set-mode) | |
(defun edit-indirect-rst-remove-spaces() | |
(save-excursion | |
(beginning-of-buffer) |
self: super: | |
{ | |
# Install overlay: | |
# $ mkdir -p ~/.config/nixpkgs/overlays | |
# $ curl https://gist.githubusercontent.com/LnL7/570349866bb69467d0caf5cb175faa74/raw/3f3d53fe8e8713ee321ee894ecf76edbcb0b3711/lnl-overlay.nix -o ~/.config/nixpkgs/overlays/lnl.nix | |
userPackages = super.userPackages or {} // { | |
# Example: | |
hello = self.hello; |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
#!/bin/bash | |
if [ ! -f /usr/bin/uidmapshift ]; then | |
wget https://bazaar.launchpad.net/~serge-hallyn/+junk/nsexec/download/head:/uidmapshift.c-20121030152620-2zy9rkac9y6htoia-8/uidmapshift.c | |
gcc -o uidmapshift uidmapshift.c | |
sudo mv uidmapshift /usr/bin/uidmapshift | |
rm -f uidmapshift.c | |
fi | |
uid=$(grep $USER /etc/subuid | cut -d : -f 2) |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
jQuery.sap.require("sap.ui.model.json.JSONModel"); | |
sap.ui.model.json.JSONModel.extend("myJSONModel", { | |
//declare our new method including two new parameters fnSuccess and fnError, our callback functions | |
loadDataNew: function(sURL, fnSuccess, fnError, oParameters, bAsync, sType, bMerge, bCache){ | |
var that = this; | |
if (bAsync !== false) { |