Skip to content

Instantly share code, notes, and snippets.

@alimsk
alimsk / google-dorks
Created April 10, 2022 01:17 — forked from stevenswafford/google-dorks
Listing of a number of useful Google dorks.
" _ _ "
" _ /|| . . ||\ _ "
" ( } \||D ' ' ' C||/ { % "
" | /\__,=_[_] ' . . ' [_]_=,__/\ |"
" |_\_ |----| |----| _/_|"
" | |/ | | | | \| |"
" | /_ | | | | _\ |"
It is all fun and games until someone gets hacked!
@alimsk
alimsk / hashtool.go
Last active February 25, 2022 19:47
hash multiple files in Go
package main
import (
"crypto/md5"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"encoding/hex"
"flag"
"fmt"
@alimsk
alimsk / readme.md
Last active February 21, 2022 00:01
fix wine keyboard not working after alt-tabbing or switching app (lose focus)

do the following:

  • open regedit (type wine regedit in your terminal)
  • goto HKEY_CURRENT_USER\Software\Wine\X11 Driver.

if any of those key didn't exist, then create it by right clicking the node > new > key.

image showing how to create new key

and name it according to which key is missing. in my case, the X11 Driver didn't exist, so i create it:

@alimsk
alimsk / fade_indexed_stack.dart
Last active February 8, 2022 01:56 — forked from diegoveloper/fade_indexed_stack.dart
animated indexed stack
import 'package:fluent_ui/fluent_ui.dart';
// import 'package:flutter/material.dart'; // uncomment if you use material
class AnimatedIndexedStack extends StatefulWidget {
final int index;
final List<Widget> children;
final Duration duration;
final Widget Function(Widget, AnimationController) transitionBuilder;
const AnimatedIndexedStack({
@alimsk
alimsk / .go
Last active January 2, 2022 06:05 — forked from hyg/gist:9c4afcd91fe24316cbf0
open browser in golang
import ("os/exec"; "runtime"; "fmt")
func openBrowser(url string) error {
switch runtime.GOOS {
case "linux", "android":
// termux supports xdg-open
return exec.Command("xdg-open", url).Run()
case "windows":
return exec.Command("rundll32", "url.dll,FileProtocolHandler", url).Run()
case "darwin":
@alimsk
alimsk / .md
Created November 9, 2021 08:30
how to link discord account

use below format:

https://discord.com/users/<USERID>

replace <USERID> with your snowflake id.

how to get snowflake id

enable developer mode then right click your message (at profile image) then copy id.

@alimsk
alimsk / unicode.md
Created November 6, 2021 17:14 — forked from zyedidia/unicode.md

Text Encoding

How are text files encoded, and what are the pros and cons of different encodings? This document introduces the ASCII and Unicode encodings to answer these questions. Some short pieces of Go code are provided which you can run yourself to see how strings are being encoded. Go is used because it has built-in support for Unicode, but you should be able to follow without any knowledge of Go.

ASCII

@alimsk
alimsk / example.py
Last active February 27, 2022 21:26
python calculate EXTENDED_ARG
print(split_arg(270))
# output:
# (14, 1, 0, 0)
# when used:
# EXTENDED_ARG 1
# JUMP_ABSOLUTE 14
@alimsk
alimsk / README.md
Created September 19, 2021 13:05
install android sdk for flutter without android studio
@alimsk
alimsk / bindings.json
Created September 6, 2021 07:34
my fucking micro bindings.json
{
"Alt-/": "lua:comment.comment",
"CtrlUnderscore": "lua:comment.comment",
"F12": "Save,Quit",
"F6": "command-edit:gorename ",
"Tab": "Autocomplete|IndentSelection|InsertTab",
"CtrlDelete": "DeleteWordRight",
"OldBackspace": "DeleteWordLeft"
}