Skip to content

Instantly share code, notes, and snippets.

View asconix's full-sized avatar

Christoph Pilka asconix

  • Asconix Systems AS
  • Oslo, Norway
View GitHub Profile
@asconix
asconix / Moving_gpg_keys.txt
Created November 25, 2021 12:16 — forked from chrisswanda/Moving_gpg_keys.txt
Moving GPG keys to new machine
Mac and Linux work the same, storing the keys in ~/.gnupg. The safest way to transfer the files is using scp (part of ssh):
To copy from your local machine to another:
scp -rp ~/.gnupg othermachine:
To copy from a remote machine to your local:
scp -r othermachine:~/.gnupg ~
If you're on the machine that already has the key:
@asconix
asconix / nix-on-macos-catalina.md
Created August 19, 2021 13:01 — forked from chriselsner/nix-on-macos-catalina.md
Nix on macOS Catalina

Nix on macOS Catalina

I'm writing this gist for my own records but it might help someone else too.

Installing Nix

Support for Catalina has improved a lot since the update was first rolled out.

Note: See the NixOS manual for discussion of the --darwin-use-unencrypted-nix-store-volume option.

{ pkgs }:
with pkgs; with emacsPackagesNg;
let
emacsWithPackages = (emacsPackagesNgGen emacs).emacsWithPackages;
# As the EXWM README points out, XELB should be built from source if EXWM is.
xelb = melpaBuild {
pname = "xelb";
ctp@archos ~> nix-env -iA nixos.almonds
installing 'almonds-1.25b'
these paths will be fetched (11.98 MiB download, 63.29 MiB unpacked):
/nix/store/5abwypmzy3zz6qqgzixdgz9dzacs2m9h-python3-3.7.4
/nix/store/6j2hw4d7fr84d6dnq7yjm5bdmm17qqb5-python3.7-Pillow-5.4.1
/nix/store/d02clh42g0zqhbkhyw8zwkd1xainm2v6-almonds-1.25b
/nix/store/k54w2bxrl4ws39nzyy8w0dyv2364559n-giflib-5.1.4
/nix/store/kfm35m57pxid7y7122qq5x8hzqf0w7h5-python3.7-setuptools-40.8.0
/nix/store/lm8p2y23lclhsj0r623glbqcpwchijzw-python3.7-olefile-0.46
/nix/store/mn8viqq3rya84psn478zswz5psqfg30p-lcms2-2.9
[root@archos:~]# nix-env -iA nixos.emacs
installing 'emacs-26.1'
these paths will be fetched (43.40 MiB download, 156.20 MiB unpacked):
/nix/store/1ahcyq0qm2y8ym6aifb3c6cr66i3ps59-libXmu-1.1.2
/nix/store/3747qj98ydfmiyvh9k6djg23zabsjwkr-libcroco-0.6.12
/nix/store/7gyfqf1f998xsh9w0fb65ygcrzgigrjx-libXt-1.1.5
/nix/store/91bbrsha808bzm4bivib2z062kmchb59-libXaw-1.0.13
/nix/store/j5pa9qikrvbxq2cccw0dfhpibqqdb17g-dconf-0.30.1-lib
/nix/store/n852qb4y74agni58hvhp8cdvbzms89xg-librsvg-2.44.12
/nix/store/nimvr3k240kpwsw72b3a2dvxvp5w3p07-emacs-26.1
sqlite> select * from script;
1|case "etc/pkg.conf.sample" in
/*) sample_file="etc/pkg.conf.sample" ;;
*) sample_file="/usr/local/etc/pkg.conf.sample" ;;
esac
target_file="${sample_file%.sample}"
set -- etc/pkg.conf.sample
if [ $# -eq 2 ]; then
target_file=${2}
fi
@asconix
asconix / gist-reveal.it-slides.html
Last active January 16, 2019 14:36 — forked from ryanj/gist-reveal.it-slides.html
Gist-powered Revealjs slideshow presentations http://gist-reveal.it
<section data-background-transition='zoom' data-transition='concave' data-background='https://upload.wikimedia.org/wikipedia/commons/1/11/Wikidata_Logo_TMg_Hexagon_3.svg' data-state='blackout'>
<h2>Hello Dima</h2>
<h1>This</h1>
<h2>... is the first attempt</h2>
<br/>
<h1 class='fragment grow'><a style='color:deepskyblue;' href='http://gist-reveal.it'>With gist-reveal.it</a></h1>
</section>
<section data-background-transition='zoom' data-transition='linear' id='try-it'>
<h2>It's so easy!</h2>
<p>Create your own deck by forking a copy of <a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>this github gist</a>: <br /><a href='https://gist.github.com/ryanj/af84d40e58c5c2a908dd'>https://gist.github.com/ryanj/af84d40e58c5c2a908dd</a></p>
Hi folks. I want to use deploy keys to access private repos (hosted GitLab).
This one works fine:
git clone https://my-gitlab-deploy-token-user:my-gitlab-deploy-token-pass@gitlab.com/username/projectname.git
Accessing archive.tgz fails with authentication error:
curl https://my-gitlab-deploy-token-user:my-gitlab-deploy-token-pass@gitlab.com/username/projectname/repository/archive.tar.gz
building '/nix/store/rx27qlrqq0885103vwy1fgg3f7lnq6wz-python2.7-PyJWT-1.6.4.drv'...
unpacking sources
unpacking source archive /nix/store/cbv50i6jmrlg0k24np5lr6k47nkz8bxn-PyJWT-1.6.4.tar.gz
source root is PyJWT-1.6.4
setting SOURCE_DATE_EPOCH to timestamp 1527130002 of file PyJWT-1.6.4/setup.cfg
patching sources
configuring
building
running bdist_wheel
The [wheel] section is deprecated. Use [bdist_wheel] instead.
Basic rules for Elite War and Trade
-----------------------------------
1. An organised initial attack is a good thing to aim for as Bek suggested. I think the best way to achieve this as Winky suggested, is for me to be the only one who starts war. I'll suggest a time to start and you'll need to count forward and work out if you'll be available at the start of war (after packing time of 12 hours).... we'll work out which time will have the most of us here.... which leads me to my next point.
2. In order to do this we need time to work ourselves out, I'm thinking 2 wars a week? (1 war a week has been suggested) but I'd like to try 2 for now, see how we go. One that starts friday I'd say and perhaps a Tuesday for the other...
3. Moving on to general ruleplay. Jackpots seem to be the main issue and frustration. I myself think it's a good rule if you have a jackpot to share it with someone, however this is not possible all the time obviously. I would like to make the rule that in our organised initial att