Skip to content

Instantly share code, notes, and snippets.

View psodaz's full-sized avatar
🎯
Focusing

PORNCHAI SODA psodaz

🎯
Focusing
  • Thailand
  • 13:17 (UTC +07:00)
View GitHub Profile
@psodaz
psodaz / Shutterstock.NewEarnings.user.js
Last active July 17, 2019 05:16 — forked from deymosD/Shutterstock.NewEarnings.user.js
Fixes crappy design of new Shutterstock earnings page, enables sort on ID and hopefully will fix other stupid things SS team did
// ==UserScript==
// @name Shutterstock.NewEarnings
// @namespace
// @version 1.2.16.2
// @updateURL https://gist.github.com/PSOdAz/6c8210c2eaa468a3972020757473888d/raw/f8098c03eaa4611036d567cdb9883f4c6d28809c/Shutterstock.NewEarnings.user.js
// @description Update the temperary fixes to show display Downloads per Keyword, based on GG's https://gist.github.com/deymosD/126aa0a849de4196547ef5662684b270
// @author GG, PSOdAz update
// @match http://submit.shutterstock.com/earnings*
// @match https://submit.shutterstock.com/earnings*
// @match https://submit.shutterstock.com/earnings/*
@psodaz
psodaz / ShutterPlace.user.js
Created April 9, 2018 03:46 — forked from satinka/ShutterPlace.user.js
added detailed localization to Shutterstock Latest Downloads map
// ==UserScript==
// @name ShutterPlace
// @namespace
// @version 1.0
// @description added detailed localization to Shutterstock Latest Downloads map
// @author Satinka
// @match http://submit.shutterstock.com/home.mhtml*
// @match https://submit.shutterstock.com/home.mhtml*
// @copyright 2016, Satinka
// @require http://code.jquery.com/jquery-latest.min.js
@psodaz
psodaz / Shutterstock.FixKeywords.user.js
Last active September 7, 2020 05:27 — forked from deymosD/ Shutterstock.FixKeywords.user.js
Prints keywords in text format, so they can be copied and Automatic copying keywords to clipboard
// ==UserScript==
// @name Shutterstock.FixKeywords
// @namespace
// @version 2020.09.07
// @updateURL https://gist.github.com/PSOdAz/bc8736c970ab79a56675b3343688bd20
// @downloadURL https://gist.github.com/PSOdAz/bc8736c970ab79a56675b3343688bd20
// @description Automatic copying keywords to clipboard based on GG's https://gist.github.com/deymosD/8ae60c75dd57b51667a4f696a3d083b2. Thanks you so much for intial this script.
// @author GG, PSOdAz update
// @match https://www.shutterstock.com/image-photo*
// @match https://www.shutterstock.com/image-vector*
@psodaz
psodaz / Shutterstock.EnhanceDashboard.user.js
Last active October 2, 2020 07:36 — forked from deymosD/Shutterstock.EnhanceDashboard.user.js
Check popular keyword. Show detailed localization and keyword used to download to Shutterstock Latest Downloads map. Find image in use via google images search.
// ==UserScript==
// @name Shutterstock.EnhanceDashboard
// @namespace https://gist.github.com/PSOdAz/b353842718113287589c02938ca4b310
// @version 2020.10.01
// @updateURL https://gist.github.com/PSOdAz/b353842718113287589c02938ca4b310/raw/a6690af21fee1f318f38661521e2b814837e18a5/Shutterstock.EnhanceDashboard.user.js
// @description Show detailed localization and keyword used to download to Shutterstock Latest Downloads map, based on Satinka's https://gist.github.com/satinka/5479a93d389a07d41246 and GG update's https://gist.github.com/deymosD/ff4b0effbffefd76f58300b01e45afd4
// @author Satinka, GG update, PSOdAz update
// @match https://submit.shutterstock.com/dashboard*
// @copyright 2016, Satinka
// @require http://code.jquery.com/jquery-latest.min.js
@psodaz
psodaz / NoStockSearch.txt
Created April 23, 2018 05:29 — forked from jonkratz/NoStockSearch.txt
Google search images hack to avoid stock images. Paste after search term to see only valid results. Please feel free to add pull requests!
-fotolia.com -graphicleftovers.com -bigstockphoto.com -vectorstock.com -depositphotos.com -fotosearch.com -stockfresh.com -thinkstockphotos.com -istockphoto.com -123rf.com -dreamstime.com -shutterstock.com -canstockphoto.com -cutcaster.com -dondrup.com -colourbox.com
@psodaz
psodaz / add-remove-windows-path.ps1
Created May 10, 2018 02:47 — forked from drazul/add-remove-windows-path.ps1
Example to add and remove local-path to system-path-variable on Windows. Without the limitations of 1024 characters
#------------ Add path to system variable -------------------------------------
$path2add = ';C:\path;'
$systemPath = [Environment]::GetEnvironmentVariable('Path', 'machine');
If (!$systemPath.contains($path2add)) {
$systemPath += $path2add
$systemPath = $systemPath -join ';'
[Environment]::SetEnvironmentVariable('Path', $systemPath, 'Machine');
write-host "Added to path!"
@psodaz
psodaz / check_shadowsocks.sh
Created August 18, 2018 19:39 — forked from meanevo/check_shadowsocks.sh
Scripts for OpenWrt to bypass the gfw in mainland china, using ipset for gfwlist and geoip for ips outside specified region. (two ss-redir instances)
# FILE_LOCATION: /usr/bin/check_shadowsocks.sh
# DESCRIPTION: Script for checking whether shadowsocks-libev is running, and if not, restart it.
# <!-- ORIGINAL_CONTENTS_BELOW -->
#!/bin/sh
ss_pid_path="/var/run/ss-redir.pid"
ss_port={SS1_PORT}
ss2_pid_path="/var/run/ss-redir-whitelist.pid"
ss2_port={SS2_PORT}
if [ -f $ss_pid_path ] && [ -f $ss2_pid_path ]; then
A partial list of these Vendor ID Codes:
0x014F - Transcend Information
0x2C00—Micron Technology, Inc.
0x802C—Micron Technology, Inc.
0x80AD—Hynix Semiconductor Inc.
0x80CE—Samsung Electronics, Inc.
0xAD00—Hynix Semiconductor Inc.
0xCE00—Samsung Electronics, Inc.
My system has memory made by 0x802C and 0x80CE. One came with the system, the other came from Crucial.
@psodaz
psodaz / detect.py
Created October 22, 2018 07:13 — forked from Lukse/detect.py
Advanced OpenCV 3 python hole detection
import cv2
import sys
import numpy as np
camera = cv2.VideoCapture("video.avi")
# Setup BlobDetector
detector = cv2.SimpleBlobDetector_create()
params = cv2.SimpleBlobDetector_Params()
@psodaz
psodaz / pkl_to_json.py
Created December 21, 2018 08:48 — forked from hailiang-wang/pkl_to_json.py
Convert python pickle file to json
#!/usr/local/bin/python3
'''
Convert a pkl file into json file
'''
import sys
import os
import _pickle as pickle
import json