Skip to content

Instantly share code, notes, and snippets.

View kiranparajuli589's full-sized avatar
🎸
LalaLaa

Kiran Parajuli kiranparajuli589

🎸
LalaLaa
View GitHub Profile
@kiranparajuli589
kiranparajuli589 / response.xml
Last active October 11, 2022 04:50
User capabilities response with ocis
❯ curl -kv -ueinstein:relativity https://host.docker.internal:9200/ocs/v1.php/cloud/capabilities | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
<meta>
<status>ok</status>
<statuscode>100</statuscode>
<message>OK</message>
</meta>
<data>
@kiranparajuli589
kiranparajuli589 / setup.md
Last active July 27, 2022 05:57
Setup Guide for Class Management System Project

Backend Setup

Installation

  1. Install required system dependencies
sudo apt-get install python3-dev default-libmysqlclient-dev build-essential
  1. Remove backports.zoneinfo package from requirements.txt
  2. Create virtual env
python -m venv venv
@kiranparajuli589
kiranparajuli589 / .drone.yml
Created July 20, 2022 06:28
Drone YML to reproduce user_ldap issue #746
---
{
"kind": "pipeline",
"type": "docker",
"name": "core-apiAll-e-UK-latest-mysql8.0-php7.3",
"workspace": { "base": "/var/www/owncloud", "path": "testrunner/apps/" },
"steps": [
{
"name": "install-core",
"image": "owncloudci/core",
@kiranparajuli589
kiranparajuli589 / json
Created July 15, 2022 06:10
config:list for error multikeyencryption failed
{
"system": {
"instanceid": "oc5qorwksd85",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost"
],
"datadirectory": "\/home\/kiran\/www\/owncloud\/core\/data",
"overwrite.cli.url": "http:\/\/localhost\/owncloud\/core",
@kiranparajuli589
kiranparajuli589 / bank.py
Created March 8, 2022 13:19
bank, deduct, deposit, statement, statement-graph
import random
from datetime import datetime, timedelta
from typing import Optional, Tuple
class Owner:
def __init__(self, name: str, dob: str):
self.name = name
self.dob = dob
We couldn’t find that file to show.
@kiranparajuli589
kiranparajuli589 / log.html
Created December 22, 2021 04:51
Vue Unit Test Log
<pre><span style="background-color:#CC0000"><font color="#2E3436"><b> FAIL </b></font></span> <font color="#8D8F8A">packages/web-app-files/tests/unit/views/</font><b>SharedWithOthers.spec.js</b>
SharedWithOthers
<font color="#C4A000">β—‹</font> skipped should show the list loader when the wrapper is still loading
when the wrapper is not loading anymore
<font color="#C4A000">β—‹</font> skipped should show the no content message component if the paginated resources is empty
when length of paginated resources is greater than zero
<font color="#4E9A06">βœ“</font> should load the resource table with correct props (4 ms)
<font color="#C4A000">β—‹</font> skipped should not show the no content message component
<font color="#C4A000">β—‹</font> skipped should show the list info component for the resource table
<font color="#C4A000">β—‹</font><font color="#8D8F8A"> skipped should call &quot;$_fileActions_triggerDefaultAction&quot; method if &quot;fileClick&quot; event is emitte
@kiranparajuli589
kiranparajuli589 / smilie_replacer.js
Created November 14, 2021 06:22
Smile replacer for tiptap editor
import {Extension, textInputRule} from "@tiptap/core"
export const SmilieReplacer = Extension.create({
name: "smilieReplacer",
addInputRules() {
return [
textInputRule({find: /-___- $/, replace: "πŸ˜‘ "}),
textInputRule({find: /:"-\) $/, replace: "πŸ˜‚ "}),
textInputRule({find: /':-\) $/, replace: "πŸ˜… "}),
@kiranparajuli589
kiranparajuli589 / Iframe.js
Created November 14, 2021 06:22
Iframe Plugin for Tiptap
import { Node } from "@tiptap/core"
export const inputRegex = /https:\/\/www.youtube.com\/[a-z?=A-Z\-0-7&_]+/
export default Node.create({
name: "iframe",
group: "block",
defaultOptions: {
allowFullscreen: true,
HTMLAttributes: {
@kiranparajuli589
kiranparajuli589 / Editor.vue
Created November 14, 2021 06:21
Tip tap editor for vue js
<template>
<v-card
class="full-width"
flat tile
>
<div v-if="label"
class="tiptap-label"
>
{{ label }}
</div>