What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-18 20:30:06
how to set username, roles, admin in jwt claims example coding in java
public String createToken(String username, List<Role> roles) { Claims claims = Jwts.claims().setSubject(username); claims.put("auth", roles.stream().map(s -> new SimpleGrantedAuthority(s.getAuthority())).filter(Objects::nonNull... Add solution -
Shell/Bash 2022-03-16 18:25:16
reverse shell rubber ducky script
REM Author: Darren Kitchen with mad props to IllWill dabermania.blogspot.co.il/2011/04/copying-executable-from-teensy-using.html REM 27/12/2017: Mod by r00tpgp, removed admin privilege cmd, added auto overwrite on copy con and removed absolute path REM ... Add solution -
Python 2022-02-18 06:05:12
@transactional annotation
At a high level, Spring creates proxies for all the classes annotated with @Transactional – either on the class or on any of the methods. The proxy allows the framework to inject transactional logic before and after the running method – mainly... Add solution -
C# 2022-01-22 09:15:21
xamarin forms alarm
public string Create(string title, string message, DateTime scheduleDate, Dictionary<string, string> extraInfo) { // Create the unique identifier for this notifications. var notificationId = Guid.NewGuid().ToString(); ... Add solution -
Other 2021-11-14 18:05:16
xamarin forms alarm
public string Create(string title, string message, DateTime scheduleDate, Dictionary<string, string> extraInfo) { // Create the unique identifier for this notifications. var notificationId = Guid.NewGuid().ToString(); ... Add solution -
SQL 2021-11-10 19:59:23
cursor procedure with python mssql get result
#********************************************************************** # FILENAME : CallSPMultiResultSet.py # # DESCRIPTION : # Simple ODBC (pyodbc) example to SELECT data from two tables # via a stored procedure, returning... Add solution