Skip to content

Instantly share code, notes, and snippets.

View tunix's full-sized avatar

Alper Kanat tunix

View GitHub Profile
@tunix
tunix / 1password.repo
Created June 3, 2023 17:17
1Password Fedora Repo
[1password]
name=1Password Stable Channel
baseurl=https://downloads.1password.com/linux/rpm/stable/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://downloads.1password.com/linux/keys/1password.asc
@tunix
tunix / self-signed-certificate-with-custom-ca.md
Last active January 14, 2021 15:14 — forked from francescoDeveloper/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
Verifying my Blockstack ID is secured with the address 1LaYdseuLcg9jHYdgxE85gtZRwxwHiBvCN https://explorer.blockstack.org/address/1LaYdseuLcg9jHYdgxE85gtZRwxwHiBvCN

Keybase proof

I hereby claim:

  • I am tunix on github.
  • I am tunix (https://keybase.io/tunix) on keybase.
  • I have a public key ASCgdEPhK57cC8rWt3kWrD771fsuzmMePoyD1dJusHSrkAo

To claim this, I am signing this object:

@tunix
tunix / data.json
Created March 24, 2017 15:17
couchbase explain output
[
{
"plan": {
"#operator": "Sequence",
"~children": [
{
"#operator": "IndexScan",
"covers": [
"cover ((`fooboo`.`appId`))",
"cover ((`fooboo`.`xid`))",
version: '3'
services:
api:
build: .
image: tunix/docker-compose-demo
ports:
- "8080"
links:
- db:demodb
@tunix
tunix / Dockerfile
Last active October 11, 2016 13:38
alperkan.at Dockerfile
FROM node:6.2-slim
MAINTAINER Alper Kanat <me@alperkan.at>
ADD . /srv
WORKDIR /srv
RUN apt-get update && apt-get install -qqy git
RUN npm install -g bower gulp
RUN npm install
RUN bower install --allow-root
RUN gulp clean build
ENV NODE_ENV production
@tunix
tunix / Dockerfile
Last active October 11, 2016 13:38
Gerrit Dashboard Server Dockerfile
FROM node:4.4
LABEL type="node" purpose="api" role="core" description="Gerrit Dashboard Server"
ENV NODE_ENV production
ENV SOURCE_TYPE DB
ENV GERRIT_DASHBOARD_CONFIG_PATH /opt/config
COPY dist /srv/app
WORKDIR /srv/app
EXPOSE 3000
VOLUME ["/opt/config"]
CMD ["./bin/www"]
#!/bin/bash
# Digital Ocean API Token
TOKEN=""
# Domain Details
DOMAIN=""
RECORD_ID=""
IP=$(curl -s ifconfig.me)
AES aes = new AES(256/32);
String clave = "12345678677561";
clave = aes.parseKey(clave);
String texto = String.valueOf(0.0) + String.valueOf(677) + "Tr" + String.valueOf(0.0) +
String.valueOf(561);
String hash = aes.encrypt(texto, clave, 256);
System.out.println("Hash :" + hash);