jenkins_url + /api/json?tree=jobs[name,color]
jenkins_url + /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
| import React, { | |
| Linking, | |
| StyleSheet, | |
| WebView, | |
| } from 'react-native'; | |
| import SomeHTMLFile from './some-html-file.html | |
| export default class WebViewExt extends React.Component { | |
| constructor() { |
| SELECT | |
| tc.constraint_name, tc.table_name, kcu.column_name, | |
| ccu.table_name AS foreign_table_name, | |
| ccu.column_name AS foreign_column_name | |
| FROM | |
| information_schema.table_constraints AS tc | |
| JOIN information_schema.key_column_usage AS kcu | |
| ON tc.constraint_name = kcu.constraint_name | |
| JOIN information_schema.constraint_column_usage AS ccu | |
| ON ccu.constraint_name = tc.constraint_name |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
| Dir.glob("#{ENV['HOME']}/Library/Application Support/Viscosity/OpenVPN/*/config.conf").each do |file| | |
| certificate_files = ['ca', 'cert', 'key', 'tls-auth'] | |
| config_dir = File.dirname(file) | |
| connection_name = nil | |
| new_config = [] | |
| File.read(file).lines.each do |line| | |
| line.strip! | |
| if line.start_with?('#viscosity name') |
| #!/usr/bin/env bash | |
| # A basic Self Signed SSL Certificate utility | |
| # by Andrea Giammarchi @WebReflection | |
| # https://www.webreflection.co.uk/blog/2015/08/08/bringing-ssl-to-your-private-network | |
| # # to make it executable and use it | |
| # $ chmod +x certificate | |
| # $ ./certificate # to read the how-to |
| .config(['$provide', function($provide) { | |
| // Minification-safe hack. | |
| var $$watchers = '$$watchers', | |
| $$nextSibling = '$$nextSibling', | |
| $$childHead = '$$childHead', | |
| $$childTail = '$$childTail', | |
| $$listeners = '$$listeners', | |
| $$listenerCount = '$$listenerCount', | |
| $id = '$id', |
| function debounce(fn, interval) { | |
| var lastCall; | |
| return function() { | |
| var now = Date.now(); | |
| if(!lastCall || now - lastCall > interval) { | |
| fn.apply(this, arguments); | |
| lastCall = now; | |
| } |
| func showNotification() -> Void { | |
| var notification = NSUserNotification() | |
| notification.title = "Test from Swift" | |
| notification.informativeText = "The body of this Swift notification" | |
| notification.soundName = NSUserNotificationDefaultSoundName | |
| NSUserNotificationCenter.defaultUserNotificationCenter().deliverNotification(notification) | |
| } | |
| //showNotification() |
| var $inj = angular.injector(['App']); | |
| var serv = $inj.get('$http'); | |
| var x = serv({method: 'POST', url: 'http://127.0.0.1:5000'}).success(function(data){console.log(data)}).error(function(data, status, header){ console.log(data); console.log(status); console.log(header);}); | |
| console.log(x); |