This file contains hidden or 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 sh | |
| # OS settings | |
| sudo sysctl -w kern.sysv.shmmax=2147483648 | |
| sudo sysctl -w kern.sysv.shmmin=1 | |
| sudo sysctl -w kern.sysv.shmmni=64 | |
| sudo sysctl -w kern.sysv.shmseg=16 | |
| sudo sysctl -w kern.sysv.shmall=524288 | |
| sudo sysctl -w net.inet.tcp.msl=60 |
This file contains hidden or 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
| package com.enlighthq.mobile.http; | |
| import android.os.Build; | |
| import java.io.IOException; | |
| import java.util.Locale; | |
| import okhttp3.Interceptor; | |
| import okhttp3.Request; | |
| import okhttp3.Response; |
This file contains hidden or 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 | |
| mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim | |
| if [ ! -d ~/.vim/bundle/nerdtree ]; then | |
| git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree | |
| fi | |
| touch proper.vimrc |
This file contains hidden or 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/sh | |
| du -sh .git | |
| git reflog expire --expire=now --all | |
| git gc --prune=now | |
| git gc --aggressive --prune=now | |
| du -sh .git |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| /* | |
| * jqGrid - jQuery Grid | |
| * Copyright (c) 2008, Tony Tomov, [email protected] | |
| * Dual licensed under the MIT and GPL licenses | |
| * http://www.opensource.org/licenses/mit-license.php | |
| * http://www.gnu.org/licenses/gpl-2.0.html | |
| * Date:2011-12-20 | |
| * --- | |
| * jQuery-Plugin "daterangepicker.jQuery.js" | |
| * by Scott Jehl, [email protected] |
This file contains hidden or 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
| $(document).ready(function() { | |
| if (typeof ($.fn.button.noConflict) == "function") { | |
| var h = $.fn.button.noConflict(); | |
| $.fn.bootstrapBtn = h | |
| } | |
| brandTheme.prototype.fields.HOL.hl += ",HOL_TH"; | |
| brandTheme.prototype.fields.GS.hl += ",GS_TH"; | |
| brandTheme.prototype.fields.RP.hl += ",RP_TH"; | |
| brandTheme.prototype.fields.BRAND.hl += ",BRAND_TH"; | |
| brandTheme.prototype.fields.BRAND_P.hl += ",BRAND_TH"; |
This file contains hidden or 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
| /** | |
| * Script to export pixels & annotations for TMA images. | |
| * | |
| * The downsample value and coordinates are encoded in each image file name. | |
| * | |
| * The annotations are exported as 8-bit labelled images. | |
| * These labels depend upon annotation classifications; a text file giving the key is written for reference. | |
| * | |
| * The labelled image can also optionally use indexed colors to depict the colors of the | |
| * original classifications within QuPath for easier visualization & comparison. |
This file contains hidden or 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
| # extracted from http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries.zip | |
| # under public domain terms | |
| country_bounding_boxes = { | |
| 'AF': ('Afghanistan', (60.5284298033, 29.318572496, 75.1580277851, 38.4862816432)), | |
| 'AO': ('Angola', (11.6400960629, -17.9306364885, 24.0799052263, -4.43802336998)), | |
| 'AL': ('Albania', (19.3044861183, 39.624997667, 21.0200403175, 42.6882473822)), | |
| 'AE': ('United Arab Emirates', (51.5795186705, 22.4969475367, 56.3968473651, 26.055464179)), | |
| 'AR': ('Argentina', (-73.4154357571, -55.25, -53.628348965, -21.8323104794)), | |
| 'AM': ('Armenia', (43.5827458026, 38.7412014837, 46.5057198423, 41.2481285671)), |
This file contains hidden or 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
| ## Note, this file is written by cloud-init on first boot of an instance | |
| ## modifications made here will not survive a re-bundle. | |
| ## if you wish to make changes you can: | |
| ## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg | |
| ## or do the same in user-data | |
| ## b.) add sources in /etc/apt/sources.list.d | |
| ## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. |
This file contains hidden or 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
| swagger: '2.0' | |
| info: | |
| description: Skillshill API documentation | |
| version: 0.0.9 | |
| title: Skillshill API | |
| termsOfService: 'http://skillshill.com/#/terms' | |
| contact: | |
| name: Site Master | |
| url: 'http://skillshill.com/#/contact' | |
| email: [email protected] |