Skip to content

Instantly share code, notes, and snippets.


Ajinkya Borade steelx

View GitHub Profile
View extend-trial-jetbrains-windows.bat
REM Delete eval folder with licence key and options.xml which contains a reference to it
for %%I in ("WebStorm", "IntelliJ", "CLion", "Rider", "GoLand", "PhpStorm", "Resharper", "PyCharm") do (
for /d %%a in ("%USERPROFILE%\.%%I*") do (
rd /s /q "%%a/config/eval"
del /q "%%a\config\options\other.xml"
REM Delete registry key and jetbrains folder (not sure if needet but however)
rmdir /s /q "%APPDATA%\JetBrains"
LukeMathWalker / audit-on-push.yml
Last active Jun 15, 2021
GitHub Actions - Rust setup
View audit-on-push.yml
name: Security audit
- '**/Cargo.toml'
- '**/Cargo.lock'
runs-on: ubuntu-latest
VVATOR / IntelIJTrialReset.bat
Created Feb 5, 2020
How to Reset InteIIiJ IDEA Evaluation Key in Windows
View IntelIJTrialReset.bat
cd "C:%HOMEPATH%\.IntelliJIdea*\config"
rmdir "eval" /s /q
del "options\other.xml"
reg delete "HKEY_CURRENT_USER\Software\JavaSoft\Prefs\jetbrains\idea" /f
:: This will work for idea 2018.3 and later
:: It is Highly Advised to Purchase the JetBrain Softwares
:: This is only for the case You just want to Extend the
:: Trial Period and Evaluate the IDE for some more Time
rounakdatta / esp32_ota_stm32.ino
Created Sep 6, 2019
Flash STM32 firmware from ESP32
View esp32_ota_stm32.ino
#include <SPIFFS.h>
* Copyright (C) 2017 CS.NOL
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,
* and You have to keep below webserver code
irfn / alacrity.yml
Last active Feb 6, 2021
alacrity config
View alacrity.yml
TERM: xterm-256color
columns: 80
lines: 24
x: 2
mauricedb / Subject under test
Last active Jun 8, 2021
Testing stateful React hooks
View Subject under test
import { useState } from 'react';
export function useCounter(initial = 0) {
const [count, setCount] = useState(initial);
return [count, () => setCount(count + 1)];
hubgit / SelectField.tsx
Last active Jun 18, 2021
Use react-select with Formik
View SelectField.tsx
import { FieldProps } from 'formik'
import React from 'react'
import Select, { Option, ReactSelectProps } from 'react-select'
export const SelectField: React.SFC<ReactSelectProps & FieldProps> = ({
}) => (
rishikeshdhokare / git_refresh
Last active Jun 5, 2018
git pull all the repositories in a directory
View git_refresh
for d in ./*/;
do (
cd "$d" &&
echo "updating `basename "$currentDir"`..."
git pull
View Headless Setup of Raspberry Pi Zero W (Raspberry Pi 3 Wireless) (macOS).markdown

#Headless Setup of Raspberry Pi Zero W (Raspberry Pi 3 Wireless) (macOS)

  1. Formatt the Micro SD card - Open a terminal and type 'diskutil list'. Find your card and copy the disk name (For example: /dev/disk4). Format the card with diskutil eraseDisk ExFat temp disk4(Use your disk here)
  2. Download Raspbian - wget
  3. Unmount the SD card - diskutil unmountDisk /dev/disk4 or whatever your disk path is
  4. Mount the Raspbian image to the card - sudo dd if=PATH-TO-RASPBIAN-IMAGE of=/dev/disk4` or whatever your disk path is
  5. Enable SSH on the Pi - cd /volumes && ls. You should see a boot partition from the SD card cd boot && touch ssh
  6. Setup WiFi on the PI - While still in the boot partition of the card type nano wpa_supplicant.conf and enter network={ ssid="YOUR-SSID" psk="YOUR-WIFI-PASSWORD" }
  7. Boot the PI - Unmount the card diskutil unmountDisk /dev/disk4 (or whatever your disk path is) and put it in the
fokusferit /
Last active Jun 10, 2021
Difference between Shallow, Mount and render of Enzyme


Real unit test (isolation, no children render)

Simple shallow


  • constructor
  • render