I hereby claim:
- I am rpsl on github.
- I am rpsl (https://keybase.io/rpsl) on keybase.
- I have a public key ASBdGqf_liiGzgSryz2XNzvKm2m7yF4iSP0EenvLaIr-Dgo
To claim this, I am signing this object:
| <?php | |
| /** | |
| * Вывод текста через javascript, чтобы он не индексировался поисковиками. | |
| * | |
| * @param $str | |
| * @return string|bool | |
| */ | |
| function str2javascript( $str = FALSE ) | |
| { |
| <?php | |
| //Проверка на зависший процесс | |
| $pid = '/tmp/filestart.pid'; | |
| $timeout = 3 * 60 * 60; | |
| if ( is_file( $pid ) ) | |
| { | |
| $pidInfo = explode( '|', file_get_contents( $pid ) ); | |
| if ( isset( $pidInfo[1] ) AND $pidInfo[1] + $timeout > time() ) | |
| { |
| cd ~/Library/Application\ Support/WebIde70/NativeNeighbourhood/classes/org/intellij/plugins/nativeNeighbourhood/icons/macosx | |
| echo '#!/bin/sh | |
| # | |
| # Reveal a directory in the Terminal. | |
| # | |
| # The script takes one argument, the qualified name of a directory. | |
| # | |
| # Note that the script is necessary because osascript before osx 10.4 could not | |
| # pass arguments. |
| (function() { | |
| try { | |
| var $_console$$ = console; | |
| Object.defineProperty(window, "console", { | |
| get: function() { | |
| if ($_console$$._commandLineAPI) | |
| throw "Sorry, for security reasons, the script console is deactivated on netflix.com"; | |
| return $_console$$ | |
| }, | |
| set: function($val$$) { |
| for file in `find . -iname "*.jpg" -or -iname "*.png" -or -iname "*.jpeg"`;do | |
| ext=${file##*.} | |
| if [ -n "$ext" ]; then | |
| if [ "$ext" = "jpg" ]; then | |
| echo "optimizing ${file} as jpeg file with jpegtran" | |
| jpegtran -copy none -optimize -perfect -outfile temp_abracadabra_filename.jpg $file | |
| mv -f temp_abracadabra_filename.jpg $file; | |
| fi | |
| if [ "$ext" = "jpeg" ]; then | |
| echo "optimizing ${file} as jpeg file with jpegtran" |
| cd ~/Library/Application\ Support/WebIde100/NativeNeighbourhood/classes/org/intellij/plugins/nativeNeighbourhood/icons/macosx | |
| echo '#!/bin/sh | |
| # | |
| # !!!This is only for iTerm 2.9 and above!!! | |
| # | |
| # Reveal a directory in the Terminal. | |
| # | |
| # The script takes one argument, the qualified name of a directory. | |
| # |
| tell application "Finder" | |
| -- get desktop dimensions (dw = desktop width; dh = desktop height) | |
| set db to bounds of window of desktop | |
| set {dw, dh} to {item 3 of db, item 4 of db} | |
| end tell | |
| tell application "System Events" | |
| repeat with proc in application processes | |
| tell proc | |
| repeat with win in windows |
| var browser = require('airplay').createBrowser(2); | |
| var resolve = require('soundcloud-resolve'); | |
| browser.on('deviceOnline', function(device) { | |
| console.log('device online: ' + device.id); | |
| if(device.info_.name == 'SysadmTV') { | |
| console.log(device) |
| #!/usr/bin/env python | |
| # Install: | |
| # cp ./.git/hooks/commit-msg ./.git/hooks/commit-msg.old 2>/dev/null; curl https://gist.githubusercontent.com/Rpsl/4dabaa7120f8a5e08b918a6171aef832/raw > ./.git/hooks/commit-msg && chmod +x ./.git/hooks/commit-msg | |
| import sys | |
| import os | |
| import re | |
| from subprocess import check_output |
I hereby claim:
To claim this, I am signing this object: