-
Install mono
brew install mono
-
Install Paket
https://fsprojects.github.io/Paket/installation.html
git clone git@github.com:fsprojects/Paket.git
I hereby claim:
- I am jhinds on github.
- I am jhinds (https://keybase.io/jhinds) on keybase.
- I have a public key ASBG5IAKzHtSJQ-7xH0A2E4mUDwse3EQMZsyBgj16PED6go
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
{{- define "ckan.ini" -}} | |
# | |
# CKAN - Pylons configuration | |
# | |
# These are some of the configuration options available for your CKAN | |
# instance. Check the documentation in 'doc/configuration.rst' or at the | |
# following URL for a description of what they do and the full list of | |
# available options: | |
# | |
# http://docs.ckan.org/en/latest/maintaining/configuration.html |
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
{{- define "ckan-extensions" -}} | |
{{ if .Values.extensions.stats }} | |
stats | |
{{ end }} | |
{{ if .Values.extensions.text_view }} | |
text_view | |
{{ end }} | |
{{ if .Values.extensions.image_view }} | |
image_view | |
{{ end }} |
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
List all DB connections | |
```sql | |
select * | |
from pg_stat_activity | |
where datname = 'ckan_modestoca' | |
``` |
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/rq/worker.py", line 588, in perform_job
rv = job.perform()
File "/usr/local/lib/python2.7/dist-packages/rq/job.py", line 498, in perform
self._result = self.func(*self.args, **self.kwargs)
File "/src/ckanext-xloader/ckanext/xloader/jobs.py", line 81, in xloader_data_into_datastore
job_id, traceback.format_tb(sys.exc_traceback)[-1] + repr(e))
File "/src/ckanext-xloader/ckanext/xloader/db.py", line 363, in mark_job_as_errored
_update_job(job_id, update_dict)
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 | |
# file that needs to be split | |
filename="big_file.csv" | |
# directory for split files | |
split_dir="splits" | |
# string to prepend files | |
split_prepend="small_file-" | |
# get the header from the first file |
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
from optparse import make_option | |
from django.core.management.commands.loaddata import Command as LoadDataCommand | |
class Command(LoadDataCommand): | |
option_list = LoadDataCommand.option_list + ( | |
make_option('-e', '--exclude', action='append', | |
help='Exclude given fixture/s from being loaded'), | |
) |
NewerOlder