/etc/init.d/mysql stopRun
mysqld_safe --skip-grant-tables &
Moved to dedicated repository: lmammino/cube-daemons
<?php | |
namespace Sbaam\Bundle\InviteBundle\Http; | |
use Symfony\Component\HttpFoundation\Response; | |
/** | |
* Class BlankPixelResponse | |
* @package Sbaam\Bundle\InviteBundle\Http |
#!/bin/sh | |
# | |
# Based on a work of Miquel van Smoorenburg <[email protected]> | |
# | |
### BEGIN INIT INFO | |
# Provides: supervisor | |
# Required-Start: $remote_fs $network $named | |
# Required-Stop: $remote_fs $network $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
I hereby claim:
To claim this, I am signing this object:
"use strict"; | |
const ticker = require('./ticker'); | |
ticker.on('tick', (tickCount) => console.log(tickCount, 'TICK')); | |
// ticker.emit('something', {}); <-- This will fail |
import java.security.SecureRandom; | |
import java.util.Base64; | |
import java.util.Base64.Encoder; | |
public class RandomWebToken | |
{ | |
public static void main(String[] args) | |
{ | |
SecureRandom random = new SecureRandom(); | |
byte bytes[] = new byte[128]; |
/** | |
* Copyright (C) 2014 PONTON GmbH | |
*/ | |
package org.efetnet.uti; | |
import java.io.UnsupportedEncodingException; | |
import java.security.MessageDigest; | |
import java.security.NoSuchAlgorithmException; | |
import java.util.Arrays; | |
import java.util.regex.Pattern; |
yep |
#!/usr/bin/env bash | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
profile=$1 | |
[ -z "$profile" ] && printf "\nERROR: missing profile name.\n\nUsage:\n\n '$0 <profileName>'\n" && exit 1 | |
[ ! -f "$DIR/.npmrc-profiles/$profile" ] && printf "\nERROR: profile '$profile' not found\n" && exit 1 | |
cd $DIR && ln -sf .npmrc-profiles/$profile .npmrc |