Skip to content

Instantly share code, notes, and snippets.

View alicegoldfuss's full-sized avatar
🍵
working @ https://github.com/nautalice

Alice Goldfuss alicegoldfuss

🍵
working @ https://github.com/nautalice
View GitHub Profile
import newrelic.agent
newrelic.agent.initialize('staging.ini')
newrelic.agent.register_application(timeout=10.0)
def add(a, b):
return a + b
def sub(a, b):
return a - b
@alicegoldfuss
alicegoldfuss / disable_intel_idle.yaml
Last active January 18, 2017 22:14
disable intel_idle ansible play
---
- hosts: # add hosts list as needed
serial: 1
sudo: true
tasks:
- name: Copy local grub config to remote host
copy: src=./files/grub dest=/etc/default/grub owner=root group=root mode=0644
- name: Recompile grub config
2. Capture a system profile on the host with something like
```
sudo perf record -F 99 -a -g -- sleep 30
```
3. From inside the container (easier to have this running already in another shell) dump the symbols for the Java process with
```
java -cp attach-main.jar:$JAVA_HOME/lib/tools.jar \
```
```
net.virtualvoid.perf.AttachOnce PID
@alicegoldfuss
alicegoldfuss / weekly_release.py
Created May 27, 2019 21:58
Weekly Release Script
#!/usr/local/bin/python3
import requests
import json
from twilio.rest import Client
HEADERS = {'Accept': 'application/vnd.github.inertia-preview+json'}
GH_TOKEN = "XXX" # Your auth token from https://github.com/settings/tokens
TW_SID = "XXX" # Your Account SID from twilio.com/console
TW_TOKEN = "XXX" # Your Auth Token from twilio.com/console