Skip to content

Instantly share code, notes, and snippets.

@hexvalid
hexvalid / setup.sh
Created March 25, 2018 18:57
My Proxy Configuration
#!/bin/bash
apt-get install squid3 apache2-utils
htpasswd -c /etc/squid/passwords hexaminer2
@hexvalid
hexvalid / file
Created February 27, 2017 20:27
freedom_public
{"0.890583111609397":"-----BEGIN PGP PUBLIC KEY BLOCK-----\r\nCharset: UTF-8\r\n\r\nxv8AAABSBAAAAAATCCqGSM49AwEHAgMECyZ/7qRnDMjyp5Pn3yV834Eio6sHKb3i\r\njdoQ8IjplSYBvxVq5WWbOZ8OH1tSKNO7UUgnvFew6cbR3cL7UGasj83/AAAACDxn\r\naXRodWI+wv8AAACOBBATCABA/wAAAAWCWLSLq/8AAAACiwn/AAAACZCkWUSe4/aG\r\nzv8AAAAFlQgJCgv/AAAABJYDAQL/AAAAApsD/wAAAAKeAQAAGvsA/ApzbSEKN6Hn\r\neIDqMBxb8H9qUqPs1AQ6/Qyt7B7anT2lAP0QYVG9cgBbctTtq3ku3T7YrpZwA2V3\r\nl5ZJ2LrAlWPyWs7/AAAAVgQAAAAAEggqhkjOPQMBBwIDBDsjy1XA8RxktMUcN3bF\r\nrKWfDlFCZ1TTsn3QBknUz2nZhxs5ziEhQ3FGzn82376YNkS1PsSignCiH50tF3oc\r\npc0DAQgHwv8AAABtBBgTCAAf/wAAAAWCWLSLq/8AAAAJkKRZRJ7j9obO/wAAAAKb\r\nDAAApAsA/it/wmjCYPXGQerIMjB3n8TIPABiB7Mm+akFZ2ohxwoDAPwP0I14Zhcp\r\nK93RCph7z8tFXZB0PzzBs1XXWReNqQny+Q==\r\n=vwGJ\r\n-----END PGP PUBLIC KEY BLOCK-----\r\n"}
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.76-ea" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Pane layoutX="14.0" layoutY="14.0" prefHeight="33.0" prefWidth="63.0" style="-fx-background-color: #dddddd; -fx-border-color: #cfcfcf #cfcfcf #b5b5b5 #cfcfcf; -fx-border-width: 1;" />
<Pane layoutX="83.0" layoutY="14.0" prefHeight="33.0" prefWidth="63.0" style="-fx-background-color: #0095c7; -fx-border-color: #008cba; -fx-border-width: 1;" />
@hexvalid
hexvalid / gist:c44eed32e61170c15dcefc922ae29aee
Last active April 18, 2016 11:40
./glxinfo | grep "Open"
OpenGL vendor string: Intel Open Source Technology Center
OpenGL renderer string: Mesa DRI Intel(R) Ivybridge Mobile
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.2
OpenGL core profile shading language version string: 3.30
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.2
OpenGL shading language version string: 1.30
OpenGL extensions:
Linux ubuntu 4.2.0-16-generic #19-Ubuntu SMP Thu Oct 8 15:35:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
@hexvalid
hexvalid / ps.sh
Created April 12, 2016 11:07
HELYX's Samsung 350V Laptop Power Save Script
#!/bin/bash
#v1.0
#HELYX's Samsung 350V Laptop Power Save Script.
#Need acpi_call.ko. Tested Rolling Arch Linux
echo "$(sh /usr/bin/turn_off_gpu.sh | grep "work" | wc -l) acpi aygıtına kapatma komutu başarı ile uygulandı."
#echo 'auto' > '/sys/bus/i2c/devices/i2c-7/device/power/control';
echo '1' > '/sys/module/snd_hda_intel/parameters/power_save';
echo '1500' > '/proc/sys/vm/dirty_writeback_centisecs';
@hexvalid
hexvalid / javafx-usegui.java
Created January 2, 2016 20:55
JAVAFX: GUI Elemanını Task İçinde Kullanma
Platform.runLater(() -> {
//GUI Elemanının işi
});
@hexvalid
hexvalid / javafx-bgtask.java
Created January 2, 2016 20:54
JAVAFX: Arkaplan İşi
Task<Integer> task = new Task<Integer>() {
@Override
protected Integer call() {
//ARKAPLAN İŞİNİ BURADA YAPACAK
return 1;
}
};
Thread tsk = new Thread(task, "İşlem Adı");
tsk.setDaemon(true);
tsk.start();
@hexvalid
hexvalid / gist:f5279a5727e438a42b08
Created December 28, 2015 19:53
Preventing Detection of VirtualBox
Go to Start > Run (or [Win Key] + [R]) and run regedit.exe
Navigate and expand to sub-key HKEY_LOCAL_MACHINE\HARDWARE\ACPI\DSDT (screenshot).
Rename sub-key VBOX__ to NOBOX__
Navigate and expand to sub-key HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION (screenshot).
Select sub-key System.
Right-click value SystemBiosVersion and select ‘Modify‘.
Change the text part “VBOX” to “NOBOX” and click ‘OK‘ (screenshot).
Close the registry editor.
source: https://itsultra.wordpress.com/2011/12/07/how-to-play-maplestory-using-virtualbox-4-1-x/
@hexvalid
hexvalid / gist:8d5c94a606966d9816c1
Created October 15, 2015 08:58
Gnome Super Resize
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Super>'
[ 1988.030]
X.Org X Server 1.17.2
Release Date: 2015-06-16
[ 1988.034] X Protocol Version 11, Revision 0
[ 1988.035] Build Operating System: Linux 4.0.4-2-ARCH x86_64
[ 1988.036] Current Operating System: Linux HELYX 4.1.10-1-lts #1 SMP Sun Oct 4 10:26:44 CEST 2015 x86_64
[ 1988.036] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=UUID=649f5e2f-09e6-4be0-8045-7c810cfebb99 rw quiet
[ 1988.039] Build Date: 17 July 2015 05:38:19PM
[ 1988.040]
[ 1988.041] Current version of pixman: 0.32.8