Skip to content

Instantly share code, notes, and snippets.

@0xjac
0xjac / private_fork.md
Last active April 28, 2024 07:50
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

# Unix (Terminal)
open -a "Google Chrome" --args --disable-gpu-vsync --disable-frame-rate-limit
# Windows (Command prompt)
start chrome --args --disable-gpu-vsync --disable-frame-rate-limit
@piyushgarg-dev
piyushgarg-dev / README.md
Last active April 28, 2024 07:48
Kafka Crash Course
@matteomattei
matteomattei / crc32.py
Created July 8, 2014 07:52
Calculate CRC32 of a file in Python
#!/usr/bin/env python
import binascii
def CRC32_from_file(filename):
buf = open(filename,'rb').read()
buf = (binascii.crc32(buf) & 0xFFFFFFFF)
return "%08X" % buf
@gabe565
gabe565 / change-arc-icon.md
Last active April 28, 2024 07:43
Change Arc Browser Icon

Change Arc Browser Icon

arc

A collection of commands that change the Arc Browser icon.

Commands

Theme Command
Candy Arc defaults write company.thebrowser.Browser currentAppIconName candy
@kiewic
kiewic / Do-RecursiveGitPull.ps1
Created July 8, 2016 06:02
Perform git pull in all subdirectories that contain a git repository using PowerShell.
Get-ChildItem -Directory -Force -Recurse *.git | ForEach-Object { cd $_.Parent.FullName; Write-Host $_.Parent.FullName; git pull }
@lambdalisue
lambdalisue / update_dynamic_dns.sh
Created December 20, 2014 22:53
A cron script to update IP address in Dynamic DNS of Value Domain
#!/usr/bin/env bash
#==============================================================================
# Update IP address in Dynamic DNS of VALUE DOMAIN
#
# Author: Alisue <lambdalisue@hashnote.net>
# License: MIT License
#
# (C) 2014, hashnote.net, Alisue
#==============================================================================
# CONFIG
ActivityPub 是一种去中心化的内容聚合协议,可以让其他用户远程订阅你的内容。它很像升级版的 RSS,但是支持远程推送,因此订阅者可以及时获取你的内容,而不必时不时从客户端进行抓取。
下面是目前支持 ActivityPub 协议的开源软件,可以在自己的服务器架设服务。
- 微博(Twitter 的替代品):[Mastodon](https://mastodon.social/),[Pleroma](https://pleroma.social/)
- 照片分享(Instagram 的替代品):[Pixelfed](https://pixelfed.social/)
- 视频分享(Youtube 的替代品):[Peertube](https://joinpeertube.org/)
- 博客(Facebook 的替代品):[WriteFreely](https://writefreely.org/),[WordPress + ActivityPub 插件](https://wordpress.org/plugins/activitypub/),[Plume](https://joinplu.me/)
- 聊天(Slack 的替代品):[Mattermost](https://mattermost.com/),[Matrix](https://matrix.org/)
- 音乐分享(Spotify 的替代品):[Funkwhale](https://funkwhale.audio/)
@Composable
fun MainScreen() {
Column(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colorScheme.surface),
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally
) {
AnimatedBorderCard(