Skip to content

Instantly share code, notes, and snippets.

View Jalict's full-sized avatar

Frans Larsen Jalict

View GitHub Profile
@Jalict
Jalict / test.json
Last active November 8, 2022 18:44
test
{
"default": {
"firstScene": "kitchen",
"autoLoad": true,
"compass": false,
apiVersion: apps/v1
kind: Deployment
metadata:
name: unity-cache
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: unity
import requests
def download_file_from_google_drive(id, destination):
def get_confirm_token(response):
for key, value in response.cookies.items():
if key.startswith('download_warning'):
return value
return None
@Jalict
Jalict / ublock-filters-simplify-socialmedia
Last active September 7, 2018 17:55
Personal uBlock Filter for Social Media in order to make them less distracting and to reduce unnecessary (personal preference) features that consumes more time than anything else.
!==========================TWITTER==============================
! Removes Likes from Notifications
twitter.com##.js-toggleState.ProfileTweet-action--favorite.ProfileTweet-action
! Removes Retweeting from Notifications
twitter.com## .js-toggleRt.js-toggleState.ProfileTweet-action--retweet.ProfileTweet-action
! Removes Likes from frontpage
twitter.com## .js-toggleState.ProfileTweet-action--favorite.ProfileTweet-action
@Jalict
Jalict / sendapk.md
Last active June 26, 2020 15:48
How to send APK file to a remote device using ADB and start the application

Install and Start APK remotely

Connect to device via ADB

  • adb connect <ip:port>

Install the APK to the device

  • adb -s <ip:port> install -r <app.apk>
alias gitlog="git log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | cat"