Skip to content

Instantly share code, notes, and snippets.

@anish
anish / gist:8f7dee8fb2e5a2a6331dd311abe20739
Last active April 19, 2023 07:30
sample pypi package to rpm conversion
sed -E 's/(name = ")/\1python3-/g' setup.py
python3 setup.py sdist bdist_rpm --release="%{timestamp}%{?dist}" --spec-only --build_requires=python3-devel
rpmbuild -bb dist/python3-pykerberos.spec --define "_sourcedir `pwd`/dist" --define "_specdir `pwd`/dist" --define "_rpmdir `pwd`/dist" --define 'timestamp %(date +"%Y%m%d%H%M")' --define "debug_package %{nil}"
```
{
"variables": {
"build_target" : "foo-current",
"build_patch": "2019.01",
"default_ssh_user" : "root",
"default_password": null
},
"builders": [
{
```
{
"variables": {
"build_target" : "foo-current",
"build_patch": "2019.01",
"default_ssh_user" : "root",
"default_password": null
},
"builders": [
{
@anish
anish / gist:adfa2873d5ca3964892304ec4c3d6aed
Last active December 10, 2018 23:31
packer_communicator_none_crash
2018/12/10 15:19:49 packer: 2018/12/10 15:19:49 Running the provision hook
Build 'sfdc-base' errored: unexpected EOF
==> Some builds didn't complete successfully and had errors:
--> sfdc-base: unexpected EOF
==> Builds finished but no artifacts were created.
2018/12/10 15:19:49 packer: panic: interface conversion: interface is nil, not packer.Communicator
2018/12/10 15:19:49 packer:
2018/12/10 15:19:49 packer: goroutine 83 [running]:
Traceback (most recent call last):
File "./auto_fleetscan_test4.py", line 361, in <module>
argus.query()
File "./auto_fleetscan_test4.py", line 202, in query
single_data = self.single_host_query_annotation(host_data.get('host_fqdn'), '12')
File "./auto_fleetscan_test4.py", line 72, in single_host_query_annotation
max_ts[ts] = value
IndexError: list assignment index out of range
[abhatt@ops0-hwlab40-1-prd auto_fleetscan]$ cat ./auto_fleetscan_test4.py | grep max_ts
max_ts = []
bond0 n/a up n/a n/a 24:6E:96:29:4D:D8
bond1 n/a up n/a n/a 24:6E:96:29:4D:DA
eth0 ixgbe up 0000:01:00.0 bond0 24:6E:96:29:4D:D8
eth1 ixgbe up 0000:01:00.1 bond1 24:6E:96:29:4D:DA
eth10 igb down 0000:07:00.0 n/a 24:6E:96:29:4D:DC
eth11 igb down 0000:07:00.1 n/a 24:6E:96:29:4D:DD
eth2 bnx2x up 0000:04:00.0 bond0 F4:E9:D4:9B:65:C0
eth3 bnx2x up 0000:04:00.1 bond1 F4:E9:D4:9B:65:C2
eth4 ixgbe up 0000:83:00.0 n/a A0:36:9F:C7:FD:6C
eth5 ixgbe down 0000:83:00.1 n/a A0:36:9F:C7:FD:6E
heroku psql -a salesforce-cla-test
select * from salesforce.sf_cla__cla_signature__c;
delete from salesforce.sf_cla__cla_signature__c;
anish@cerveza /media/data/workspace/sfdc/packer $ cat /etc/resolvconf/resolv.conf.d/base
search ops.sfdc.net eng.sfdc.net data.sfdc.net
Day changed to 18 Apr 2017
05:48 < panda007> good morning ^_^
07:47 < trex_sam> morning
09:02 < yew> morning
09:03 < trex_sam> I love the little status thingies
10:51 < anish> wha
10:51 < anish> oh, boring
11:03 < trex_sam> anish: :stuck_out_tongue: [cc: anish]
11:03 < trex_sam> pbbbtttt
11:05 < yew> how do the emojis render in primitive IRC
gs = GitHubStatusPush(token=auth['auth_token'],
baseURL='https://git.foo.bar.com/api/v3/', verbose=False, context=Interpolate('buildbot-crd/%(prop:buildername)s'),
builders=[ 'foo', 'bar' ])
c['services'] = [ gs ]