Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Low-Value_Services_Root.crt
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Public_Services_Root.crt
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_Qualified_Certificates_Root.crt
echo -n > /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
chattr +i /usr/share/ca-certificates/mozilla/AddTrust_Low-Value_Services_Root.crt
chattr +i /usr/share/ca-certificates/mozilla/AddTrust_Public_Services_Root.crt
chattr +i /usr/share/ca-certificates/mozilla/AddTrust_Qualified_Certificates_Root.crt
chattr +i /usr/share/ca-certificates/mozilla/AddTrust_External_Root.crt
update-ca-certificates
#!/bin/bash
bash <(curl -Ss https://my-netdata.io/kickstart-static64.sh) --accept
sudo -u netdata curl -o /opt/netdata/etc/netdata/netdata.conf http://localhost:19999/netdata.conf
sudo vim /opt/netdata/etc/netdata/netdata.conf
sudo systemctl restart netdata
@shanipribadi
shanipribadi / people2csv.py
Created December 6, 2016 09:00 — forked from wgins/people2csv.py
Mixpanel - Exporting people profiles to CSV
''' people export'''
import base64
import csv
import sys
import time
import urllib # for url encoding
import urllib2 # for sending requests
try:
@shanipribadi
shanipribadi / jdbc-types-jsonb
Created September 4, 2016 12:15 — forked from akmiller78/jdbc-types-jsonb
Extended JDBC type support for JSONB in Postgres
(ns db.jdbc-types-jsonb
(:require [jdbc.proto]
[clojure.data.json :as json])
(:import [org.postgresql.util PGobject]))
;; use the proto/ISQLType to extend a new Postgres type
;; that will be generated from a clojure map type
(extend-protocol jdbc.proto/ISQLType
clojure.lang.IPersistentMap
@shanipribadi
shanipribadi / revbit.py
Created March 9, 2015 03:33
Python code to reverse bits
def revbit(val, width):
return int('{:0{width}b}'.format(val, width=width)[::-1], 2)
@shanipribadi
shanipribadi / PKGBUILD
Created August 12, 2013 11:50
PKGBUILD for python-setuptools-0.9.8
# $Id$
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Sebastien Binet <binet@farnsworth>
pkgbase=python-setuptools
pkgname=('python-setuptools' 'python2-setuptools')
pkgver=0.9.8
pkgrel=1
pkgdesc="Easily download, build, install, upgrade, and uninstall Python packages"
arch=('any')
license=('PSF')