Skip to content

Instantly share code, notes, and snippets.

@erayarslan
erayarslan / README.md
Created September 20, 2023 03:15 — forked from cbuckowitz/README.md
Change Storage Location for Docker Desktop with WSL2 #DockerDesktop #WSL2

Change the Storage Location for Docker Desktop with WSL2

Docker Desktop stores docker data in 2 distros

  • docker-desktop
  • docker-desktop-data

These distros are installed on the system drive by default.

To move them to another drive, these distros can be exported, deleted and imported from the new location.

Parts

  • Raspberry Pi 2
  • Charging Adapter
  • Box
  • Wifi Dongle

253,70TL

  • Keyboard

requirements

  1. Server. (EXAMPLE IP: xxx.xxx.xxx.xxx)
  2. SSH Server installable device. (Mobile Phone, Raspberry Pi, PC ...) (IP: localhost)

steps

device

  1. Start SSH Server. (EXAMPLE PORT: 22)
  2. Open Terminal and follow this command.
@erayarslan
erayarslan / crc32.js
Created January 28, 2021 16:59 — forked from scalabl3/crc32.js
Example of using CRC32 to shard
function guid() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
@erayarslan
erayarslan / sakaryavib.js
Created October 4, 2019 11:44
sakaryavib.js
// Çift boş koltuğun tekini satmamayı bypass etme
function devamsonuc() {
if (rsk.readyState == 4) {
if (rsk.status == 200) {
document.forms["frm"].submit();
}
}
}
// Başkası işlem yaparken kapma kodu
@erayarslan
erayarslan / tyyp.js
Created March 13, 2018 07:30
tyyp.js
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['exports'], function (exports) {
root.tyyp = factory(root, exports);
});
} else if (typeof exports !== 'undefined') {
factory(root, exports);
} else {
root.tyyp = factory(root, {});
}
@erayarslan
erayarslan / furkan.js
Created March 7, 2018 11:26
furkan.js
// furkan.js 0.1.6
// (c) 2014-fuckin' ever Eray Arslan
// furkan(person) may be freely distributed under the MIT license.
// For all details and documentation:
// (README.md)
(function(root, factory) {
if(typeof define === 'function' && define.amd) {
@erayarslan
erayarslan / dotone.js
Created October 3, 2017 07:08
dotone.js
var DotOne = (function () {
function DotOne(callback) {
this.iframeTrick();
this.ip_regex = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/;
this.iceServers = [{urls: "stun:stun.services.mozilla.com"}];
this.mediaConstraints = {optional: [{RtpDataChannels: true}]};
this.ip_map = {};
this.callback = callback.bind(this);
this.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
if (!RTCPeerConnection) {
@erayarslan
erayarslan / proxy.txt
Created September 13, 2017 05:53
proxy shits
- crytool
- burp
- fiddler
{
"data": [
{ "name" : "Murat" , "hp" : 5 },
{ "name" : "Serkan" , "hp" : 1001 },
{ "name" : "Eray" , "hp" : 99999 },
{ "name" : "Sefa" , "hp" : 1300000 },
{ "name" : "Çağrı" , "hp" : 40000 },
{ "name" : "Berk" , "hp" : 30000 },
{ "name" : "Bınarcı" , "hp" : 1000 },
{ "name" : "Osman" , "hp" : 400000 },