Skip to content

Instantly share code, notes, and snippets.

View hellvesper's full-sized avatar

Vitaly hellvesper

View GitHub Profile
[
0 => frontend\models\Filter#1
(
[yii\db\BaseActiveRecord:_attributes] => [
'id' => 9
'controller' => 'site'
'action' => 'index'
'param' => 'SortDirection'
'data' => [
0 => [
<?php
$x = [];
$y = [];
// triangle #1 left
$x1[1] = -1;
$y1[1] = -1;
$x1[2] = -1;
$y1[2] = 0;
@hellvesper
hellvesper / ProxyCheck.php
Last active May 23, 2016 16:56 — forked from s4l1h/Socks5ProxyCheck.php
Socks5 Proxy Checker: php ve curl ile ip:port şeklindeki listeden çalışan sock5 proxy adreslerini bulur.
<?php
error_reporting(E_ALL);
ini_set('max_execution_time',0);
# http://www.vipsocks24.com/
$list="107.10.35.178:42427
108.20.152.202:1415
110.142.196.145:43134
115.118.195.23:1080
115.252.100.245:1080
115.252.143.165:1080
@hellvesper
hellvesper / blacklist.scpt
Created November 15, 2016 19:46 — forked from freman/blacklist.scpt
Spotify blacklist script.
repeat
if application "Spotify" is running then
tell application "Spotify"
set seenTrack to ""
repeat while player state is playing
if player state is playing then
set theAlbum to album of the current track
set theTrack to name of the current track
set theArtist to artist of the current track
set trackLength to duration of current track
@hellvesper
hellvesper / Read-only FS on Arch Linux ARM.md
Created July 29, 2017 19:29 — forked from yeokm1/Read-only FS on Arch Linux ARM.md
Set up Arch Linux ARM on Raspberry Pi to boot from and use a read-only file-system

Read-only FS on Arch Linux ARM

Unlike your typical computer where you usually shutdown properly, I cannot rely on this during the use of my Raspberry Pi. If the Raspberry Pi is improperly shutdown too many times, data corruption in the file system leading to unbootable SD card may result. So we should use a read-only file system.

Full instructions and explanations are obtained from this link but you can run these commands directly. I modified some of the instructions for personal convenience.

Login with default username: alarm, password: alarm

#Optionally enable root over SSH. The rest of these instructions assume u are in root.
<?php
/**
* Created by PhpStorm.
* User: vesper
* Date: 15/08/2017
* Time: 14:21
*/
function progression($x = 4, $n = 0, $count = 3) {
$x = $x + (2 * (3 ** $n));
Agnes en_US # Isn't it nice to have a computer that will talk to you?
Albert en_US # I have a frog in my throat. No, I mean a real frog!
Alex en_US # Most people recognize me by my voice.
Alice it_IT # Salve, mi chiamo Alice e sono una voce italiana.
Allison en_US # Hello, my name is Allison. I am an American-English voice.
Alva sv_SE # Hej, jag heter Alva. Jag är en svensk röst.
Amelie fr_CA # Bonjour, je m’appelle Amelie. Je suis une voix canadienne.
Anna de_DE # Hallo, ich heiße Anna und ich bin eine deutsche Stimme.
Ava en_US # Hello, my name is Ava. I am an American-English voice.
Bad News en_US # The light you see at the end of the tunnel is the headlamp of a fast approaching train.
@hellvesper
hellvesper / multiple_ssh_setting.md
Created July 10, 2018 10:05 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "[email protected]"
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <WiFiUdp.h>
#include <NTPClient.h>
#include "power.h"
// #include <SPI.h>
#include "LedControl.h"
#define RMS_CALIBRATION 1.21; // Sin Wave Form Factor pi/2√2 ≈ 1.11
#include <Arduino.h>
#include <Wire.h>
void setup()
{
Wire.begin(4, 5);
Serial.begin(115200);
while (!Serial)
; // Leonardo: wait for serial monitor