Skip to content

Instantly share code, notes, and snippets.

@revant
revant / README.md
Last active May 10, 2024 07:41
ERPNext Development for beginners

Prerequisites:

  • "git" things to know
    • create app's git repo
    • create fork repo
    • create feature branch
    • send, approve and accept merge request
    • git tags, prepare release script.
    • push release to HEAD branch, e.g version-13, version-12, etc.
  • docker
@liamgriffiths
liamgriffiths / traceroute.js
Last active May 10, 2024 07:40
traceroute clone in javascript
// sloppy traceroute clone
// inpired by https://blogs.oracle.com/ksplice/entry/learning_by_doing_writing_your
// and made possible by https://www.npmjs.org/package/raw-socket
var raw = require('raw-socket');
var dns = require('dns');
var target = process.argv[2] || '173.230.146.29';
var MAX_HOPS = 64;
var TIME_LIMIT = 5000;
List of supported emojis in the game client:
1. 😃 U+1F603 9. 😛 U+1F61B 18. 😥 U+1F625
2. 😊 U+1F60A 10. 😎 U+1F60E 19. 😭 U+1F62D
3. 👎 U+1F44E 11. 😏 U+1F60F 20. 😈 U+1F608
3. 👍 U+1F44D 12. 😑 U+1F611 21. ✋ U+270B
4. 😀 U+1F600 13. 😠 U+1F620 22. 👼 U+1F47C
5. 😬 U+1F62C 14. 😡 U+1F621 23. ☠️ U+2620
6. 😆 U+1F606 15. 😖 U+1F616 24. ☝ U+261D
7. 😍 U+1F60D 16. 😮 U+1F62E
@patriknyblad
patriknyblad / xcrun_simctl_cheatsheet.md
Last active May 10, 2024 07:36
iOS Simulator Terminal Commands `$ xcrun simctl`

Managing iOS Simulators

List all simulators created

$ xcrun simctl list --json

Delete old and unavailable simulators

$ xcrun simctl delete unavailable
@ehizman
ehizman / UsernamePasswordAuthenticationFilter.java
Last active May 10, 2024 07:34
Implementation of a UsernamePassword Authentication Filter
/*
* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 10, 2024 07:33
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@Flowgun
Flowgun / Accelerated Scrolling 1.5.ahk
Last active May 10, 2024 07:32 — forked from jasonsparc/Accelerated Scrolling 1.3.ahk
Accelerated Scrolling v1.5
/* ; _____________________________________________________________________________
; Improved Accelerated Scrolling By Flowgun
; original Accelerated Scrolling: V1.3 By BoffinbraiN
; Major Changes (v1.5):
; - Reloading at Logon/unlocking: The mouse hook can get
; released when the session is locked/closed. Now the
; script reloads itself to rehook the ScrollWheel hotkeys
; - changed the default acceleration values.
; Major Changes (v1.4):
@a-sync
a-sync / deobf.cmd
Last active May 10, 2024 07:29
batch obfuscator / deobfuscator
@echo off & setlocal
if "%~1"=="" exit /b
if /i "%~x1" neq ".bat" if /i "%~x1" neq ".cmd" exit /b
<"%~1" ((for /l %%N in (1 1 8) do pause)>nul&findstr "^">"%~n1__%~x1")
@indyfromoz
indyfromoz / VNC_Server_On_Ubuntu_22.04LTS.md
Last active May 10, 2024 07:25
VNC Server setup on Ubuntu 22.04 LTS

Setup

Install TigerVNC -

$ sudo apt install tigervnc-standalone-server

Configure VNC Server by running

@meramsey
meramsey / gist:b9c98032a34612a1a29f9fd2059156a5
Created February 4, 2023 01:07 — forked from lavalake/gist:d83a5bc14284161433019475013996d1
Android activity manager "am" command help
adb shell am
Activity manager (activity) commands:
help
Print this help text.
start-activity [-D] [-N] [-W] [-P <FILE>] [--start-profiler <FILE>]
[--sampling INTERVAL] [--streaming] [-R COUNT] [-S]
[--track-allocation] [--user <USER_ID> | current] <INTENT>
Start an Activity. Options are:
-D: enable debugging
-N: enable native debugging