Skip to content

Instantly share code, notes, and snippets.

@abhishekkhaware
abhishekkhaware / gist:7152721
Last active May 21, 2024 06:26
Create An Alias For Laravel and Codecept in Windows PowerShell.
# Laravel Artisan Commands Shortcut
function art($arg1,$arg2,$arg3,$arg4,$arg5) { php artisan $arg1 $arg2 $arg3 $arg4 $arg5}
Set-Alias a art
#### Use as by default Alias #####
# ge:r => generate:resource
# ge:c => generate:controller
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 21, 2024 06:25
crack activate Office on mac with license file
@bkdinoop
bkdinoop / login-example
Last active May 21, 2024 06:25
Flask-Login : login.py created by https://github.com/maxcountryman : Matthew Frazier
# -*- coding: utf-8 -*-
"""
Flask-Login example
===================
This is a small application that provides a trivial demonstration of
Flask-Login, including remember me functionality.
:copyright: (C) 2011 by Matthew Frazier.
:license: MIT/X11, see LICENSE for more details.
"""
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created May 21, 2024 06:24
cosmic-comics v2.1.1 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-2412192122-1938444825-1709503042-1000</user>
<keys>
<key installerType="Custom" displayName="Cosmic-Comics 2.1.0" displayVersion="2.1.0">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\4a525bd5-fa5f-5dd3-9bb6-56466846d973</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA["C:\Users\vagrant\AppData\Local\Programs\cosmiccomics\Uninstall Cosmic-Comics.exe" /currentuser /S]]></UninstallString>
const fetchStream = async (request)=>{
const controller = new AbortController();
try {
const option = {
method:request.method,
mode:request.mode,
credentials: 'include',
signal:controller.signal
};
if(request.headers) option.headers = request.headers;
@ankesh-kumar
ankesh-kumar / FlutterDBHelperModelClass.dart
Last active May 21, 2024 06:24
sqlite database helper file flutter
class ModelClass{
int id;
String stCol1="";
String stCol2="";
ModelClass({
this.id,
this.stCol1,
this.stCol2});
@aallan
aallan / mac-vendor.txt
Last active May 21, 2024 06:23
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@craigtp
craigtp / AdvancedDistributedSystemDesignCourseNotes.md
Created May 1, 2020 19:38
Notes on Udi Dahan's Advanced Distributed System Design Course

Advanced Distributed System Design Course - Udi Dahan

Notes by Craig Phillips

Fallacies of Distributed Computing

  • There are 11 fallacies of Distributed Computing:
    1. The network is reliable
    2. Latency isn’t a problem
    3. Bandwidth isn’t a problem
    4. The network is secure
  1. The topology won’t change
@ben-mohrbacher
ben-mohrbacher / .gitmessage
Created May 20, 2024 14:47
A git commit message template
<your-ticket-prefix>
# Subject Line
# ======================================================================
#
# One line less than 72 characters in length. Generally focused on the
# "What" rather than the "Why".
#
# Format <tag>: <message>
#
# `tag`: can be either a defined list of tags like "Add", "Remove",

Windows 10 - Using Git Bash With TMUX

Why Not Use WSL?

I tried the WSL and it isn't quite seamless enough for me. I ran in to problems when editing in VSCode and having watchers on my files (ng serve, dotnet watch run, etc.). In addition, I kept running in to problems that only manifest themselves when running in WSL. For example, this issue with doing production builds and the terser plugin has made many a developer rage-quit on using WSL. Just figuring out that it was an issue with the WSL took a lot of time.

That terser plugin issue was never resolved and I ended up having to keep a git bash window open in addition to my WSL console window so I could do production builds. To make matters worse, my npm packages were platform-dependent so I couldn't use the same project folder. So, my procedure was: commit whatever changes to test branch, push to repo, git pull on my "windows" project folder, and do a production build there