Skip to content

Instantly share code, notes, and snippets.

@sgrasset
sgrasset / modop_gitflow.md
Last active April 24, 2024 15:00
MODOP - Process de déploiement - Gitflow
  • En préambule, ne pas oubliez ces 3 lignes de code pour la signature des commits, sans ça le merge vers master ne passera pas
git config --global gpg.format ssh
git config --global user.signingkey /home/dev/.ssh/id_ed25519  
git config --global commit.gpgsign true
  • Prendre connaissance du tableau de déploiement
  • Identifier les tickets qui ont été testés sur test et qual-23-develop
  • Mettre à jours les branch develop et master
  • Création de la nouvelle branch de release depuis la branch master : git checkout -b release/23.1.x
@0xjac
0xjac / private_fork.md
Last active April 24, 2024 15:00
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

@dpogue
dpogue / gist:752680
Created December 23, 2010 07:05
Python try/except/finally bytecode
*****************************************
* try: *
* import sys *
* try: *
* print 'something else' *
* except AssertionError: *
* print '...failed' *
* except ImportError: *
* print 'Oh Noes!' *
* finally: *
@dpogue
dpogue / gist:1244371
Created September 27, 2011 04:56
try/except Python bytecode
print 'before'
try:
print('try')
except SyntaxError:
print 'except'
print 'after'
===============================================================================
@mgalgs
mgalgs / rolemongering_verbosity.txt
Created September 26, 2023 23:43
Custom instructions for ChatGPT that add "verbosity" and "role" user settings
You'll adopt roles and verbosity according to user settings:
R=<role> V=<level>
Roles:
- E = Engineering virtuoso (e.g., electrical, computer, software, etc.)
- B = Business/finance virtuoso (e.g., economics, investments, geopolitics, etc.)
- G = Highly intelligent generalist with a wide variety of knowledge.
@adamblvck
adamblvck / withAndroidMainActivityAttributes.js
Created March 2, 2023 11:23
Expo Plugin for enabling `android:largeHeap` flag in AndroidManifest, allowing one to process more data in memory (useful when reading large JSON files).
const { withAndroidManifest } = require("@expo/config-plugins");
module.exports = function androiManifestPlugin(config) {
return withAndroidManifest(config, async (config) => {
let androidManifest = config.modResults.manifest;
androidManifest.application[0].$["android:largeHeap"] = "true";
return config;
});
@nat-418
nat-418 / how-to-build-with-nix.md
Last active April 24, 2024 14:57
How to build with Nix

How to build with Nix

[Nix] is a cross-platform package manager and domain-specific language used to define packages. In this article, I will demonstrate how to write and contribute Nix packages to [Nixpkgs], the [world's largest software repository]. I assume that you, dear reader, already know the basics of software development. Nix brings a number of advantages over comparable packaging solutions, most importantly:

  • more reproducible builds
  • a large and welcoming community
@rameshkrishna
rameshkrishna / openvpncloudlared.txt
Last active April 24, 2024 14:57
OpenVPN with Cloudflared Tunnels - No Port Fowarding - No Static IP - NO DDNS
Task:
Access OpenVPN or any Service on Home Network from Public Networks (Hotel) without configuring router and without static IP
Step 1:
Install OpenVPN on any device connected to Home Network (Raspberry mychoice with pivpn)
- Change default OpenVPN protocol from UDP to TCP (Cloudflare doesn't support UDP)
- Make a note of TCP port number (default is 443)
- Grab the OpenVPN client config file
Step 2:
Install Cloudflared on Raspberry PI
- Create a tunnel
@oofnikj
oofnikj / answerfile
Last active April 24, 2024 14:57
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@eldrichgaiman
eldrichgaiman / tangela.svg
Created April 23, 2024 15:21
Tangela random tangle
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.