What do you want to save?
Add Code snippet
New code examples
-
Java 2022-02-05 09:20:07
serialization of object in java
public class someClass { //your lcode and logic... ObjectMapper mapper = new ObjectMapper(); SimpleModule module = new SimpleModule(); module.addSerializer(MyAwesomeClass.class, new MyAwesomeSerializer()); mapper.registerModule(module); jsonNode = mapper... Add solution -
-
Other 2022-02-03 04:07:19
use register variable ansible in other play
- name: "Cluster token" shell: kubeadm token list | cut -d ' ' -f1 | sed -n '2p' register: K8S_TOKEN - name: "CA Hash" shell: openssl x509 -pubkey -in /etc/kubernetes/pki/ca.crt | openssl rsa -pubin -outform der 2>/dev/null |... Add solution -
Other 2022-02-02 23:10:19
chech difference between 2 files ansible
- name: Get cksum of my First file stat: path : "/poc/files/{{ inventory_hostname }}.result" register: myfirstfile - name: Current SHA1 set_fact: mf1sha1: "{{ myfirstfile.stat.checksum }}" - name: Get cksum of my Second... Add solution -
Javascript 2022-02-02 22:55:56
programatic navigation vue router
// literal string path router.push('home') // object router.push({ path: 'home' }) // named route router.push({ name: 'user', params: { userId: '123' } }) // with query, resulting in /register?plan=private router.push({ path: 'register', query: { plan:... Add solution -
Python 2022-02-02 20:26:54
philips hue python
#!/usr/bin/python from phue import Bridge b = Bridge('ip_of_your_bridge') # If the app is not registered and the button is not pressed, press the button and call connect() (this only needs to be run a single time) b.connect() # Get the bridge state (T... Add solution -
Other 2022-02-02 20:00:08
threads in os
A thread is a flow of execution through the process code, with its own program counter that keeps track of which instruction to execute next, system registers which hold its current working variables, and a stack which contains the execution history. A... Add solution
Best helpers
Ranking is empty