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 os | |
from jupyter_client import kernelspec | |
kernel_name = '<kernel_name>' | |
spec = kernelspec.get_kernel_spec(kernel_name) | |
print(spec.resource_dir) | |
json_name = 'kernel.json' | |
full_path = os.path.join(spec.resource_dir, json_name) |
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
// C++ includes used for precompiling -*- C++ -*- | |
// Copyright (C) 2003-2013 Free Software Foundation, Inc. | |
// | |
// This file is part of the GNU ISO C++ Library. This library is free | |
// software; you can redistribute it and/or modify it under the | |
// terms of the GNU General Public License as published by the | |
// Free Software Foundation; either version 3, or (at your option) | |
// any later version. |
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
#!/usr/bin/env python3 | |
# Copyright (c) 2017 Anki, Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License in the file LICENSE.txt or at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
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
Resolved with: | |
sudo apt-get clean | |
sudo apt-get update | |
sudo apt-get install --reinstall python-minimal python-lockfile | |
(Reading database ... 31238 files and directories currently installed.) | |
Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.25 (using .../libssl1.0.0_1.0.1-4ubuntu5.27_i386.deb) ... | |
Unpacking replacement libssl1.0.0 ... | |
Setting up libssl1.0.0 (1.0.1-4ubuntu5.27) ... | |
Processing triggers for libc-bin ... |
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
sed "/^[[:space:]]*$/d" orig.txt > target.txt |
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
Edit .gitolite.rc and set | |
$REPO_UMASK = 0027; |