Skip to content

Instantly share code, notes, and snippets.

View geoah's full-sized avatar
🦄
Arghxd

George Antoniadis geoah

🦄
Arghxd
View GitHub Profile
var module = angular.module( 'my.resource', [ 'ngResource' ] );
module.factory( 'Resource', [ '$resource', function( $resource ) {
return function( url, params, methods ) {
var defaults = {
update: { method: 'put', isArray: false },
create: { method: 'post' }
};
methods = angular.extend( defaults, methods );
<?php
header("content-type: application/json; charset=UTF-8");
$aFilteredPlaces = array();
foreach($aSearchResults as $iResNum => $aPointDetails)
{
$aPlace = array();
$aPlace['lat'] = (float) $aPointDetails['lat'];
$aPlace['lng'] = (float) $aPointDetails['lon'];
@geoah
geoah / 1-0-Preface.md
Last active March 2, 2016 17:42
[RFC]

Preface

TL;DR

This is a rant about how a decentralized network for storing structured data might look like.
The goal is to allow third party developers to build applications and services that use it as a data-store and allow users to switch between any application or service without loosing their data.

for the, devs of 'devrant'
if 'markdown' isnt 'so damn hard'
do alert 'please add markdown'
1BfmDGuHdoZFxhmtCAvRK9w9NrM45kgPVQ
https://docs.google.com/document/d/1oKX68jnII8dxVUMpiDspVKW5NdF5kMziNQrWBy3-TgI/edit
@geoah
geoah / go-mTLS.go
Last active November 9, 2023 08:43
package main
import (
"crypto/ed25519"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"math/big"
<?xml version="1.0" encoding="UTF-8"?>
<SapelliCollectorProject id="12873" defaultLanguage="en-GB" name="Alcohol" version="0.8" startForm="Personal">
<Configuration>
<Logging enabled="true" />
</Configuration>
<Form id="Personal" singlePage="true" saveVibrate="false">
<Text id="Name" caption="Name" minLength="1" optional="false" showBack="false" showCancel="false" showForward="false" />
<Check id="Over18" caption="Over 18?" optional="false" showBack="false" showCancel="false" showForward="false" />
<Button id="Next" caption="Save" optional="false" jump="_NEXTFORM" showBack="false" showCancel="false" showForward="false" />
</Form>
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: kubernetes-dashboard
labels:
k8s-app: kubernetes-dashboard
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
@geoah
geoah / excavator-driver.py
Created January 14, 2018 15:11 — forked from YoRyan/excavator-driver.py
Cross-platform controller for NiceHash Excavator for Nvidia.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Cross-platform controller for NiceHash Excavator for Nvidia."""
# Example usage:
# $ excavator -p 3456 &
# $ sleep 5
# $ python3 excavator-driver.py
Verifying my Blockstack ID is secured with the address 1KBXsiiZ3zSa6XjBi8gfxGveYKK5VgjURk https://explorer.blockstack.org/address/1KBXsiiZ3zSa6XjBi8gfxGveYKK5VgjURk