Skip to content

Instantly share code, notes, and snippets.

View jvmvl's full-sized avatar
😜
Hello World

Jamal Chahir jvmvl

😜
Hello World
View GitHub Profile
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active April 27, 2025 07:28
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
/// flutter_background_geolocation Hello World
/// https://github.com/transistorsoft/flutter_background_geolocation
////
// For pretty-printing location JSON. Not a requirement of flutter_background_geolocation
//
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter_background_geolocation/flutter_background_geolocation.dart'
@atinux
atinux / async-foreach.js
Last active April 2, 2025 11:34
JavaScript: async/await with forEach()
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
const start = async () => {
await asyncForEach([1, 2, 3], async (num) => {
await waitFor(50)
@tofirius
tofirius / mysql-dump-tables-by-prefix.txt
Last active January 16, 2023 19:56
MySQL dump of tables that begin with a given prefix
mysql database_name -u username -pPassWord -N -e 'show tables like "tableprefix\_%"' | xargs mysqldump database_name -u username -pPassWord > prefixedtable_dump.sql
anonymous
anonymous / gist:d9b9552df056a6773ad5
Created May 21, 2014 18:25
Fast polygon self-intersection in javascript
/**
* findSelfIntersects
*
* Detect self-intersections in a polygon.
*
* @param {object} GeoJSON polygon co-ordinates.
* @return {array} array of points of intersections.
*/
var findSelfIntersects = function(geoJsonPolygon) {
var coordinates = geoJSON2JTS(geoJsonPolygon);
@Ex094
Ex094 / psr.py
Created November 20, 2013 15:57
A Simple Paper, Scissor, Rock game in Python, Might be buggy
import random
from random import choice
user_score = 0
pc_score = 0
usr_choice = ['paper', 'scissor', 'rock']
user_name = input('Please enter your good name: ')
@Ex094
Ex094 / morseclass.py
Created November 20, 2013 15:55
A Small Python Class I made for encoding and decoding Morse code Thanks to Arkphaze for code improvements
class ex094morse:
morse_alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
morse_encode = ['.-', '-...', '-.-.', '-.', '.', '..-.', '--.', '....', '..', '.---', '-.-', '.-..', '--', '-.', '---', '.--.', '--.-', '.-.','...' ,'-' ,'..-' ,'...-' ,'.--' ,'-..-' ,'-.--' ,'--..' ,'-----' ,'.----','..---','...--','....-','.....','-....','--...','---..','----.']
def encode(self, text):
store = ''
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active April 21, 2025 14:46
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix

@mreidsma
mreidsma / .htaccess
Created July 13, 2012 20:22
Simple click tracking script
// .htaccess
//
// Add this to the directory where your write.php will be stored
// This is an easy way to do an HTTP request to the script with the data
<IfModule mod_rewrite.c>
RewriteEngine On
# Change the following to the base directory of this file
RewriteBase /clickstats/