Skip to content

Instantly share code, notes, and snippets.

View Rami-Majdoub's full-sized avatar

Rami Majdoub Rami-Majdoub

View GitHub Profile
@Rami-Majdoub
Rami-Majdoub / README.md
Last active September 18, 2025 04:15
remove UNREGISTERED from StarUML
  • export as SVG (File > Export Diagram As > SVG... > Save)
  • open SVG file in web browser
  • open console and run
document.querySelectorAll("text").forEach(e => e.innerHTML = e.innerHTML === "UNREGISTERED"? "":e.innerHTML)
  • take screenshot
@Rami-Majdoub
Rami-Majdoub / Common-Currency.json
Created January 12, 2021 16:16 — forked from ksafranski/Common-Currency.json
Common Currency Codes in JSON
{
"USD": {
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
},
<!-- Copyright 2011 the Dart project authors. All rights reserved.
Use of this source code is governed by a BSD-style license
that can be found in the LICENSE file. -->
<div>
<canvas id="canvas" width="300" height="300"></canvas>
</div>

create feature branch and adding features

  • get the latest version of master (sync master)
    git pull

  • create feature branch
    git checkout -b my-cool-feature

  • add files and commits
    git add index.html

import java.io.*;
import java.nio.file.Files;
import java.nio.file.*;
public class imageResolutions{
public static String repo;
public static void main(String... args) throws IOException{
repo = args[0].replace("\\", "/") + "/";
@echo off
set/p a=jar:
java -jar %a%
@echo off
cd d:
ren last_log.txt temp.txt
echo %date% %time%>last_log.txt
type temp.txt >>last_log.txt
del temp.txt
@Rami-Majdoub
Rami-Majdoub / Timer.bat
Last active October 16, 2021 20:02
set a timer to open a file
@echo off
set/p a= Time (min) :
set/a b=%a%*60
cls
timeout /t %b% /nobreak
:: if your windows version < windows 10 add start
:: start <FILE_TO_OPEN>
<FILE_TO_OPEN>
@Rami-Majdoub
Rami-Majdoub / pinger.bat
Created March 27, 2020 22:15
test your connection to the internet and to the router
@echo off
:main
echo ======================================
echo .
echo 0) exit
echo 1) Router 5 times
echo 2) Google 5 times
echo 4) Router 100 times
echo 5) Google 100 times