Skip to content

Instantly share code, notes, and snippets.

<nppcrypt version="1016">
<encryption cipher="rijndael" key-length="32" mode="gcm" aad="true" encoding="base64" />
<key algorithm="scrypt" N="16384" r="8" p="1" salt="rREzvXr7e2ZD1DzknqLTBw==" />
<iv value="gfkpkWowD9eZBFHdQDvwAQ==" method="random" /><tag value="HmApwM17iuxeGqVEB+Fyxw==" />
</nppcrypt>
r4QdU3U3gY0qayWggDDqG8W8LrkhdMtO7JNtqEqsdbmTyhojOG4bBLzJ7B9MOeSQVq8q41xWfT+H+x8mEpf7gkpbYziHCiVcM8CrqvVJdVPIVY3cGxt0zxXTf4aawgxJ
la9hBzXFLdWjQSmb5h/eZUXZgH5P6YY1XUnizoepPRuwWO+EhsoHeTWxgLpiwHtPKN4uNOlyrbH9Gk9ICFxMGM+eKkU6LANArHlgWGz6WdPXGlPvSpZC9FkEEZ9c/KXm
kRS2EfTaNm8e59cNWjlmzhiMtroVA94EEr/292OiRK/WPtg/QK35u/FMTDJLCKXefew+qlVraYo/iG3QAHq0FkN7iaP2p+O7VlwyMAf8Ab3gVCJhDqwTt58bOvdPOWgO
yVw6D91kA0MwmVrP2oINWN+vVUoSG9iQGVpqbY3fP9mivdlf+0xnE9oEKBCNgoqP2iOI+XDMYSx+YRPEWUMmKKiZEyPQd31/TLuh/tK/TQEgncygQZjNPh7BvV0zm7Zn
isr5pTqapwOY9zp7U1F/4ilWKELGFgLApH/HiImaQfz2WS0Y7NuRdPXs0u54BKDY+up6tvD86MSrKDElheIhY2Wma/kM8z4dkmUcRmoDU4pahklDVO6jfxjosDSIqSC6
<nppcrypt version="1016">
<encryption cipher="rijndael" key-length="32" mode="gcm" aad="true" encoding="base64" />
<key algorithm="scrypt" N="16384" r="8" p="1" salt="XF9VrrMH3KGWS9j63Y9ejg==" />
<iv value="idTut6E8THN7cVI4bN7BFg==" method="random" /><tag value="W3S/KOuz36UePGDXhcrLTQ==" />
</nppcrypt>
CYHY/SsbNQBRy3wZ8DNqf5eWSaWNvW3Y9UdFUOFGSXL76ddG5rofjlVPBXPqEjtnaMpFFOQNtvZHs/S7yFfZOsZdyHpkuH2k7yNEXLbspfDNgDZJGjMkqq+VOp/LHib0
xN+kDWwr/Qgx4mAEQAGkeus8Te8lQ/3nAqVeZAbLn73U5eA8h8KBc2o0oWuiYPjUqYOas1kPcz/ek8Dt567OlKQeMn0VLi4i5ukaEB7u7YSacrcOogisjDE+mCaSu1yI
QtkEKNIaOy6pHrGafWSyOM5sEXFiXSlz3eCzEbMNZH5ybh9bxhN3vaTKAvHapZNnLcSYjHHNL2BrH+2rKGw2JlNbHOwvulHMpLiGDEpA0ydCyvcsR4oj/pZTHttHHgad
wghxqp8HQP2V/bQUa1a+V1/0+QHntAf2nKfnVAZ3IVTNrESJ8Ut2DFW2fSQcu0/W5FhLQpq6FncklAhjO5C/yux/RhGDgVxJih+BO1Rh4l3JhxcsX62dNnQ8qHYc4iSS
p+pKJvDL4hX9Rb7EOxglDI2Agq8S60um5+8oWbCLrOcOWVhnyA8352qvdsBcbW4TeLupaIzoVLiZNEqWyiCa22A8cx140ETYhFGUo+twmmRV+kuJ/JVr+taNDqJD4B34
@Royalone94
Royalone94 / macBuildScript.sh
Created December 21, 2023 13:27 — forked from AttilaBerczik/macBuildScript.sh
Build script for IOS CI/CD Pipeline
# Create build folder
cd
mkdir build
cd build
# Download repository from Bitbucket
git clone {your git repo}
cd {the name of your git repo}/
# Install dependencies
@Royalone94
Royalone94 / killa
Created July 6, 2023 08:29 — forked from jossef/killa
python kill process by port
#!/usr/bin/env python
import subprocess
import sys
import re
import os
def get_pids(port):
command = "sudo lsof -i :%s | awk '{print $2}'" % port
pids = subprocess.check_output(command, shell=True)
@Royalone94
Royalone94 / mongodb.py
Created February 2, 2023 13:47 — forked from mattrobenolt/mongodb.py
Wrapper for pymongo to integrate nicer into Django with failover stuff
from pymongo import Connection
from pymongo.collection import Collection
from pymongo.errors import AutoReconnect
from django.conf import settings
from types import FunctionType
import functools
import time
@Royalone94
Royalone94 / gist:54ca1e8cf71364e2123146d738af9ea0
Created May 12, 2022 19:26 — forked from chuckwagoncomputing/gist:4234127
pbcopy ssh public key to your clipboard
#pbcopy < ~/.ssh/id_rsa.pub
#or
cat ~/.ssh/id_rsa.pub | pbcopy
@Royalone94
Royalone94 / react-native-flatlist-load-more.js
Created March 8, 2022 16:03 — forked from FaiChou/react-native-flatlist-load-more.js
A demo for react-native FlatList with load more action
class Demo extends React.Component {
state = {
data: [],
refreshing: true,
last_id: 0,
}
onEndReachedCalledDuringMomentum = true
componentDidMount() {
this._refreshData();
}
@Royalone94
Royalone94 / multiple_ssh_setting.md
Created August 10, 2021 09:19 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"

Moving Files with SharePoint Online REST APIs in Microsoft Flow

About

This is an overview of how to move files with Microsoft Flow using the SharePoint - Send an HTTP request to SharePoint action and SharePoint Online REST APIs.

These SharePoint Online REST APIs can be used outside of Flow, but you will need to handle authentication and provide an X-RequestDigest header with any POST requests (as with any SP REST POST request).

In the case of Flow's SharePoint - Send an HTTP request to SharePoint action, authentication is handled for you and you do not need to provide the X-RequestDigest header.