Skip to content

Instantly share code, notes, and snippets.

@vishnuhd
vishnuhd / readme.md
Created September 3, 2019 11:15
Create Jenkins pipeline using REST api and CURL
  • Get the config.xml from a pre-created job or create another one according to the need :
➜  curl -X GET http://localhost:8080/job/test-pipeline/config.xml -u admin:admin -o config.xml
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1599  100  1599    0     0  18518      0 --:--:-- --:--:-- --:--:-- 18593
  • Generate Crumb :
➜ CRUMB=$(curl -s 'http://localhost:8080/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)' -u admin:admin)
@narate
narate / create-hotspot.md
Last active May 16, 2024 04:35
Create Wi-Fi Hotspot on Linux using nmcli

Create a Wi-Fi hotspot on Linux using nmcli

Original post : https://unix.stackexchange.com/a/310699

nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid Hostspot
nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
nmcli con modify Hostspot wifi-sec.psk "veryveryhardpassword1234"