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 | |
sleep 2 | |
export HOME=$2 | |
$1 & TEENSYPID=$! | |
sleep 5 | |
xdotool search --class "teensyduino" \ | |
windowfocus \ |
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
var app = require('koa')(); | |
app | |
.use(require('./router1').prefix('/route1').routes()) | |
.use(require('./router2').prefix('/route2').routes()); | |
app.listen(8000); |
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
'use strict'; | |
(function() { | |
class AdminController { | |
constructor(User, Modal) { | |
// Use the User $resource to fetch all users | |
this.users = User.query(); | |
// Our callback function is called if/when the delete modal is confirmed |
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 | |
# gitlab-ci-multi-runner data directory | |
DATA_DIR="/data" | |
CONFIG_FILE=${CONFIG_FILE:-$DATA_DIR/config.toml} | |
# custom certificate authority path | |
CA_CERTIFICATES_PATH=${CA_CERTIFICATES_PATH:-$DATA_DIR/certs/ca.crt} | |
LOCAL_CA_PATH="/usr/local/share/ca-certificates/ca.crt" | |
update_ca () { |
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
servers = ( | |
{ address = "eu.irc6.net"; chatnet = "IRCnet"; port = "6667"; }, | |
{ address = "open.ircnet.net"; chatnet = "IRCnet"; port = "6667"; }, | |
{ address = "irc.efnet.org"; chatnet = "EFNet"; port = "6667"; }, | |
{ | |
address = "irc.undernet.org"; | |
chatnet = "Undernet"; | |
port = "6667"; | |
}, | |
{ address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; }, |
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
/*global describe, beforeEach, it */ | |
'use strict'; | |
var path = require('path'); | |
var helpers = require('yeoman-generator').test; | |
var chai = require('chai'); | |
var expect = chai.expect; | |
var fs = require('fs-extra'); | |
var exec = require('child_process').exec; | |
describe('angular-fullstack generator', function () { |
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
/* global io */ | |
'use strict'; | |
angular.module('testFullstackApp') | |
.factory('socket', function(socketFactory) { | |
// socket.io now auto-configures its connection when we ommit a connection url | |
var ioSocket = io('', { | |
// Send auth token on connection, you will need to DI the Auth service above | |
// 'query': 'token=' + Auth.getToken() |
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
// Custom user-defined rules for polkit | |
// | |
// See the polkit(8) man page for more information | |
// about configuring polkit. | |
polkit.addRule(function(action, subject) { | |
if (action.id == "org.freedesktop.login1.suspend" || | |
action.id == "org.freedesktop.login1.suspend-multiple-sessions" || | |
action.id == "org.freedesktop.login1.hibernate" || | |
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" || |
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
# Maintainer: Christian Hesse <[email protected]> | |
# Contributor: Gaetan Bisson <[email protected]> | |
pkgname=udns | |
pkgver=0.2 | |
pkgrel=1 | |
pkgdesc='Stub DNS resolver library with ability to perform both syncronous and asyncronous DNS queries' | |
url='http://www.corpit.ru/mjt/udns.html' | |
license=('LGPL') | |
arch=('i686' 'x86_64' 'armv6h') |
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
// string.toCamelCase() | |
if (!String.prototype.toCamelCase) { | |
String.prototype.toCamelCase = function toCamelCase() { | |
return this.toLowerCase().replace(/(\-[a-zA-Z])/g, function($1) { | |
return $1.toUpperCase().replace('-',''); | |
}) | |
}; | |
} |
NewerOlder