I hereby claim:
- I am apotox on github.
- I am saphx (https://keybase.io/saphx) on keybase.
- I have a public key ASCSTpZmiKKFB9Wbi7xJM3DUHxLCUCOOwFatgApeuEck4Ao
To claim this, I am signing this object:
| JavaScript █████████████████░░░ ___ | |
| HTML ███████████░░░░░░░░░ |[_]| | |
| CSS ██████████░░░░░░░░░░ |+ ;| | |
| React █████████████████░░░ `---' | |
| Golang ██████████████░░░░░░ | |
| Muscle ███████████░░░░░░░░░ |
I hereby claim:
To claim this, I am signing this object:
| language: node_js | |
| node_js: | |
| - node | |
| cache: | |
| directories: | |
| - node_modules | |
| script: | |
| - yarn install | |
| - yarn test | |
| - yarn build |
| #restart a process in a background Screen. | |
| ps aux | awk '/process_filename/ {print}' | awk '{print $2}' | xargs kill -SIGTERM | |
| echo "restarting process_filename.." | |
| screen -r <screen_id> -X stuff $"/path/to/process_filename -params=123\n" | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Numerics; | |
| using System.Security.Cryptography; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Linq; | |
| using System.Globalization; |
| import axios from 'axios' | |
| import {combineReducers, createStore, applyMiddleware} from 'redux' | |
| import thunk from 'redux-thunk' | |
| import listTodoReducer from './components/ListTodo/ListTodo.reducer' | |
| const API_ENDPOINT = "https://api...." | |
| //combine project reducers | |
| const reducers = combineReducers({ | |
| listTodoReducer |
| export const DELETE_ITEMS = payload => { | |
| return (dispatch, getState, api) => { | |
| api.delete(`items?ids=${payload}`) | |
| .then(() => { | |
| //dispatch(SUCCESS_NOTIFICATION()) | |
| }) | |
| .catch(err => { |
| const fetch = require("node-fetch"); | |
| const { api_url } = require("./config"); | |
| exports.sourceNodes = async ( | |
| { reporter, actions, createNodeId, createContentDigest }, | |
| options | |
| ) => { | |
| if (process.env.NODE_ENV == "development") { | |
| reporter.warn("Welcome to MYCustomer Plugin"); | |
| } |
| const { success, failed } = require("./services/responses"); | |
| const { VerifyToken } = require("./services/security"); | |
| exports.handler = async (event, context) => { | |
| context.callbackWaitsForEmptyEventLoop = false; | |
| const user = await VerifyToken(event.queryStringParameters.token); | |
| if (!user) return failed("unauthorized", 401); |