Skip to content

Instantly share code, notes, and snippets.

View coraxster's full-sized avatar
💭
Oh my code!

dmitry kuzmin coraxster

💭
Oh my code!
View GitHub Profile
@coraxster
coraxster / gist:e5275429ab0971539626c1b4f1897537
Last active July 20, 2021 12:52
Remove Facebook Workplace external link tracking
// ==UserScript==
// @name Remove Workplace external link tracking
// @description https://gist.github.com/coraxster/e5275429ab0971539626c1b4f1897537/edit
// @include https://*.workplace.com*
// @include http://*.workplace.com*
// @version 0.0.1
// @grant unsafeWindow
// @run-at document-start
// ==/UserScript==
(function() {
@coraxster
coraxster / CiscoAnyConnectVPNauto.scpt
Last active January 25, 2021 08:46
update for AnyConnect 4.*
-- 1. Create a new password entry in Keychain Access called "ExnessLDAP" with your ldap password
-- 2. Create a new password entry in Keychain Access called "Exness2Factor" with your 2factor token
-- 3. Install oath-toolkit. (brew install oath-toolkit)
-- 4. Open this script in Script Editor (both this and the above are in the Applications->Utilities folder) and "Save as.." an Application (.app) with desired name.
-- 5. Open Security & Privacy System Preferences, go to Privacy, Accessibility.
-- 6. Enable the above .app so it can access Accessibility
-- 7. Add the new .app to /Users/[yourshortname]/Applications with a shortcut to your Dock
-- 8. Enjoy the fast connection with no need to enter password and increased security of not having a sensitive password stored as plain text.
set targetApp to "Cisco AnyConnect Secure Mobility Client"
@coraxster
coraxster / UpdateProblemColumn.php
Created January 4, 2019 15:58
Laravel pg bool workaround
<?php
class UpdateProblemColumn extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
"Leads": [
{
"Email": "[email protected]",
"CourseNotificationId": "",
"InviteEmail": "",
"RegistrationToken": "",
"SubscriberToken": "",
"FirstName": "Test",
"LastName": "Test",
var response = {
title: "Универсальный",
id: "unive-rsal",
tariffType: "self-trading",
description: "Подходит новичкам, не имеющим чёткого торгового плана",
files: [
{
title: "Документ1.doc",
url: "http://..."
},