Skip to content

Instantly share code, notes, and snippets.

@hootlex
hootlex / laravellocal.md
Last active May 3, 2024 08:06
Run laravel project locally

##Windows users:

cmder will be refered as console

##Mac Os, Ubuntu and windows users continue here:

  • Create a database locally named homestead utf8_general_ci
@steveway
steveway / siglent_pnsu.py
Created November 28, 2022 11:25
Receives the configuration of a Siglent Oscilloscope using the PNSU command.
#! /usr/bin/env python3
import pyvisa as visa
from serial.serialutil import SerialException
def main():
# Get list of connected Siglent devices
rm = visa.ResourceManager()
device_list = {}
for device_name in rm.list_resources():
@denguir
denguir / cuda_install.md
Last active May 3, 2024 08:01
Installation procedure for CUDA & cuDNN

How to install CUDA & cuDNN on Ubuntu 22.04

Install NVIDIA drivers

Update & upgrade

sudo apt update && sudo apt upgrade

Remove previous NVIDIA installation

@Akhil-Suresh
Akhil-Suresh / postman_installation.md
Last active May 3, 2024 08:00
Installing Postman on Ubuntu/Debian

Installing Postman

Step 1

If any version of postman is installed we need to remove it

sudo rm -rf /opt/Postman

Step 2

@gxfxyz
gxfxyz / dahua_rpc.py
Created December 3, 2018 01:20
Basic Dahua RPC wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Basic Dahua RPC wrapper.
Example:
from dahua_rpc import DahuaRpc
dahua = DahuaRpc(host="192.168.1.10", username="admin", password="password")
@jinjier
jinjier / 250.csv
Last active May 3, 2024 07:56
JavDB Top 250 movies code list. [Updated at 2024/02]
1 LAFBD-41
2 SSNI-497
3 ABP-984
4 IPX-580
5 IPX-811
6 IPX-177
7 STARS-804
8 SMBD-115
9 ABP-968
10 ABF-017
@tikhiy
tikhiy / index.js
Created December 29, 2021 17:20
Save Brandmark As PNG From app.brandmark.io
// $0 = .logo-inner > svg
const FILENAME = "brandmark.png"
const HEIGHT = 3840
const SCALE = 1
const WIDTH = 3840
const OCTET_STREAM = "image/octet-stream"
const PNG = "image/png"
const SVG = "image/svg+xml"
const canvas = document.createElement("canvas")
@ethack
ethack / TypeClipboard.md
Last active May 3, 2024 07:53
Scripts that simulate typing the clipboard contents. Useful when pasting is not allowed.

It "types" the contents of the clipboard.

Why can't you just paste the contents you ask? Sometimes pasting just doesn't work.

  • One example is in system password fields on OSX.
  • Sometimes you're working in a VM and the clipboard isn't shared.
  • Other times you're working via Remote Desktop and again, the clipboard doesn't work in password boxes such as the system login prompts.
  • Connected via RDP and clipboard sharing is disabled and so is mounting of local drives. If the system doesn't have internet access there's no easy way to get things like payloads or Powershell scripts onto it... until now.

Windows

The Windows version is written in AutoHotKey and easily compiles to an executable. It's a single line script that maps Ctrl-Shift-V to type the clipboard.

@alexwidua
alexwidua / ContentView.swift
Created July 4, 2023 17:07
SwiftUI Grid Animation
import SwiftUI
// 1. Use looped H/VStacks to create a grid
// 2. Conditionally increase spacing to grow/shrink the grid
// 3. Calculate the distance of each dot to the center and use the value to stagger the animation
//4. Add random delay on top of the staggered delay value
struct ContentView: View {
// const & state
@melvinsh
melvinsh / mimetypes.txt
Created December 13, 2018 23:01
Mime types for Burp Suite
application/atom+xml
application/json
application/json
application/json
application/ld+json
application/rss+xml
application/vnd.geo+json
application/xml
application/xml
application/javascript