Skip to content

Instantly share code, notes, and snippets.

View mamged's full-sized avatar
🎯
Focusing

mamged mamged

🎯
Focusing
View GitHub Profile
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ return installedModules[moduleId].exports;
@mamged
mamged / psql-with-gzip-cheatsheet.sh
Created December 5, 2021 19:48 — forked from brock/psql-with-gzip-cheatsheet.sh
Exporting and Importing Postgres Databases using gzip
# This is just a cheat sheet:
# On production
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz
# On local
scp -C production:~/database.sql.gz
dropdb database && createdb database
gunzip < database.sql.gz | psql database
#Osx
config dir: /usr/local/etc/redis.conf
db dif: /usr/local/var/db/
STOP REDIS : brew services stop redis
START REDIS: brew services start redis
#Ubuntu
config dir: /etc/redis/redis.conf
db dif: /var/lib/redis
STOP REDIS : sudo systemctl stop redis
START REDIS: sudo systemctl start redis
@mamged
mamged / mac-setup-redis.md
Created April 12, 2020 07:39 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
AB7A32595BAE2BDF0745876DFDECA0F73D92E446D22333F47930D37C0D4FCD36F42B191648D6EB800A6FC2BD145765FA9FE81CFA486DB9783A862DBC64ACE0AF3A4A8F4A40E8BA13F6A1D76E5F74A4F4E0753BBA79D9500617B6354BF2E651E40D1FA8B3301C660AEB4B6426C802
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],[function(e,t,n){"use strict";e.exports=n(128)},function(e,t,n){e.exports=n(136)},function(e,t,n){e.exports=n(138)()},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise(function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)})}}n.d(t,"a",function(){return i})},function(e,t,n){var r=n(8),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlo
This file has been truncated, but you can view the full file.
{"version":3,"sources":["../node_modules/react/index.js","../node_modules/@babel/runtime/regenerator/index.js","../node_modules/prop-types/index.js","../node_modules/inherits/inherits_browser.js","../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","../node_modules/safe-buffer/index.js","../node_modules/webpack/buildin/global.js","../node_modules/process/browser.js","../node_modules/buffer/index.js","../node_modules/bn.js/lib/bn.js","../node_modules/history/node_modules/warning/browser.js","../node_modules/elliptic/lib/elliptic.js","../node_modules/axios/lib/utils.js","../node_modules/minimalistic-assert/index.js","../node_modules/path-browserify/index.js","../node_modules/hash.js/lib/hash/utils.js","../node_modules/warning/warning.js","../node_modules/cipher-base/index.js","../node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","../node_modules/invariant/browser.js",".
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{11:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i}),n.d(t,"c",function(){return s}),n.d(t,"h",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"d",function(){return u}),n.d(t,"e",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"g",function(){return f});var a=n(1),r=n.n(a),o=n(4);n(149);function i(){return new Promise(function(e,t){var n=setInterval(function(){window.endpoints&&(window.endpoints.ads?e(!0):e(!1)),clearInterval(n)},100);setTimeout(function(){return e(!1)},3e3)})}window.endpointsObj=e.endpoints;var s=function(){var t=Object(o.a)(r.a.mark(function t(n){var a,o;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,new Promise(function(t,n){var a=setInterval(function(){e.getAdminMessage&&t(),clearInterval(a)},100);setTimeout(n,3e3)});case 2:return t.next=4,e.getAdminMessage();case 4:if(a=t.sent,window.curentAdminMessage=a,o=window.localStorage.getItem("lastMessage"),!win
{"version":3,"sources":["messaging.js","backend/utils.js","backend/ad-viewer.js","backend/ad-window-countdown.js","backend/text.js","backend/decrypt.js","backend/app.js","backend/app-update.js","backend/system-checks.js","backend/check-MID.js","backend/alert.js","backend/upzip-gdata.js","channels.js","notifications.js","ViaccessOrca/сonfigurationConstants.js","ViaccessOrca/ViaccessOrca.js","ViaccessOrca/voPlayerHelpers.js","Home.js","App.js","serviceWorker.js","index.js","backend/endpoints.js"],"names":["canShowAdsRequest","Promise","resolve","reject","intvl","setInterval","window","endpoints","ads","clearInterval","setTimeout","endpointsObj","global","getAdminMessage","_ref","Object","C_Users_m2_Videos_connect_kings_nwjs_src_ui_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__","C_Users_m2_Videos_connect_kings_nwjs_src_ui_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","mark","_callee","cb","adminMsg","lastMsg","wrap","_context","prev","next
2CEF0AC6DD0DE631C9FC8ABA2E7EFD74B53E81CD913E3312374DB0B8AAB21063FED219E5DD1FF08D6C8C313602C599F51437F9B6C47A8C80067E973E864CE317E0E7C84A2FC911F848