Skip to content

Instantly share code, notes, and snippets.

@zhil
zhil / README.md
Created July 6, 2019 09:05 — forked from denji/README.md
Simple Sentry docker-compose.yml
  1. Download docker-compose.yml to dir named sentry
  2. Change SENTRY_SECRET_KEY to random 32 char string
  3. Run docker-compose up -d
  4. Run docker-compose exec sentry sentry upgrade to setup database and create admin user
  5. (Optional) Run docker-compose exec sentry pip install sentry-slack if you want slack plugin, it can be done later
  6. Run docker-compose restart sentry
  7. Sentry is now running on public port 9000
@zhil
zhil / clean-up-boot-partition-ubuntu.md
Created June 20, 2019 16:58 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
<?xml version="1.0" encoding="UTF-8"?>
<spocosy version="1.0"><subscription-update subscriptionid="8" requestid="9902555" last_push="2017-10-18 18:55:59" current_push="2017-10-18 18:56:02" exec="0.003"><lineup id="11070849" event_participantsFK="8722244" participantFK="662831" lineup_typeFK="5" shirt_number="0" pos="0" enet_pos="18" n="0" ut="2017-10-18 18:56:01" del="no"/></subscription-update></spocosy>
import json
import codecs
import ssl
import sys
import urllib.request
import xml.etree.ElementTree as Tree
from collections import namedtuple
_DEFAULT_TEST_URL = 'https://anspedite-3.atlassian.net'
@zhil
zhil / secret_overwrite_test_python27.py
Created April 28, 2016 06:43
Atlassian security check (python 2.7.6-2.7.8)
import sys
import xml.etree.ElementTree as Tree
import urllib2
import ssl
import json
from collections import namedtuple
#_DEFAULT_TEST_URL = 'https://anspedite-3.atlassian.net'
_DEFAULT_TEST_URL = 'http://pc1:2990/jira'
@zhil
zhil / pushbullet.php
Created November 15, 2015 10:32
PushBullet Api
// php composer require ivkos/pushbullet
$pb = new \Pushbullet\Pushbullet('ACCESS_KEY_HERE'); // can be founded here https://www.pushbullet.com/account
$pb->allDevices()->pushNote("Hello world!", "Lorem ipsum...");