Skip to content

Instantly share code, notes, and snippets.

View Draww's full-sized avatar
🏠
Working from home

Baran OZCAN Draww

🏠
Working from home
View GitHub Profile
import:
ch.njol.skript.log.SkriptLogger
ch.njol.skript.ScriptLoader
ch.njol.skript.config.SectionNode
ch.njol.skript.lang.Condition
ch.njol.skript.Skript
ch.njol.skript.config.validate.SectionValidator
ch.njol.skript.lang.SkriptParser
com.btk5h.skriptmirror.Util as MirrorUtil
java.util.Arrays
@aikar
aikar / BaseCommands.kt
Last active August 2, 2018 23:39
EMC JDA Discord Bot in Kotlin, with ACF and IDB
import co.aikar.commands.BaseCommand
import co.aikar.commands.JDACommandEvent
import co.aikar.commands.annotation.CommandAlias
import co.aikar.commands.annotation.Dependency
import net.dv8tion.jda.core.JDA
import net.dv8tion.jda.core.entities.Guild
class BaseCommands : BaseCommand() {
@Dependency
@MiniDigger
MiniDigger / GlobalEventListener.java
Created May 29, 2017 17:42
GlobalEventListener for Spigot/Bukkit, licenced under GPLv3
package me.minidigger.test.test;
/*
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@lcarneli
lcarneli / ScoreboardSign.java
Last active August 29, 2020 16:11 — forked from zyuiop/README.MD
A simple tool to manage scoreboards in minecraft (lines up to 48 characters !). (Updated for Minecraft 1.11.2 version)
package com.mrzalty.scoreboards;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import net.minecraft.server.v1_11_R1.IScoreboardCriteria;
@aikar
aikar / TaskChain.java
Last active August 9, 2022 11:20
TaskChain v2.6 - Java 8 Version - Released Open Source Under MIT - Pre Java8 version here: https://gist.github.com/aikar/9010136 - learn about TC: https://aikar.co/2015/07/26/async-development-java-control-flow-for-bukkit/
/*
* TaskChain for Bukkit
*
* Written by Aikar <aikar@aikar.co>
* https://aikar.co
* https://starlis.com
*
* @license MIT
*/
@zyuiop
zyuiop / README.MD
Last active April 2, 2023 11:40
A simple tool to manage scoreboards in minecraft (lines up to 48 characters !). /

About

This class allow you to use a scoreboard as a sign in which you can write any text. It is designed to be used with a CraftBukkit server (or any similar variant). It uses fake teams to allow lines that are longer than usernames.

Other versions

@nisrulz
nisrulz / create_maven_repo.sh
Last active June 18, 2020 12:10
Creating a maven repository
### Create Maven Repository
#Create a directory named mavenrepo
mkdir mavenrepo
#Move into the dir
cd mavenrepo
#Initialise with git
git init
@mpj
mpj / SocketServer.java
Created May 3, 2015 08:12
Java/Node socket client interaction
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
public class SocketServer {
public static final int port = 12345;
private ServerSocket server;
public void listen() {
@onuryilmaz
onuryilmaz / ReplaceTurkishChars.java
Last active December 14, 2023 10:47
Replace Turkish Characters
public static String clearTurkishChars(String str) {
String ret = str;
char[] turkishChars = new char[] {0x131, 0x130, 0xFC, 0xDC, 0xF6, 0xD6, 0x15F, 0x15E, 0xE7, 0xC7, 0x11F, 0x11E};
char[] englishChars = new char[] {'i', 'I', 'u', 'U', 'o', 'O', 's', 'S', 'c', 'C', 'g', 'G'};
for (int i = 0; i < turkishChars.length; i++) {
ret = ret.replaceAll(new String(new char[]{turkishChars[i]}), new String(new char[]{englishChars[i]}));
}
return ret;
}
@adamjohnson
adamjohnson / publickey-git-error.markdown
Last active May 30, 2024 18:06
Fix "Permission denied (publickey)" error when pushing with Git

"Help, I keep getting a 'Permission Denied (publickey)' error when I push!"

This means, on your local machine, you haven't made any SSH keys. Not to worry. Here's how to fix:

  1. Open git bash (Use the Windows search. To find it, type "git bash") or the Mac Terminal. Pro Tip: You can use any *nix based command prompt (but not the default Windows Command Prompt!)
  2. Type cd ~/.ssh. This will take you to the root directory for Git (Likely C:\Users\[YOUR-USER-NAME]\.ssh\ on Windows)
  3. Within the .ssh folder, there should be these two files: id_rsa and id_rsa.pub. These are the files that tell your computer how to communicate with GitHub, BitBucket, or any other Git based service. Type ls to see a directory listing. If those two files don't show up, proceed to the next step. NOTE: Your SSH keys must be named id_rsa and id_rsa.pub in order for Git, GitHub, and BitBucket to recognize them by default.
  4. To create the SSH keys, type ssh-keygen -t rsa -C "your_email@example.com". Th