Skip to content

Instantly share code, notes, and snippets.

View aramodi's full-sized avatar
🎯
Working on something new - stay tuned!

Arash M. aramodi

🎯
Working on something new - stay tuned!
View GitHub Profile
@voxain
voxain / resources.md
Last active April 6, 2023 14:47
Favorite frontend & design resources
@gaearon
gaearon / modern_js.md
Last active October 25, 2024 06:12
Modern JavaScript in React Documentation

If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:

  • We define variables with let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.
  • We use the class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/Jav
@raphaelvallat
raphaelvallat / bruteforce.py
Last active November 8, 2024 08:54
Password brute-force in Python
"""
Password brute-force algorithm.
List of most probable passwords and english names can be found, respectively, at:
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt
Author: Raphael Vallat
Date: May 2018
Python 3
@wschenk
wschenk / login.js
Created November 28, 2017 02:41
create-react-app login.js rmwc example
import React, {Component} from 'react'
import { TextField, Dialog } from 'rmwc';
class Login extends Component {
state = {email: "", password: ""}
handleChange = (val) => (evt) => { this.setState( {...this.state, [val]: evt.target.value} ) }
loginForm = () => {
return (
<div>
@EvieePy
EvieePy / bot_example.py
Last active July 22, 2024 16:51
A Cogs Example for the rewrite version of - discord.py
import discord
from discord.ext import commands
import sys, traceback
"""This is a multi file example showcasing many features of the command extension and the use of cogs.
These are examples only and are not intended to be used as a fully functioning bot. Rather they should give you a basic
understanding and platform for creating your own bot.
These examples make use of Python 3.6.2 and the rewrite version on the lib.
--------- beginning of main
07-27 08:04:14.192 15 15 I : debuggerd: starting
--------- beginning of system
07-27 08:04:14.195 16 16 I vold : Vold 3.0 (the awakening) firing up
07-27 08:04:14.195 16 16 V vold : Detected support for: ext4 vfat
07-27 08:04:14.196 16 16 E vold : Failed to open default fstab /fstab.goldfish: Operation not permitted
07-27 08:04:14.196 16 16 E vold : Error reading configuration... continuing anyways: Operation not permitted
07-27 08:04:14.202 16 26 D vold : e4crypt_init_user0
07-27 08:04:14.202 16 26 D vold : e4crypt_prepare_user_storage for volume null, user 0, serial 0, flags 1
07-27 08:04:14.202 16 26 D vold : Preparing: /data/system/users/0
@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active November 15, 2024 16:02
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

Canidae
Felidae
Cat
Cattle
Dog
Donkey
Goat
Guinea pig
Horse
Pig
@githubutilities
githubutilities / Apple-real-device-debugging.md
Last active November 18, 2023 12:41
install ipa using command line

Apple Real Devices Debugging

What you need

  • certificate--which tells your devices that Apple trust you
  • a app id
  • a test device
  • a provisioning profile
@joakin
joakin / git-find-me-the-fucking-deleted-file.sh
Last active October 26, 2024 19:11
finding a deleted file in a git repository
# If you don't remember the exact path/name, search the log for deleted files
git log --diff-filter=D --summary | grep delete
# Find the file you want to get from the ouput, and use the path
# Find the commits that involved that path
git log --all -- some/path/to/deleted.file
# Bring the file back to life to the current repo (sha commit of parent of commit that deleted)
git checkout shaofthecommitthatdeletedthefile^ -- some/path/to/deleted.file