Skip to content

Instantly share code, notes, and snippets.

View pakonda's full-sized avatar
💭
(°ロ°)

pakonda pakonda

💭
(°ロ°)
View GitHub Profile
version: '3'
services:
storagenode:
container_name: storagenode
image: storjlabs/storagenode:latest
environment:
- WALLET=xxx
- EMAIL=xxx
- ADDRESS=xxx:1234
@pakonda
pakonda / install zabbix timescaledb centos 8
Last active August 11, 2020 06:51
zabbix timescaledb centos 8
curl -Ls https://git.io/JJMhk | bash -s
# zabbix dbname: zabbix
# zabbix dbuser: zabbix
# zabbix dbpass: password
# zabbix webui_user: Admin
# zabbix webui_pass: zabbix
@pakonda
pakonda / sslscan.py
Created June 4, 2020 06:50 — forked from brandond/sslscan.py
Stupid simple Python SSL certificate chain scanner
#!/usr/bin/env python
from __future__ import print_function
import sys
import socket
import requests
import datetime
from OpenSSL import SSL, crypto
@pakonda
pakonda / useScript.tsx
Created May 2, 2020 14:00 — forked from addisonschultz/useScript.tsx
A React hook that lets you add script tags to a component. Useful when needing to load scripts for components in Framer X.
import * as React from "react"
import { useState, useEffect } from "react"
// Hook
let cachedScripts = []
export function useScript(src) {
// Keeping track of script loaded and error state
const [state, setState] = useState({
loaded: false,
# In case “enable Nested VT-x/AMD-v” is greyed out then we can enable it via command line , execute the following command,
VBoxManage modifyvm vm-name --nested-hw-virt on
@pakonda
pakonda / multiple-repository-and-identities-git-configuration.md
Created February 11, 2020 02:03 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@pakonda
pakonda / README.md
Created January 29, 2020 08:11 — forked from BoGnY/README.md
[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

[WINDOWS] How to enable auto-signing Git commits with GnuPG for programs that don't support it natively

This is a step-by-step guide on how to enable auto-signing Git commits with GPG for every applications that don't support it natively (eg. GitHub Desktop, Eclipse, Git Tower, ...)

Requirements

  • Install GPG4Win: this software is a bundle with latest version of GnuPG v2, Kleopatra v3 certificate manager, GNU Privacy Assistant (GPA) v0.9 which is a GUI that uses GTK+, GpgOL and GpgEX that are respectively an extension for MS Outlook and an extension for Windows Explorer shell
  • Install Git for Windows: so you can have a *nix based shell, this software is a bundle with latest version of Git which use MINGW environment, a Git bash shell, a Git GUI and an extension for Windows Explorer shell (Make sure your local version of Git is at least 2.0, otherwise Git don't have support for automatically sign your commits)
  • Verify
@pakonda
pakonda / influxdb-setup.md
Created May 2, 2019 06:43 — forked from travisjeffery/influxdb-setup.md
Guide to setting up InfluxData's TICK stack

Guide to setting up InfluxData's TICK stack

InfluxData's T.I.C.K. stack is made up from the following components:

Component Role
Telegraf Data collector
InfluxDB Stores data
Chronograf Visualizer
image: python:3.4
stages:
- build
- test
- e2e-test
- deploy
before_script:
sed -i '/multiverse\|security/d' /etc/apt/sources.list
apt-get update && apt-get install -y vpnc aria2 unzip
cat <<< "IPSec gateway $VPN_GATEWAY" > /etc/vpnc/default.conf
cat <<< "IPSec ID $VPN_GROUPNAME" >> /etc/vpnc/default.conf
cat <<< "IPSec secret $VPN_GROUP_PWD" >> /etc/vpnc/default.conf
cat <<< "Xauth username $VPN_USER" >> /etc/vpnc/default.conf
cat <<< "Xauth password $VPN_PWD" >> /etc/vpnc/default.conf
aria2c --allow-overwrite=true -d /tmp https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-3.3.0.1492-linux.zip
unzip /tmp/sonar-scanner-cli-3.3.0.1492-linux.zip -d /tmp/
mv /tmp/sonar-scanner-3.3.0.1492-linux /opt/sonar-scanner