Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
#
# rqworker Manage the rqworker
#
# chkconfig: 2345 96 0
# description: rqworker is a tool for service discovery and configuration
# processname: rqworker
### BEGIN INIT INFO
docker rmi $(docker images -qa -f 'dangling=true')
# without ".ssh" directory
cat ~/.ssh/id_rsa.pub | ssh [email protected] "mkdir ~/.ssh; cat >> ~/.ssh/authorized_keys"
# or (alread have ".ssh: directory)
cat ~/.ssh/id_rsa.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys"
# Get version from .xcodeproj
xcodebuild -project "${PROJECTNAME}.xcodeproj" -showBuildSettings | grep "MARKETING_VERSION" | sed 's/[ ]*MARKETING_VERSION = //'
@Peelz
Peelz / readme.md
Last active April 16, 2021 07:33 — forked from vishnuhd/readme.md
Create Jenkins pipeline using REST api and CURL

Jenkins REST scripts

  • Set variable
export JENKINS_URL=

export COOKIES=
  • Get the config.xml from a pre-created job or create another one according to the need :
require("https").globalAgent.options.ca =
require("ssl-root-cas/latest").create();
const mailer = require("nodemailer");
const MAILER_HOST = "";
const MAILER_SECURE = true;
const MAILER_PORT = 465;
const MAILER_AUTH_USER = "";
const MAILER_AUTH_PASS = "";
@Peelz
Peelz / create-hotspot.md
Created October 24, 2021 09:01 — forked from narate/create-hotspot.md
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"
const a = [1,2,3,4,5]
b = a
b[2] = 10
console.log(a)
console.log(b)
@Peelz
Peelz / pi zero W ap setup.md
Last active May 10, 2022 15:10 — forked from ysr23/pi zero W ap setup.md
Raspberry Pi Zero W Access Point (ap) setup

These are my own personal notes on how i setup a Pi Zero W as an access points it is a blatant copy of this: https://gist.github.com/tcg/0c1d32770fcf6a0acf448b7358c5d059 but is just missing a couple of things from: http://imti.co/post/145442415333/raspberry-pi-3-wifi-station-ap and like tcg, this is not intended as a guide but notes as i will invariably have to rebuild this sometime and i have broken biscuits for brains.

1. making the pi zero accesible from a computer

this is really just the same info as here https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a

  • flash raspbian lite to sd card
  • unplug and replug sd card adapter if necessary to see 'boot' drive
  • edit cmdline.txt add: modules-load=dwc2,g_ether after the word rootwait
  • edit config.txt and add dtoverlay=dwc2 to the end of the file
  • create a blank file called ssh

install

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm

create file ~/.tmux.conf

# List of plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'