Skip to content

Instantly share code, notes, and snippets.

@tsudot
tsudot / tsudotize.sh
Last active November 28, 2016 06:18
Setup vim
#!/usr/bin/env bash
echo "Removing existing vim and vimrc config."
rm -rf ~/.vimrc
rm -rf ~/.vim
git clone https://github.com/tsudot/dotfiles
echo "Copying cloned vim config."
cd dotfiles/
Results :
Tests in error:
AccountTest.org.keycloak.testsuite.account.AccountTest » Runtime Failed to con...
ProfileTest.org.keycloak.testsuite.account.ProfileTest » Runtime Failed to con...
RequiredActionEmailVerificationTest.org.keycloak.testsuite.actions.RequiredActionEmailVerificationTest » Runtime
RequiredActionMultipleActionsTest.org.keycloak.testsuite.actions.RequiredActionMultipleActionsTest » Runtime
RequiredActionResetPasswordTest.org.keycloak.testsuite.actions.RequiredActionResetPasswordTest » Runtime
RequiredActionTotpSetupTest.org.keycloak.testsuite.actions.RequiredActionTotpSetupTest » Runtime
RequiredActionUpdateProfileTest.org.keycloak.testsuite.actions.RequiredActionUpdateProfileTest » Runtime
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User
10:30:34,342 INFO [org.infinispan.jmx.CacheJmxRegistration] ISPN000031: MBeans were successfully registered to the platform MBean server.
10:30:34,343 INFO [org.infinispan.jmx.CacheJmxRegistration] ISPN000031: MBeans were successfully registered to the platform MBean server.
10:30:34,346 INFO [org.keycloak.federation.ldap.LDAPIdentityStoreRegistry] Creating new LDAP based partition manager for the Federation provider: MyLDAPProvider1, LDAP Configuration: {connectionUrl=ldap://foo}
10:30:34,346 INFO [org.keycloak.federation.ldap.LDAPIdentityStoreRegistry] Creating new LDAP based partition manager for the Federation provider: MyLDAPProvider2, LDAP Configuration: {connectionUrl=ldap://bar}
10:30:34,427 INFO [org.keycloak.testsuite.KeycloakServer] Stopped Keycloak
10:30:34,434 INFO [org.keycloak.services.resources.KeycloakApplication] Load config from file:/var/log/keycloak/testsuite/integration/target/test-classes/META-INF/keycloak-server.json
10:30:34,477 INFO [org.infinispan.jmx.CacheJmxRegistration] IS
14:52:29,785 INFO [org.infinispan.jmx.CacheJmxRegistration] ISPN000031: MBeans were successfully registered to the platform MBean server.
14:52:29,786 WARN [org.keycloak.events] type=LOGIN_ERROR, realmId=master, clientId=admin-cli, userId=606df39f-80f6-4134-86bb-c2404e672284, ipAddress=127.0.0.1, error=invalid_user_credentials, auth_method=openid-connect, grant_type=password, client_auth_method=client-secret, username=addusertest-admin
14:52:29,789 INFO [org.keycloak.testsuite.KeycloakServer] Stopped Keycloak
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.023 sec <<< FAILURE! - in org.keycloak.testsuite.adduser.AddUserTest
addUserTest(org.keycloak.testsuite.adduser.AddUserTest) Time elapsed: 1.023 sec <<< ERROR!
javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.handleErrorStatus(ClientInvocation.java:179)
at org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:154)
at org.jb
@tsudot
tsudot / servo_build
Created May 16, 2015 15:23
servo build
➜ servo git:(master) ✗ ./mach build --dev
Submodule path 'support/android-rs-glue': checked out 'dc8aef3e1b8f1acd141986cfab492e3f57d2d5f6'
Downloading Rust snapshot...
Error running mach:
['build', '--dev']
The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.
Compiling regex v0.1.30
/home/tsudot/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.30/src/lib.rs:370:34: 370:48 error: unstable feature
/home/tsudot/.cargo/registry/src/github.com-1ecc6299db9ec823/regex-0.1.30/src/lib.rs:370 #![cfg_attr(feature = "pattern", feature(core))]
➜ exa git:(master) make install
cargo build --release
Unable to update https://github.com/alexcrichton/git2-rs.git#bf374587
Caused by:
failed to parse manifest at `/home/tsudot/.cargo/git/checkouts/git2-rs-cf258e7bcbaee34d/master/libgit2-sys/Cargo.toml`
Caused by:
target names cannot contain hyphens: libgit2-sys
make: *** [target/release/exa] Error 101

Keybase proof

I hereby claim:

  • I am tsudot on github.
  • I am tsudot (https://keybase.io/tsudot) on keybase.
  • I have a public key whose fingerprint is F7BC 98AF 1B91 0EAD 22F6 6FDB 9783 51FE F03D DF21

To claim this, I am signing this object:

@tsudot
tsudot / plivo_receive_sms.php
Created August 7, 2014 06:27
Snippet to receive an SMS from Plivo
<?php
$to = $_REQUEST['To'];
$from = $_REQUEST['From'];
$text = $_REQUEST['Text'];
$msg_id = $_REQUEST['MessageUUID'];
echo "Message received from $from on $to:";
echo "$text";
?>