Skip to content

Instantly share code, notes, and snippets.

View akeinhell's full-sized avatar
:bowtie:

Алексей Дорохов akeinhell

:bowtie:
  • vsemayki.ru
  • Новосибирск
View GitHub Profile
@saippuakauppias
saippuakauppias / gist:4714695
Last active August 24, 2019 04:35
javascript vkontakte api wall post: постинг на стену к текущему пользователю на JS vk API. С помощью этого кода так же можно отправлять записи на стены групп, пользователей и публичных страниц (пабликов). Используется в iframe приложениях вконтакте.
/*
* message - сообщение, которое будет опубликовано
* image - картинка для постинга
* user_id - id текущего пользователя (к нему будет осуществлён постинг)
*/
function wallPost(message, image, user_id) {
VK.api('photos.getWallUploadServer', {
uid: user_id
}, function (data) {
if (data.response) {
@zachflower
zachflower / tor_curl.php
Last active March 15, 2024 15:02
How To Anonymize PHP cURL Requests Using Tor
<?php
$ip = '127.0.0.1';
$port = '9051';
$auth = 'PASSWORD';
$command = 'signal NEWNYM';
$fp = fsockopen($ip,$port,$error_number,$err_string,10);
if(!$fp) { echo "ERROR: $error_number : $err_string";
return false;
@lifuzu
lifuzu / auto_update.md
Created April 3, 2014 17:10
Android auto update apk implementation
public class UpdateApp extends AsyncTask<String,Void,Void>{
private Context context;
public void setContext(Context contextf){
    context = contextf;
}

@Override
protected Void doInBackground(String... arg0) {
      try {
@region23
region23 / golang_books_sites.md
Last active July 18, 2022 08:58
Полезные ресурсы для изучающих Go

На русском языке

Русскоязычные сайты и сообщества

English resources

@encounter
encounter / items.json
Last active October 13, 2022 15:23
No Man's Sky Beyond All Items + Refiner Recipes
This file has been truncated, but you can view the full file.
// Icons available at https://mega.nz/#!vY5jXK7K!w290kvdCWZOvo2aDeth7tImkTPk5eOjfiwwHF8l8cEQ
{
"CASING": {
"name": "Metal Plating",
"type": "product",
"subtitle": "Crafted Technology Component",
"description": "A lightweight metal product, heavily used in the manufacture of <TECHNOLOGY>starship parts<> and <TECHNOLOGY>deployable technology<>. A mainstay of the construction industries of all known primary species.\n\nCrafted from <EARTH>Ferrite Dust<>.",
"base_value": 800,
"category": "product_category_component",
"trade_category": "trade_category_none",