Skip to content

Instantly share code, notes, and snippets.

@KrazyCanucks
KrazyCanucks / README.md
Last active December 4, 2024 01:14 — forked from EdinUser/README.md
Bash script to update Debian-based Linux - APT, SNAP and FLATPAK

Updater

Console bash script to make it easier to update packages (auto updaters only)

Install

Download file, than make it executable: chmod +x upd.sh Copy the file to /usr/bin without extension: sudo cp upd.sh /usr/bin/upd type upd from console and run it :)

Change Log

How to use this?

  1. Install the USB drivers for your device (Google has a list of some universal USB drivers here)
  2. Download the ADB binary for your particular OS (Windows, Mac, Linux)
  3. Extract the zip file into a folder that you can quickly access.
  4. On your phone, go to Settings and tap on About Phone. Find the Build Number and tap on it 7 times to enable Developer Options.
  5. Now enter Developer Options and find USB Debugging. Enable it.
  6. On your computer, browse to the directory where you extracted the ADB binary.
  7. Launch a Command Prompt in your ADB folder. For Windows users, this can be done by holding Shift and Right-clicking then selecting the “open command prompt here” option.
  8. Once you’re in the command
@niw
niw / use_var_in_struct.md
Last active December 4, 2024 01:09
Use `var` in `struct` in Swift

Use var in struct in Swift

TL;DR: Use var for properties in struct as long as it serves as a nominal tuple. In most cases, there is no obvious benefit to using let for struct properties.

Simple Example

Let's start with a simple example:

struct MyStruct {
@0xmachos
0xmachos / Keychain.md
Last active December 4, 2024 01:03
Useful resources for working with iOS/ macOS Keychain API

Keychain API

kSecAttrAccessible Mapping

Protection Domain (pdmn) Keychain Accessibility Values
ck kSecAttrAccessibleAfterFirstUnlock
cku kSecAttrAccessibleAfterFirstUnlockThisDeviceOnly
dk kSecAttrAccessibleAlways
akpu kSecAttrAccessibleWhenPasscodeSetThisDeviceOnly
@myypo
myypo / autocmd.lua
Last active December 4, 2024 01:00
local yank_group = vim.api.nvim_create_augroup("highlight_yank", { clear = true })
-- Set cursor position before yanking
vim.api.nvim_create_autocmd("ModeChanged", {
group = yank_group,
pattern = "*",
callback = function()
vim.g.pre_yank_cursor_pos = vim.fn.getcurpos()
end,
})
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active December 4, 2024 00:56
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under User Settings -> Gift Inventory
@carljdp
carljdp / D1 Mini ESP8266.md
Last active December 4, 2024 00:54
Getting started with the D1 mini (ESP8266)

D1 Mini (ESP8266)

Wesmos D1 Mini

1. Getting Started

1.1. Install the IDE:

In any web browser:

  • From the Arduino website, download & install the latest Arduino IDE (v1.8 or later). Available for Windows, Mac, Linux & ARM.

1.2. Add the ESP8266 module libraries:

@DGaffney
DGaffney / ALGO_MANIFEST.md
Last active December 4, 2024 00:50
Graze.social Algorithm Operator Documentation

Algorithm Manifest Documentation

This document explains how to define an algorithm manifest for our system. Please consult the table below to jump to any particular reference point.

Table of Contents

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London