URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
URL: http://teamcity:8111/httpAuth/app/rest/projects/
Method: POST
Accept: application/xml
Press minus + shift + s
and return
to chop/fold long lines!
/* | |
Serve is a very simple static file server in go | |
Usage: | |
-p="8100": port to serve on | |
-d=".": the directory of static files to host | |
Navigating to http://localhost:8100 will display the index.html or directory | |
listing file. | |
*/ | |
package main |
d-i mirror/country string manual | |
d-i mirror/http/hostname string 192.168.26.170 | |
d-i mirror/http/directory string /ubuntu | |
d-i partman/early_command string vgs --separator=: --noheadings | cut -f1 -d: |while read vg ; do vgchange -an $vg ; done ; pvs --separator=: --noheadings | cut -f1 -d: | while read pv ; do pvremove -ff -y $pv ; done | |
d-i partman-auto/disk string /dev/sda | |
d-i partman/alignment string cylinder | |
d-i partman-md/device_remove_md boolean true | |
d-i partman-md/confirm boolean true | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-lvm/confirm boolean true |
## credit: http://fabian-affolter.ch/blog/the-lineinfile-module-of-ansible/ | |
--- | |
- hosts: alpine_install | |
user: root | |
tasks: | |
# - name: create a complete empty file | |
# command: /usr/bin/touch /test/test.conf | |
- name: create a new file with lineinfile |
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
#! /usr/bin/python | |
import os | |
import sys | |
import urllib2 | |
import re | |
import sqlite3 | |
def get_mac_table_file(filename="oui.txt"): | |
request = urllib2.urlopen("http://standards.ieee.org/develop/regauth/oui/oui.txt") | |
with open(filename, "w") as f: |
#!/usr/bin/env bash | |
DOMAIN=$1 | |
if [ -z "$DOMAIN" ]; then | |
echo -n 'Enter root domain (no www): ' | |
read input_d | |
DOMAIN=$input_d | |
fi |
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)