Skip to content

Instantly share code, notes, and snippets.

@ashhitch
ashhitch / Template-Driven.html
Created January 5, 2018 13:59
Set default value for <select> in Angular 2+ Template Driven Forms
<select [ngModel]="field ||''">
<option value="">Select field</option>
<option *ngFor="let property of properties" [ngValue]="property">{{property.name}}</option>
</select>
@nathan-osman
nathan-osman / win32.go
Last active May 14, 2024 14:18
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@ezracb
ezracb / VMware Workstation Pro and Fusion Pro Licence Keys
Created April 9, 2021 14:43
VMware Workstation Pro and Fusion Pro Licence Keys
Obviously using these keys may be a grey area. I use them for my computer, but there are no guarentees VMware won't sue you if you use them in a commercial environment.
VMware Workstation 16
YF390-0HF8P-M81RQ-2DXQE-M2UT6
VMware Fusion Pro 12
YF390-0HF8P-M81RQ-2DXQE-M2UT6
As far as I know, this key works on both Fusion and Workstation.
@brianclements
brianclements / Commit Formatting.md
Last active May 14, 2024 14:16
Angular Commit Format Reference Sheet

Commit Message Format

This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].

We have very precise rules over how our Git commit messages must be formatted. This format leads to easier to read commit history.

Each commit message consists of a header, a body, and a footer.

@Abhrankan-Chakrabarti
Abhrankan-Chakrabarti / equation_solver.py
Created May 14, 2024 14:15
This repository contains Python code for solving the equation Σ(a+i)² = Σ(b+i)², where the sum of squares of consecutive integers is equal. The equation represents the sum of squares of (n-1) consecutive integers being equal to the sum of squares of n consecutive integers. The code provides a function to generate pairs of integers (a, b) satisfy…
def solve_equation(n):
x1, y1 = 2*n+1, 2*n*(n+1)
x2, y2 = y1//4, (n-1)//2+1
x, y = x2, y2
_2y2m1, nd2 = 2*y2-1, n//2
while 1:
a, b = (x//y2-_2y2m1)//2, y-nd2
if n%2:
a, b = b, a
🔥Complete Bug Bounty Cheat Sheet🔥
XSS
https://github.com/EdOverflow/bugbounty-cheatsheet/blob/master/cheatsheets/xss.md
https://github.com/ismailtasdelen/xss-payload-list
SQLi
https://github.com/EdOverflow/bugbounty-cheatsheet/blob/master/cheatsheets/sqli.md
@zpv
zpv / knowledge.md
Created June 7, 2019 05:14
Best Websites to Learn Ethical Hacking

Cybrary

Cybrary is a completely FREE online cybersecurity training website. Here you can Learn, contribute and join the only free and open source ethical hacking training community online. It provides training for most complicated topics of the IT sector. It is supported by a community of people to provide free up-to-date lessons and learning materials. Cybrary also provides the chance to connect with businesses in the ITsec industry.

Hack This Site

Hack This Site is a free, safe and legal training platform for hackers to test their hacking skills. The website has a vast selection of hacking articles. It also has a huge forum where users can discuss hacking and security. It’s an active community with many active projects in development. You’ll find a lot of new challenges and missions on the homepage including:

  • Basic missions
  • Realistic missions
#To Get List of Hardware
sudo networksetup -listallhardwareports
#To Disable IPv6 on Wifi Adapter
sudo networksetup -setv6off wi-fi
#To Disable IPv6 on Built-in Ethernet Adapter
sudo networksetup -setv6off Ethernet
@emlyn
emlyn / guitar.rb
Last active May 14, 2024 14:11
Strumming guitar chords in Sonic Pi
# Guitar Strumming - by Emlyn
# This tries to work out the guitar (or ukulele etc.) fingering for arbitrary chords (and tuning).
# It seems to work reasonably well for basic chords, but is quite naive and probably makes many mistakes.
# Ideas, bug reports, fixes etc. gratefully received, just comment below, or tweet @emlyn77.
# Feel free to make use of this code as you like (with attribution if you feel like it, but you don't have to).
# Thanks to @Project_Hell_CK for fixing the tuning, and spotting that it gets chord(:f, :major) not quite right.
# Next note higher or equal to base note n, that is in the chord c
define :next_note do |n, c|
# Make sure n is a number