Skip to content

Instantly share code, notes, and snippets.

View tony-go's full-sized avatar
🚀
Contribute

Tony Gorez tony-go

🚀
Contribute
View GitHub Profile
@tony-go
tony-go / nodejs_deps.js
Created June 23, 2023 09:44
Dirty script to parse NodeSecure payload and get all nodejs dependencies.
const fs = require('fs');
const deps = JSON.parse(fs.readFileSync('./nsecure-result.json', 'utf8')).dependencies;
const node_js_deps = new Set();
for (const dep of Object.values(deps)) {
const versions = Object.values(dep.versions);
for (const version of versions) {
const local_nodejs_deps = version.composition.required_nodejs;
@tony-go
tony-go / APPLE_CERT.MD
Last active February 8, 2023 14:27
How to create a Developer ID Application certificate?

How to create a Developer ID Application certificate?

There are several ways to create a Developer ID application certificate. We'll go ahead and describe to more straightforward way to accomplish it

Requirements:

  • Be a member of the [Apple Developer Program][]
  • Having Xcode installed on your machine

Steps

[2019-09-29 22:51:51.402] [info] 2019-09-29T20:51:51.402Z peerlinks:peer id=be691d5d:44 got packet.type=syncResponse
[2019-09-29 22:51:51.414] [info] 2019-09-29T20:51:51.414Z peerlinks:sync-agent sync-agent.id=be691d5d:44/5daa0a63/peerlinks:discuss receiveQueryResponse() seq=5
[2019-09-29 22:51:51.414] [info] 2019-09-29T20:51:51.414Z peerlinks:channel [5daa0a63/peerlinks:discuss] sync cursor.height=1678 isBackward=false count=2
[2019-09-29 22:51:51.415] [info] 2019-09-29T20:51:51.415Z peerlinks:cache [5daa0a63] hasMessage() hit
[2019-09-29 22:51:51.415] [info] 2019-09-29T20:51:51.415Z peerlinks:cache [5daa0a63] hasMessage() hit
[2019-09-29 22:51:51.415] [info] 2019-09-29T20:51:51.415Z peerlinks:cache [5daa0a63] hasMessage() miss
[2019-09-29 22:51:51.416] [info] 2019-09-29T20:51:51.416Z peerlinks:channel [5daa0a63/peerlinks:discuss] partial dag external.count=0 known.count=1
[2019-09-29 22:51:51.416] [info] 2019-09-29T20:51:51.416Z peerlinks:sync-agent sync-agent.id=be691d5d:44/5daa0a63/peerlinks:discuss sendA

Keybase proof

I hereby claim:

  • I am tony-go on github.
  • I am tonygo (https://keybase.io/tonygo) on keybase.
  • I have a public key ASCraB_iIM4YO0jjWng5vd6uH8talvMFjc6iLebQJzoIHwo

To claim this, I am signing this object:

@tony-go
tony-go / app.js
Created December 16, 2017 18:38
Route
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import {Row, Col} from 'materialize-css'
import { BrowserRouter as Router, Link } from 'react-router-dom';
import Profil from '../Profil/Profil';
import Work from '../Work/Work'
import Skills from '../Skills/Skills'
@tony-go
tony-go / slack.js
Last active December 2, 2017 11:23
Diner Bot for slack
var request = require('request');
module.exports = function (context, cb) {
var demand = context.body.text.replace(context.secrets.TRIGGER, '');
var request_url = 'https://api.flickr.com/services/rest/';
var final_url = request_url
+ '?method=flickr.photos.search'
+ '&api_key=' + context.secrets.API_KEY