Skip to content

Instantly share code, notes, and snippets.

🍵
working @ https://github.com/nautalice

Alice Goldfuss alicegoldfuss

🍵
working @ https://github.com/nautalice
View GitHub Profile
View weekly_release.py
#!/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
View gist:12e7238d1b387134c037e2eb5af66d87
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 / disable_intel_idle.yaml
Last active Jan 18, 2017
disable intel_idle ansible play
View disable_intel_idle.yaml
---
- 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
View bg_task.py
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
You can’t perform that action at this time.