Skip to content

Instantly share code, notes, and snippets.

View anishpateluk's full-sized avatar

Anish anishpateluk

  • Super Awesome
  • United Kingdom
View GitHub Profile
@matale
matale / delete_linkedin_saved_jobs.js
Created March 28, 2021 11:01
Script to help automatically delete Saved Jobs on LinkedIn, LinkedIn only allows you to delete 1 job at a time which is a problem when you have hundreds of saved jobs.
// Open Chrome. Not tested on other browsers but should work ¯\_(ツ)_/¯.
// Go to https://www.linkedin.com/my-items/saved-jobs/
// Make sure Saved and not Applied is selected.
// Open the Chrome Dev Tools by hitting F12 on your keyboard.
// Go to Console tab.
// Paste this script in the space bellow after the little > symbol.
// Hit Enter.
// The jobs will start to be deleted 1 by 1 after a 5 sec pause.
// Leave the window open but you can do something else while it does it's thing.
// If it gets tripped up just start over.
@BigNerd
BigNerd / k9s.txt
Last active August 20, 2024 22:23
K9s column descriptions
View: Pods(<namespace>)[number of pods listed]
NAME pod name
READY number of pods in ready state / number of pods to be in ready state
RESTARTS number of times the pod has been restarted so far
STATUS state of the pod life cycle, such as Running | ... | Completed
CPU current CPU usage, unit is milli-vCPU
MEM current main memory usage, unit is MiB
%CPU/R current CPU usage as a percentage of what has been requested by the pod
%MEM/R current main memory usage as a percentage of what has been requested by the pod
@Nico769
Nico769 / JupyterDocker.md
Created June 30, 2020 09:12
Running Jupyter notebooks with Docker-compose in PyCharm 2020.1 Professional Edition.
  • Create a Python project with default Venv in the same folder where Dockerfile and docker-compose.yml are located
  • Go to Settings -> Build, Execution, Deployment -> Docker and create a new Docker server. Use unix socket. "Successfully connected" should appear.
  • Configure Docker Compose as a remote Pycharm interpreter as per documentation.
  • Configure the Jupyter Server as per documentation, DO NOT use Managed Server option.
  • In the Project panel, right click on docker-compose.yml and run it.
  • Manually connect to Docker in the Services panel.
  • Run the Jupyter Notebook cells.
// Only export the things that are actually needed, cut out everything else
export { WebGLRenderer } from 'three/src/renderers/WebGLRenderer.js'
export { ShaderLib } from 'three/src/renderers/shaders/ShaderLib.js'
export { UniformsLib } from 'three/src/renderers/shaders/UniformsLib.js'
export { UniformsUtils } from 'three/src/renderers/shaders/UniformsUtils.js'
export { ShaderChunk } from 'three/src/renderers/shaders/ShaderChunk.js'
export { Scene } from 'three/src/scenes/Scene.js'
export { Mesh } from 'three/src/objects/Mesh.js'
export { LineSegments } from 'three/src/objects/LineSegments.js'
@bradtraversy
bradtraversy / docker_wordpress.md
Last active September 16, 2024 05:17
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@jon-a-nygaard
jon-a-nygaard / README-Highcharts-Webpack-Babel.md
Last active October 30, 2020 18:50
A Highcharts example in use with Webpack and Babel.

A Highcharts example in use with Webpack and Babel.

Install

  1. Download source files
  2. Run npm install to install all dependencies.
  3. Run npm run build to bundle app.js into bundle.js

Open application

  1. Open index.html in a browser.
@lilactown
lilactown / promises.re
Last active August 20, 2022 07:56
Notes on using JavaScript Promises in ReasonML/BuckleScript
/**
* Making promises
*/
let okPromise = Js.Promise.make((~resolve, ~reject as _) => [@bs] resolve("ok"));
/* Simpler promise creation for static values */
Js.Promise.resolve("easy");
Js.Promise.reject(Invalid_argument("too easy"));
@marshallswain
marshallswain / authentication.js
Last active September 24, 2021 08:59
Example tools for using querystring redirects with Feathers OAuth login.
'use strict';
const authentication = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const local = require('feathers-authentication-local');
const oauth2 = require('feathers-authentication-oauth2');
const GithubStrategy = require('passport-github');
// Bring in the oauth-handler
const makeHandler = require('./oauth-handler');
@judy2k
judy2k / parse_dotenv.bash
Created March 22, 2017 13:34
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)