This was only tested on a partial SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ConditionConfig } from './../config' | |
import { PullRequestInfo } from '../models' | |
import { ConditionResult } from '../condition' | |
import { groupByLastMap, flatMap } from '../utils' | |
import { CheckStatusState } from '../github-models' | |
import myAppId from '../myappid' | |
function requiredChecks (pullRequestInfo: PullRequestInfo): Array<String> { | |
const baseRef = pullRequestInfo.baseRef.name | |
const branchProtectionRules = pullRequestInfo.repository.branchProtectionRules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- connect to VPN on Tunnelblick with timegen password | |
tell application "/Applications/Tunnelblick.app" | |
set oauthpass to do shell script "oathtool --base32 YOUR_SECRET_HERE --totp" | |
connect "CONFIG_NAME" | |
delay 0.5 | |
tell application "System Events" to keystroke oauthpass | |
tell application "System Events" to keystroke return | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Mapping | |
from collections import OrderedDict | |
from django.core.exceptions import ValidationError as DjangoValidationError | |
from rest_framework import serializers | |
from rest_framework.fields import empty | |
class AllErrorsSerializer(serializers.Serializer): | |
''' | |
This serializer avoids erroring out sooner on data missing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Choice field for PonyORM similar to Django https://docs.djangoproject.com/en/2.0/ref/models/fields/#choices | |
# Use it like this: | |
# class SomeModel(db.Entity): | |
# some_field = Choice(choices={ | |
# 'key': 'Value', | |
# 'som': 'Something', | |
# 'ano': 'Another thing', | |
# }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.type.storage,.type.storage.declaration, .storage.class.modifier { | |
font-family: 'Operator Mono'; | |
} | |
.type.storage.arrow.function { | |
font-family: 'Fira Code' | |
} | |
.token.keyword.operator { | |
font-family: 'Fira Code' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = { | |
'full_name': 'Bruce Banner', | |
'birth_date': '1962-05-01', | |
# a lot of other data | |
} | |
cache_id = hash(data['full_name']) | hash(data['birth_date']) | |
cache.set(cache_id, data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
import urllib | |
from typing import Iterator, Dict, Tuple, List | |
FILENAME = 'list.txt' | |
GOOGLE_MAPS_URL = 'https://maps.googleapis.com/maps/api/geocode/json' | |
API_KEY = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug_mode: false | |
events_source: meetup | |
links: | |
"google developers": "https://developers.google.com/groups/chapter/117712497785310292400/" | |
"facebook page": "https://www.facebook.com/gdgaracaju" | |
"facebook group": "https://www.facebook.com/groups/gdgaracaju" | |
"twitter": "https://twitter.com/gdgaracaju" | |
"google+": "https://plus.google.com/+GDGAracajuBlogspotBR" | |
"medium": "http://medium.com/gdg-aracaju" | |
"meetup": "https://www.meetup.com/gdgaracaju/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
debug_mode: true | |
events_source: facebook | |
groups: | |
- | |
meetup: "group_name_1" | |
facebook: "group_name_1" | |
- | |
meetup: "group_name_2" | |
facebook: "group_name_2" | |
links: |
NewerOlder