View bloomberg_maximise_chart_bookmarklet.js
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
javascript: (function () { | |
console.log("bookmarklet init"); | |
let maximiseArr = document.getElementsByClassName('maximize__4aa51a4e26'); | |
if (maximiseArr.length > 0) { | |
maximiseArr[0].click(); | |
} | |
window.addEventListener("load", function () { | |
console.log("onload init"); | |
(new MutationObserver(function (c) { | |
c.forEach(function (a) { |
View dekunu_jumplog_excel_macros.bas
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
Attribute VB_Name = "DekunuJumpLogMacros" | |
Sub Range_End_Method() | |
'Finds the last non-blank cell in a single row or column | |
Dim lRow As Long | |
Dim lCol As Long | |
'Find the last non-blank cell in column A(1) | |
lRow = Cells(Rows.Count, 1).End(xlUp).Row | |
View get_last_modified_file_in_directory.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
from pathlib import Path | |
from argparse import ArgumentParser | |
from typing import Tuple, List | |
from datetime import datetime | |
g_max_depth_traversed = 0 | |
g_last_mtime = 0 | |
View toggle_dhclient_dnscrypt-proxy.sh
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 | |
### Setup Instructions | |
#you need root, need I say it? | |
#disable DNSMASQ by commenting out the below line in /etc/NetworkManager/NetworkManager.conf | |
# dns=dnsmasq | |
#if it's different for any reason, establish the usual resolvconf link with | |
# ln -s /run/resolvconf/resolv.conf /etc/resolv.conf | |
#so that ls -l /etc/resolv.conf is as below | |
# /etc/resolv.conf -> /run/resolvconf/resolv.conf |
View FB-RemoveSponsored.user.js
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
// -*- Mode: Javascript; tab-width: 3; indent-tabs-mode: tab; c-basic-offset: 2 -*- | |
/******************************************************************************* | |
(C)2017+ Alp Sayin | |
Authors: Alp Sayin <https://www.facebook.com/My-Dummy-Page-for-Development-1417283351852520/> | |
This work is licensed under a Creative Commons License ! | |
See: http://creativecommons.org/licenses/by-nc-nd/4.0/ | |
*******************************************************************************/ | |
// ==UserScript== | |
// @name FB-Remove Sponsored Posts |
View noip_update.sh
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/bash | |
logfile="/dev/null" | |
username="username" | |
password="password" | |
hostname=hostname.no-ip.org | |
response=`/usr/bin/curl --silent --user-agent 'CustomCurlUpdaterFromMyRasPi/1.0 username@email.com' 'https://'$username':'$password'@dynupdate.no-ip.com/nic/update?hostname='$hostname` |
View messengerBasketballHack.bat
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
set index=1 | |
:While | |
if %index% gtr 10000 goto EndWHile | |
echo Iteration number %index% | |
set /A index+=1 | |
Rem set /p xIndex=Enter X Index: | |
adb shell "getevent -lc 16 /dev/input/event0 | grep ABS_MT_POSITION_X | awk '{print $3}' | (read string; echo $((16#$string)))" > touch_location.txt | |
set /p xIndex=<touch_location.txt | |
echo %xIndex% |
View checkit.sh
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
# Alp Sayin | |
# 17/06/2015 | |
#!/bin/bash | |
os=`uname` | |
while true | |
do | |
result=`ps aux | grep "tomcat6" | grep -v grep | grep -v "checkit.sh"` | |
# echo $result | |
if [ -z "$result" ]; |
View whoIsHome.sh
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 | |
# OpenWrt whoIsHome script | |
# Alp Sayin | |
# 17/06/2015 | |
deviceName="wlan0" | |
dhcpReservationFile="/etc/config/dhcp" | |
dhcpLeasesFile="/tmp/dhcp.leases" | |
echo `date` |
View eject_cdroms.bat
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
REM Alp Sayin | |
REM 17/06/2015 | |
set disks="wmic logicaldisk | findstr "CD-ROM Disc"" | |
for /F "tokens=2" %%a in (' %disks% ') do nircmd.exe cdrom open %%a |