Linux notes
sudo sysctl kernel.yama.ptrace_scope=0
$ eval "$(ssh-agent -s)" $ ssh-add path-to-private key
# finding all file extensions in a subfolder excluding some specific ones. | |
find folder -type f ! \( -iname *.excluded \) | sed 's|.*\.||' | sort -u |
public class Bar | |
{ | |
// int field = 1; // Looks to be working | |
public long Foo() | |
{ | |
double d = 1.0f; | |
//int i = 10; // Looks to be working | |
return 1; | |
} |
// | |
using System; | |
class Test | |
{ | |
static string M(int i) { return i.ToString(); } | |
void Foo() | |
{ | |
Func<int, string> conv = M; |
// https://github.com/adrianoc/cecilifier/issues/59 | |
using System; | |
class Test | |
{ | |
static string M(int i) { return i.ToString(); } | |
public void Foo() | |
{ | |
Func<int, string> conv; |
using System; | |
class Test | |
{ | |
static string M(int i) { return i.ToString(); } | |
Func<int, string> conv = M; | |
} |
Auth URI generator: | |
https://stefansundin.github.io/2fa-qr/ | |
ex: otpauth://totp/NewTest%40seinao?secret=KNSW42DBKNSWG4TFORQQ====&issuer=FromAdriano%40xpto | |
Arduino Implementation | |
https://github.com/lucadentella/TOTP-Arduino | |
QR Generator: | |
https://www.qr-code-generator.com/free-generator/ |
class Foo | |
{ | |
System.Collections.Generic.IList<System.Text.RegularExpressions.Regex> list; | |
} |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using Mono.Cecil; | |
using Mono.Cecil.Cil; | |
namespace gen | |
{ | |
class Program |
#!/bin/bash | |
IFS=' ' read -ra FILEEXTS <<< "*.tga *.psd *.wav *.exr *.ttf *.jpg *.png *.fbx *.mp3 *.mp4 *.shader *.shadergraph *.mat *.playable *.controller *.prefab *.unity *.cubemap *.anim *.asset *.hdr *.dds *.max *.mesh *.vfx *.brush *.inputactions *.mixer *.overrideController *.shadersubgraph *.shadervariants *.swatch *.terrainlayer *.tpsheet *.txt *.blend *.bmp *.tif *.blend1" | |
for FILE_EXT in "${FILEEXTS[@]}"; do | |
echo $FILE_EXT | |
find . -iname "$FILE_EXT" -exec rm -rf {} \; | |
find . -iname "$FILE_EXT.meta" -exec rm -rf {} \; | |
done |