Skip to content

Instantly share code, notes, and snippets.

{"can_view_chart":true}
@adasq
adasq / multiple_ssh_setting.md
Created October 29, 2023 18:54 — 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 "your_email@youremail.com"
@adasq
adasq / openai.jxa
Created April 24, 2023 17:55
Keyboard Maestor > Actions > Execute Javascipt For Automation
var app = Application.currentApplication();
app.includeStandardAdditions = true;
var OPENAI_TOKEN = 'YOUR TOKEN';
result = JSON.parse(app.doShellScript(`curl https://api.openai.com/v1/completions -H "Content-Type: application/json" -H "Authorization: Bearer ${OPENAI_TOKEN}" -d '{"model": "text-davinci-003", "prompt": "how are you?", "temperature": 0.9, "max_tokens": 150}'`))
app.displayAlert(result.choices[0].text);
@adasq
adasq / xxx3
Created July 24, 2017 19:44
xxx3
test0
test1
test2
test4
test5
test6
test7
test8
test9
test10
@adasq
adasq / xxx2
Created July 24, 2017 19:36
xxx2
army180
army181
army182
army183
army184
army185
army186
army187
army188
army189
@adasq
adasq / xxx
Last active July 23, 2017 19:48
xxx
d10
d11
d12
d13
d14
d15
d16
d17
d18
d19
@adasq
adasq / bibi2.min.js
Created December 13, 2016 10:45
w/o timeout
!function(e,t){function n(e){var t=e.length,n=ue.type(e);return!ue.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function i(e){var t=Ce[e]={};return ue.each(e.match(ce)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(ue.acceptData(e)){var o,a,s=ue.expando,u="string"==typeof n,l=e.nodeType,c=l?ue.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(r||c[f].data)||!u||i!==t)return f||(l?e[s]=f=K.pop()||ue.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=ue.noop)),"object"!=typeof n&&"function"!=typeof n||(r?c[f]=ue.extend(c[f],n):c[f].data=ue.extend(c[f].data,n)),o=c[f],r||(o.data||(o.data={}),o=o.data),i!==t&&(o[ue.camelCase(n)]=i),u?(a=o[n],null==a&&(a=o[ue.camelCase(n)])):a=o,a}}function o(e,t,n){if(ue.acceptData(e)){var i,r,o,a=e.nodeType,u=a?ue.cache:e,l=a?e[ue.expando]:ue.expando;if(u[l]){if(t&&(o=n?u[l]:u[l].data)){ue.isArray(t)?t=t.concat(ue.map(t,ue.camelCase)):t in o?t=[t]:(t=ue.camelCase(t),t=t in o?[t]:t.split(" "));for(i=0,r=t.length;i<r;i++)delete
!function(e,t){function n(e){var t=e.length,n=ue.type(e);return!ue.isWindow(e)&&(!(1!==e.nodeType||!t)||("array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)))}function i(e){var t=Ce[e]={};return ue.each(e.match(ce)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(ue.acceptData(e)){var o,a,s=ue.expando,u="string"==typeof n,l=e.nodeType,c=l?ue.cache:e,f=l?e[s]:e[s]&&s;if(f&&c[f]&&(r||c[f].data)||!u||i!==t)return f||(l?e[s]=f=K.pop()||ue.guid++:f=s),c[f]||(c[f]={},l||(c[f].toJSON=ue.noop)),"object"!=typeof n&&"function"!=typeof n||(r?c[f]=ue.extend(c[f],n):c[f].data=ue.extend(c[f].data,n)),o=c[f],r||(o.data||(o.data={}),o=o.data),i!==t&&(o[ue.camelCase(n)]=i),u?(a=o[n],null==a&&(a=o[ue.camelCase(n)])):a=o,a}}function o(e,t,n){if(ue.acceptData(e)){var i,r,o,a=e.nodeType,u=a?ue.cache:e,l=a?e[ue.expando]:ue.expando;if(u[l]){if(t&&(o=n?u[l]:u[l].data)){ue.isArray(t)?t=t.concat(ue.map(t,ue.camelCase)):t in o?t=[t]:(t=ue.camelCase(t),t=t in o?[t]:t.split(" "));for(i=0,r=t.length;i<r;i++)delete
ionic plugin add cordova-plugin-whitelist
@adasq
adasq / npm-shrinkwrap.json
Created April 10, 2016 10:36
npm-shrinkwrap.json
var fs = require('fs'),
path = require('path'),
npmShrinkwrapJson;
const NPM_SHRINKWRAP_PATH = path.join(__dirname, './npm-shrinkwrap.json'),
JSON_INDENT = ' ';
IGNORED_FIELDS = ['from', 'resolved'];
fs.readFile(NPM_SHRINKWRAP_PATH, function(err, npmShrinkwrapConent){
if(err){