- Download the Raspbian Lite image from https://downloads.raspberrypi.org/raspbian_lite_latest (add .torrent to get a torrent)
- Unzip the download to extract the .img file
- Insert a FAT32-formatted SD card, and copy the image over:
diskutil listto identify the disk number, e.g./dev/disk2diskutil unmountDisk /dev/disk2sudo dd bs=1m if=image.img of=/dev/rdisk2
- Before unmounting, edit a couple of files to activate internet-over-USB. The image mounted for me at
/Volumes/boot.- In
config.txt, add this as the last line of the file:dtoverlay=dwc2 - In
cmdline.txt, add this as a parameter, just after therootwaitparameter:modules-load=dwc2,g_ether
- In
- Unmount the SD card (via Finder) and stick it in the Raspberry Pi.
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <CONFIG> | |
| <Lazarus> | |
| <ColorSchemes Version="11"> | |
| <Names Count="1"> | |
| <Item1 Value="Monokai"/> | |
| </Names> | |
| <Globals Version="11"> | |
| <SchemeMonokai> | |
| <ahaGutter Background="2238503"/> |
This file contains hidden or 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
| package dk.im2b | |
| import java.io.OutputStream | |
| import java.net.ServerSocket | |
| import java.net.Socket | |
| import java.nio.charset.Charset | |
| import java.util.* | |
| import kotlin.concurrent.thread | |
This file contains hidden or 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
| // In JavaScript, constructors can only be synchronous right now. This makes sense | |
| // from the point of view that a constructor is a function that returns a newly | |
| // initialized object. | |
| // | |
| // On the other hand, it would sometimes be very handy, if one could have async | |
| // constructors, e.g. when a class represents a database connection, and it is | |
| // desired to establish the connection when you create a new instance. | |
| // | |
| // I know that there have been discussions on this on StackOverflow & co., but | |
| // the so-far mentioned counter arguments (such as: doesn't work as expected |
Hi, I'd like to share with you how I got my Jenkins CI set up for my private GitLab projects. This is more like a sheet of notes of mine, but I hope it'll help someone as I haven't found any good tutorial for Jenkins+Gitlab on the web yet :D
- generate ssh keys on own server ->
PUBLICandPRIVATE( no passphrase ) - go to GitLab profile settings -> SSH keys -> add
PUBLICssh key to GitLab = this will allow your Jenkins server to access your GitLab - also create full access GitLab
API access tokenfor Jenkins on your gitlab profile settings and keep it
- install Git + GitLab plugin on Jenkins ( make sure they are enabled (ticked) in Jenkins !!!)
I recently wrestled with the clusterfuck that is iOS code signing, so here's my setup to set up a swift xcodegen project signed with a personal (free) provisioning team. this doesn't require an apple developer account, just a regular apple id.
you'll be able to build whole thing from the command line without ever have to touch xcode ever again.
this was tested with xcode 10.0 (10A255) on High Sierra
This file contains hidden or 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
| #!/usr/bin/python3 | |
| import os | |
| for line in os.popen('ipconfig.exe'): | |
| if not line[0] in [' ', '\n']: | |
| current_section = line | |
| active = False | |
| if 'Link-local IPv6 Address' in line: | |
| active = True |
This file contains hidden or 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
| @font-face { | |
| font-family: 'JetBrains Mono'; | |
| src: url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff2/JetBrainsMono-Bold-Italic.woff2') format('woff2'), | |
| url('https://cdn.jsdelivr.net/gh/JetBrains/JetBrainsMono/web/woff/JetBrainsMono-Bold-Italic.woff') format('woff'); | |
| font-weight: 700; | |
| font-style: italic; | |
| font-display: swap; | |
| } | |
| @font-face { |
how to leverage oracle's temping offers
The limits of the free tier say that you can create up to 4 instances.
- x2 x86 instances (2core/1g)
- x2 ampere instances (with 4core/24g spread between them)
- 200GB total boot volume space across all intances (minimum of 50G per instance)
[!WARNING]
This file contains hidden or 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 os | |
| import subprocess | |
| from modal import App, Image, Volume, is_local, web_server, concurrent | |
| app = App("Scratch-to-Scale") | |
| CACHE_DIR = "/cache" | |
| VSCODE_VERSION = "1.104.1" |