Skip to content

Instantly share code, notes, and snippets.

View spacelatte's full-sized avatar
🤔
0x727E3A21F2

Mert Akengin spacelatte

🤔
0x727E3A21F2
View GitHub Profile
{
"always_prompt_for_file_reload": false,
"always_show_minimap_viewport": true,
"caret_extra_bottom": 0,
"caret_extra_top": 1,
"caret_extra_width": 1,
"caret_style": "solid",
"color_scheme": "Packages/User/Mariana (SublimePythonIDE).tmTheme",
"draw_centered": false,
"draw_minimap_border": true,
@spacelatte
spacelatte / kanka.sh
Last active September 26, 2021 18:04
kanka: single-script package manager for #macos (#osx) with dependency resolution, based on #homebrew #brew.sh #api
#!/usr/bin/env bash
# -d 9 -type d
# -d 6 -type d
# -d 3 -type d
export APPS="${HOME}/.local/apps"
export PATH="${APPS}:${PATH}"
export JQ_URL="https://github.com/stedolan/jq/releases/download/jq-1.6/jq-osx-amd64"
export JQ_PATH="${APPS}/jq-osx-amd64"
@spacelatte
spacelatte / bf.sh
Last active October 14, 2018 21:16 — forked from tdeck/gist:58bd5c1f86a27b212811
Brainfuck interpreter in bash
#! /bin/bash
CELLS=500
buffer=()
stack=()
ap=0
for i in {1..$CELLS}; do
buffer+=(0)
done
@spacelatte
spacelatte / arduino-3rd-party-boards.lst
Last active May 22, 2019 08:08
list of 3rd party board urls for arduino
http://arduino.esp8266.com/stable/package_esp8266com_index.json
http://clkdiv8.com/download/package_clkdiv8_index.json
http://digistump.com/package_digistump_index.json
http://download.labs.mediatek.com/package_mtk_linkit_index.json
http://download.labs.mediatek.com/package_mtk_linkit_smart_7688_index.json
http://downloads.arduino.cc/packages/package_mkr1000_index.json
http://downloads.konekt.io/arduino/package_konekt_index.json
http://downloads.sodaq.net/package_sodaq_index.json
http://downloads.sodaq.net/package_sodaq_samd_index.json
http://drazzy.com/package_drazzy.com_index.json
@spacelatte
spacelatte / hn.html
Created September 1, 2018 16:44
single page hacker news feed with bare html and fetch api
<html>
<body>
<button onclick='load("beststories")' >best</button>
<button onclick='load("topstories")' >top</button>
<button onclick='load("newstories")' >new</button>
<div id=news ></div>
</body>
<script>
"use strict";
@spacelatte
spacelatte / vncdotool:rfb.py.patch
Last active May 22, 2019 08:04
fix for vncdotool on centos 6 python 2.6 or 3.4
diff --git a/vncdotool/rfb.py b/vncdotool/rfb.py
index b3ecaf3..f5cedbe 100644
--- a/vncdotool/rfb.py
+++ b/vncdotool/rfb.py
@@ -143,7 +143,7 @@ class RFBClient(Protocol):
log.msg("Using protocol version %.3f" % version)
parts = str(version).split('.')
self.transport.write(
- bytes(b"RFB %03d.%03d\n" % (int(parts[0]), int(parts[1]))))
+ bytes("RFB %03d.%03d\n" % (int(parts[0]), int(parts[1])), 'ascii'))
server {
listen 80;
server_name _;
return 307 https://$host$request_uri;
}
server {
listen 443 ssl;
@spacelatte
spacelatte / esp32-wifi-spoof.ino
Last active May 22, 2019 08:01
esp32 wifi ssid spoofer
/*
* Fake beacon frames for ESP8266 using the Arduino IDE
* Compiled with Arduino 1.6.9 and esp8266 2.1.0, but other versions should work too
*
* Based on the WiFiBeaconJam by kripthor (https://github.com/kripthor/WiFiBeaconJam)
*
* More info: http://nomartini-noparty.blogspot.com/2016/07/esp8266-and-beacon-frames.html
*/
#include <WiFi.h> //more about beacon frames https://mrncciew.com/2014/10/08/802-11-mgmt-beacon-frame/
@spacelatte
spacelatte / android-sdk-darwin.sh
Created January 30, 2019 20:54
install #android #sdk #emulator and #system #image on #darwin
#!/bin/bash
export TEMPDIR="$(mktemp -d)"
export ANDROID_HOME="${HOME}/Library/Android/sdk"
export LINK_TOOLS="https://dl.google.com/android/repository/sdk-tools-darwin-4333796.zip"
#ANDROID_HOME=/tmp/android/sdk
cd "${TEMPDIR}"
mkdir -p "${ANDROID_HOME}"
curl -#OL "${LINK_TOOLS}"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.