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 python | |
''' | |
Steps: | |
1. Create any milestones | |
2. Create any labels | |
3. Create each issue, linking them to milestones and labels | |
3.1: Update status for new issue if closed | |
4: Create all the comments for each issue | |
''' | |
import getpass |
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 python | |
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
""" | |
import csv | |
import requests | |
import json |
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
<!doctype html> | |
<title>dynamic</title> | |
<button onclick="addGeneratedForms()">addGeneratedForms</button> | |
<script> | |
function addGeneratedForms(){ | |
var div = document.createElement('div'); | |
div.innerHTML = '<form class="login" method="post" action="login">\ | |
<input type="text" name="username">\ | |
<input type="password" name="password">\ | |
<button type="submit">login</button> stay on this page but update the url with pushState\ |
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
/** | |
* Read evolution files from the application environment. | |
*/ | |
@Singleton | |
class EvolutionsReader @Inject() (environment: Environment) { | |
/** | |
* Read the application evolutions. | |
* | |
* @param db the database 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
CULTURE SPEC.CULTURE ENGLISH NAME | |
-------------------------------------------------------------- | |
Invariant Language (Invariant Country) | |
af af-ZA Afrikaans | |
af-ZA af-ZA Afrikaans (South Africa) | |
ar ar-SA Arabic | |
ar-AE ar-AE Arabic (U.A.E.) | |
ar-BH ar-BH Arabic (Bahrain) | |
ar-DZ ar-DZ Arabic (Algeria) | |
ar-EG ar-EG Arabic (Egypt) |
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
package modules | |
import java.io.{FileInputStream, InputStream} | |
import javax.inject.{Inject, Provider, Singleton} | |
import play.api.db.DBApi | |
import play.api.{Configuration, Environment} | |
//import play.Environment | |
import play.api.db.evolutions._ | |
import play.api.inject.{Injector, Module} |
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
n:version:4 | |
n:network-ike-port:500 | |
n:network-mtu-size:1380 | |
n:client-addr-auto:1 | |
n:network-natt-port:4500 | |
n:network-natt-rate:15 | |
n:network-frag-size:540 | |
n:network-dpd-enable:1 | |
n:client-banner-enable:1 | |
n:network-notify-enable:1 |
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
Exception in thread "main" com.google.common.util.concurrent.UncheckedExecutionException: java.lang.IllegalArgumentException | |
at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2218) | |
at com.google.common.cache.LocalCache.get(LocalCache.java:4147) | |
at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4151) | |
at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5140) | |
at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5146) | |
at com.google.inject.internal.util.StackTraceElements.forMember(StackTraceElements.java:70) | |
at com.google.inject.internal.Errors.formatSource(Errors.java:817) | |
at com.google.inject.internal.Errors.formatSource(Errors.java:796) | |
at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:849) |
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
apt-get install msmtp ca-certificates | |
vim /etc/msmtprc | |
# Set defaults. | |
defaults | |
# Enable or disable TLS/SSL encryption. | |
tls on | |
tls_starttls on | |
tls_trust_file /etc/ssl/certs/ca-certificates.crt |
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 https://pastebin.com/QY2TQ1dq | |
# More details about the mirrors: https://launchpad.net/ubuntu/+archivemirrors | |
# Run this in bash | |
for mirror in $(wget -O - https://launchpad.net/ubuntu/+archivemirrors | grep '>http</a>' | cut -d '"' -f 2); do https_mirror=https${mirror#http}; wget --timeout 2 --tries=1 "$https_mirror" && echo "$https_mirror" >> https_mirrors; done | |
# Checkout the created file https_mirrors | |
https://mirror.aarnet.edu.au/pub/ubuntu/archive/ | |
https://mirror.tcc.wa.edu.au/ubuntu/ | |
https://mirror.reismil.ch/ubuntu/ |
OlderNewer