This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# !/bin/sh | |
nautilusconfigpath=~/.config/nautilus/ | |
filename="scripts-accels" | |
shortcut="<Control><Shift>c copypath" | |
FILE=~/.config/nautilus/$filename | |
if [ -f "$FILE" ]; then | |
if grep -q "$shortcut" "$nautilusconfigpath$filename" ; then | |
echo "copypath shortcut found ignore shortcut write.." | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -m venv venv | |
source venv/bin/activate | |
pip install --upgrade pip | |
pip install -r requirements.txt | |
export FLASK_APP=app.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setxkbmap -layout tr -variant f | |
setxkbmap -layout tr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ~/.mozilla/firefox/<YOUR_FIREFOX_PROFILE>/chrome/userChrome.css */ | |
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
.titlebar-min { | |
order: 2 !important; | |
} | |
.titlebar-max { | |
order: 3 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" const="text/html;charset=UTF-8" /> | |
<link href="http://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet" type="text/css"> | |
<link rel="stylesheet" type="text/css" href="style.css" > | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.4/socket.io.js"></script> | |
<title>Socket Example</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function currentPath() { | |
var response = | |
window.location.protocol + | |
"//" + | |
window.location.hostname + | |
(window.location.port ? ":" + window.location.port : ""); | |
return response; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.lang.reflect.Method; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
public class CodeRunner { | |
public static void compile(String file) throws Exception { | |
try { | |
ProcessBuilder pb = new ProcessBuilder("javac", file); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Optional; | |
import javax.annotation.PostConstruct; | |
import org.springframework.boot.context.properties.ConfigurationProperties; | |
import org.springframework.context.annotation.Configuration; | |
import org.springframework.context.annotation.PropertySource; | |
@Configuration("application") | |
@PropertySource("application.properties") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
param=$1 | |
config="gurkan" | |
name="defaultname" | |
mail="defaultmail" | |
BLUE='\033[0;34m' | |
ORANGE='\033[0;33m' | |
GREEN='\033[0;32m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -rnw '/path/to/somewhere/' -e 'pattern' | |
-i stands for ignore case (optional in your case). | |
-r or -R is recursive, | |
-n is line number, and | |
-w stands for match the whole word. | |
-l (lower-case L) can be added to just give the file name of matching files. |
NewerOlder