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
import { component$ } from "@builder.io/qwik"; | |
import { Form, routeAction$, z, zod$ } from "@builder.io/qwik-city"; | |
import { addUser } from "./helper"; | |
import { getErrorMessage } from "~/utils/errorHandling"; | |
import CookiesEnum from "~/utils/CookiesEnum"; | |
import { EndpointEnum } from "~/utils/api"; | |
export const useAddUser = routeAction$( | |
async (user, { fail, cookie, redirect }) => { | |
try { |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/jwelzel/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
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
$ mvn archetype:generate -DgroupId=com.jonwelzel.segment2 -DartifactId=segment2 -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false |
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
{ | |
PEOPLE: [":smile:",":laughing:",":blush:",":smiley:",":relaxed:",":smirk:",":heart_eyes:",":kissing_heart:",":kissing_closed_eyes:",":flushed:",":relieved:",":satisfied:",":grin:",":wink:",":stuck_out_tongue_winking_eye:",":stuck_out_tongue_closed_eyes:",":grinning:",":kissing:",":kissing_smiling_eyes:",":stuck_out_tongue:",":sleeping:",":worried:",":frowning:",":anguished:",":open_mouth:",":grimacing:",":confused:",":hushed:",":expressionless:",":unamused:",":sweat_smile:",":sweat:",":disappointed_relieved:",":weary:",":pensive:",":disappointed:",":confounded:",":fearful:",":cold_sweat:",":persevere:",":cry:",":sob:",":joy:",":astonished:",":scream:",":tired_face:",":angry:",":rage:",":triumph:",":sleepy:",":yum:",":mask:",":sunglasses:",":dizzy_face:",":imp:",":smiling_imp:",":neutral_face:",":no_mouth:",":innocent:",":alien:",":yellow_heart:",":blue_heart:",":purple_heart:",":heart:",":green_heart:",":broken_heart:",":heartbeat:",":heartpulse:",":two_hearts:",":revolving_hearts:",":cupid:",":sparkling_ |
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
/** | |
* Using https://github.com/websockets/ws | |
*/ | |
var WebSocketServer = require('ws').Server, | |
wss = new WebSocketServer({port: 8080}); | |
wss.on('connection', function(ws) { | |
ws.on('message', function(message) { | |
wss.broadcast(message); |
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
[26 Feb 2015;12:30:47.562] - [WARN ] [UserServiceInterfaceImpl:1074] - Failed to associateUser java.lang.NullPointerException: null | |
at com.totvslabs.idm.db.services.DBUserServiceImpl.associateUser(DBUserServiceImpl.java:924) | |
at com.totvslabs.idm.rmi.service.impl.UserServiceInterfaceImpl.associateUserInternal(UserServiceInterfaceImpl.java:1049) | |
at com.totvslabs.idm.rmi.service.impl.UserServiceInterfaceImpl.associateUser(UserServiceInterfaceImpl.java:1030) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322) | |
at sun.rmi.transport.Transport$2.run(Transport.java:202) |
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
/^(\(0?\d{2}\)\s?|0?\d{2}[\s.-]?)\d{4,5}[\s.-]?\d{4}$/.test('(47) 9999-9999'); //true | |
/^(\(0?\d{2}\)\s?|0?\d{2}[\s.-]?)\d{4,5}[\s.-]?\d{4}$/.test('47 9999 9999'); //true |
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 | |
# | |
# Description: | |
# this script restores couchbase & neo4j from the UX reference server, e.g qa1b. | |
# the process for restoring this is as follows: | |
# - start Couchbase and stop neo4j (with neo4j_server_stop.sh) | |
# - download the latest backup from http://10.165.4.67/fluigidentity.database.backup.tar.gz | |
# - run this script as "sudo ux_restore.sh <DB_ARCHIVE_ZIP> [<CLOUDPASS_HOME_DIR>]" | |
# - start neo4 (with neo4j_server_start.sh) | |
# - hit localhost:7474/browser and confirm that DB size is apprx 32gb by clicking the circles in the top-left corner |
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 | |
# | |
# Description: | |
# this script restores couchbase & neo4j from the UX reference server, e.g qa1b. | |
# the process for restoring this is as follows: | |
# - start Couchbase and stop neo4j (with neo4j_server_stop.sh) | |
# - download the latest backup from http://10.165.4.67/fluigidentity.database.backup.tar.gz | |
# - run this script as "sudo ux_restore.sh <DB_ARCHIVE_ZIP> [<CLOUDPASS_HOME_DIR>]" | |
# - start neo4 (with neo4j_server_start.sh) | |
# - hit localhost:7474/browser and confirm that DB size is apprx 32gb by clicking the circles in the top-left corner |
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
export JAVA_HOME=/usr/lib/jvm/java-7-oracle/ | |
export GRAILS_HOME=/home/jwelzel/apps/grails-2.2.4 | |
export PATH=$PATH:$GRAILS_HOME/bin | |
export IDM_HOME=/home/jwelzel/dev/totvs/identity | |
export IDM_BIN=$IDM_HOME/backend/build/bin | |
export PATH=$PATH:$IDM_BIN | |
# Fluig Identity | |
alias search='cd $IDM_BIN && sh search_service_start.sh' | |
alias keystore='cd $IDM_BIN && sh keystore_server_start.sh' |
NewerOlder