Skip to content

Instantly share code, notes, and snippets.

View spiritbroski's full-sized avatar
🍞
bismillah

ꦫꦶꦤꦺꦴ spiritbroski

🍞
bismillah
View GitHub Profile
curl https://linuxsoft.cern.ch/cern/centos/7/updates/x86_64/Packages/Packages/kernel-devel-3.10.0-1127.el7.x86_64.rpm -o kernel.rpm
<template id="interactable-iframe-media">
<a-entity
class="interactable"
is-remote-hover-target
hoverable-visuals
tags="isHandCollisionTarget: true; offersHandConstraint: true; offersRemoteConstraint: true; inspectable: true;"
body-helper="type: dynamic; mass: 1; collisionFilterGroup: 1; collisionFilterMask: 31;"
matrix-auto-update
shape-helper="type: box"
set-unowned-body-kinematic
"use strict";
const axios = require("axios");
const jwt = require("jsonwebtoken");
function makeid(length) {
var result = "";
var characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
for (var i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
<template>
<div>
<v-row class="mb-2" v-if="refreshRepo"
><v-btn @click="refreshRepo">Refresh Repo List</v-btn></v-row
>
<v-row>
<v-card
width="400"
class="mx-2 my-2"
:key="index"
@spiritbroski
spiritbroski / .env
Last active December 7, 2020 07:06
...
paypal_client_id=<paypal client id>
paypal_client_secret=<paypal client secret>
redirect_uri_paypal=<paypal redirect uri>
save_paypal_url=<save paypal url>
get_paypal_url=<get paypal url>
paypal_client_id=<your paypal client id>
paypal_client_secret=<your paypal client secret>
"use strict";
const axios = require("axios");
const jwt = require("jsonwebtoken");
const formUrlEncoded = (x) =>
Object.keys(x).reduce((p, c) => p + `&${c}=${encodeURIComponent(x[c])}`, "");
const authorize_paypal = async function (params) {
if (params.code) {
const { access_token } = await authenticate({ params });
const { emails } = await getEmail({ access_token });
...
paypal-auth:
handler: paypal.authorize_paypal
annotations:
web-export: true
parameters:
paypal_client_id: ${env:paypal_client_id}
paypal_client_secret: ${env:paypal_client_secret}
frontend_url: ${env:frontend_url}
<template>
...
<DashboardInfo :username="username" :profilePhoto="profilePhoto" :paypalToken="paypalToken"/>
...
</template>
<script lang=ts>
...
public paypalToken: boolean = false
...
</script>
...
<v-row justify="space-between">
<v-col><v-btn color="green" v-if="!paypalToken">CONNECT PAYPAL</v-btn></v-col>
<v-col class="font-weight-bold text-h5" v-if="paypalToken">{{paypalBalance}}</v-col>
<v-col v-if="paypalToken"><v-btn color="green">withdraw</v-btn></v-col>
</v-row>
...
<script lang="ts">
...
@Prop({ required: false }) readonly paypalBalance!: string